GET
/
playtime-stats
curl --request GET \
  --url https://codecombat.com/api/playtime-stats \
  --header 'Authorization: Basic <encoded-value>'
{
  "playTime": 123,
  "gamesPlayed": 123
}

Authorizations

Authorization
string
headerrequired

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
playTime
number | null

Total play time in seconds

gamesPlayed
number | null

Number of levels played