GET
/
classrooms
/
{classroomHandle}
/
stats
curl --request GET \
  --url https://codecombat.com/api/classrooms/{classroomHandle}/stats \
  --header 'Authorization: Basic <encoded-value>'
[
  {
    "_id": "<string>",
    "stats": {
      "gamesCompleted": 123,
      "playtime": 123
    }
  }
]

Authorizations

Authorization
string
headerrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

classroomHandle
string
required

The classroom's _id.

Query Parameters

project
string | null

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

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

memberSkip
number | null

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

Response

200 - application/json
_id
string | null
stats
object | null