PostmanOpenAPIContact usSign up
  • Overview
    • Introduction
  • API Reference
    • POSTAdd Oauth2 Identity
LogoLogo
PostmanOpenAPIContact usSign up
API ReferenceClassrooms

Get Member Stats

GET
https://codecombat.com/api/classrooms/:classroomHandle/stats
GET
/api/classrooms/:classroomHandle/stats
1curl -G https://codecombat.com/api/classrooms/:classroomHandle/stats \
2 -u "<username>:<password>" \
3 -d project=string \
4 -d memberLimit=1
Try it
200Retrieved
1[
2 {
3 "_id": "string",
4 "stats": {
5 "gamesCompleted": 1,
6 "playtime": 1
7 }
8 }
9]
Returns a list of all members stats for the classroom.
Was this page helpful?
Previous

Get Level Session

Next
Built with
Get Level Session
Returns a list of all members stats for the classroom.

Authentication

AuthorizationBasic
Basic authentication of the form `Basic <username:password>`.

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.
_idstring or null
statsobject or null

Basic authentication of the form Basic <username:password>.

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.

The classroom’s _id.