Stats
Get Playtime Stats
Returns the playtime stats
GET
/api/playtime-stats
Authorization*
curl --request GET \
--url https://codecombat.com/api/playtime-stats \
--header 'Authorization: <authorization>'
{
"gamesPlayed": "number",
"playTime": "number"
}
Authorizations
Authenticationheaderrequired
string
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Query Parameters
startDate
string | null
Earliest an included user was created
endDate
string | null
Latest an included user was created
country
string | null
Filter by country string
Response
200 - application/json
gamesPlayed
number | null
Number of levels played
playTime
number | null
Total play time in seconds
curl --request GET \
--url https://codecombat.com/api/playtime-stats \
--header 'Authorization: <authorization>'
{
"gamesPlayed": "number",
"playTime": "number"
}