Get Leaderboard
GET/leaderboard/v1/leaderboard/:leaderboard_id
Get a paged response for a leaderboard
Request
Path Parameters
Query Parameters
Possible values: non-empty
Cursor for which page of leaderboard data you would like to retrieve
Possible values: <= 50
The desired page size for the results
UUID of the player whose leaderboard data is being retrieved. Required for friend leaderboards
Responses
- 200
- 403
- 404
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
- MOD1
]
Possible values: non-empty and <= 128 characters
Which leaderboard config is used for this leaderboard
Possible values: non-empty
The cursor for the next page of results. 0 means there are no more
entries
object[]
required
List of leaderboard entries
Unique ID for the player in this leaderboard entry
stat_value
object
Value for the stat of this leaderboard entry
anyOf
number
Possible values: >= 1
What position this entry is on the leaderboard
{
"leaderboard_id": "string",
"cursor": "string",
"entries": [
{
"player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"stat_value": 0,
"position": 0
}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}