Read the standings
/v1/leaderboards/{leaderboardKey}One leaderboard as the player sees it: the top of the board, their own place,
and around neighbours on each side of it. Other players appear by rank,
display name and score only, never by id.
On a team leaderboard a row is a team rather than a player, named by the team's key, and its score is its members' scores added up.
previous returns the last settled period instead of the
one in progress, whose ranks are final.
playerIds adds a named board: those players and
the caller ranked among themselves. They are the only players ever returned with
their ids, because the caller supplied them.
A leaderboard that does not exist, is switched off, or is hidden from this
player is a 404 in every case. So is one with no period running, unless
previous asks for the last settled one.
Authorization
ApiKey Paste a project API key (no 'Bearer ' prefix). Create one in the dashboard under API keys.
In: header
Path Parameters
Query Parameters
How many entries from the top, up to the leaderboard's own top size.
int32How many neighbours on each side of the player's own place, up to 25.
int32The most recently settled period instead of the one in progress: final ranks and outcomes.
Up to 100 players, by their ids, to rank among themselves in named; the caller is among them.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/leaderboards/string"{ "leaderboard": { "leaderboardKey": "string", "name": "string", "description": null, "images": { "property1": "string", "property2": "string" }, "scoreSource": "Event", "aggregation": null, "rankOrder": "HighestFirst", "ranksTeams": true, "resolution": "TimeLimit", "scoreTarget": null, "period": { "startsAtUtc": "2019-08-24T14:15:22Z", "endsAtUtc": "2019-08-24T14:15:22Z" }, "isLocked": true, "unlockMessage": null, "requiresOptIn": true, "isRegistered": true, "registeredPlayers": null, "participants": 0, "me": null, "team": null }, "top": [ { "rank": 0, "displayName": null, "score": 0.1, "isMe": true } ], "around": [ { "rank": 0, "displayName": null, "score": 0.1, "isMe": true } ], "isSettled": true, "named": null}