Classrooms

Get Member Stats

GET
Returns a list of all members stats for the classroom.

Path parameters

classroomHandlestringRequired

The classroom’s _id.

Query parameters

projectstringOptional

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.

memberLimitdoubleOptional
Limit the return member number. the default value is 10, and the max value is 100
memberSkipdoubleOptional
Skip the members that doesn't need to return, for pagination

Response

This endpoint returns a list of objects
_id
stringOptional
stats
objectOptional
GET
$curl -G https://codecombat.com/api/classrooms/%3AclassroomHandle/stats \
> -u "<username>:<password>" \
> -d project=string \
> -d memberLimit=1
Response
1[
2 {
3 "_id": "string",
4 "stats": {
5 "gamesCompleted": 1,
6 "playtime": 1
7 }
8 }
9]