GET

/api/classrooms/{classroomHandle}/stats

Authorization*
curl --request GET \
  --url https://codecombat.com/api/classrooms/{classroomHandle}/stats \
  --header 'Authorization: <authorization>'
[
  {
    "_id": "string",
    "stats": {
      "gamesCompleted": "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.

Path Parameters

classroomHandlerequired
string

The classroom's _id.

Query Parameters

project
string

If specified, include only the specified projection of returned stats; else, return all stats. Format as a comma-separated list, like creator,playtime,state.complete.

memberLimit
number

Limit the return member number. the default value is 10, and the max value is 100

memberSkip
number

Skip the members that doesn't need to return, for pagination

Response

200 - application/json
_id
string
stats
object