Top scores / Podium
Description
Use this endpoint to retrieve the best scores of the Highscores Leaderboard.
Endpoint
GET https://api.gamerank.io/leaderboard/score/top/{count}
Request URL Parameters
Parameter | Description |
---|---|
count | How many scores to get from the global top scores of the Highscores Leaderboard |
Example
GET https://api.gamerank.io/leaderboard/score/top/10
Response JSON body
Field | Type | Description |
---|---|---|
userid | string | User id used to store this score |
username | string | Displayable user name |
creation_time | millisecond timestamp | UTC timestamp in millisecond when this best score has been done |
score | int | Score value |
[
{
"userid": "382911",
"username": "Ada",
"creation_time": 1730642812412,
"score": 3937
},
{
"userid": "221281",
"username": "John",
"creation_time": 1730026754899,
"score": 215
}
]
HTTP status code
HTTP status | Reason(s) |
---|---|
200 | • OK |
404 | • Unknown API key / leaderboard |
500 | • Server Error, please contact support@gamerank.io |