Skip to main content

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

ParameterDescription
countHow 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

FieldTypeDescription
useridstringUser id used to store this score
usernamestringDisplayable user name
creation_timemillisecond timestampUTC timestamp in millisecond when this best score has been done
scoreintScore value
[
{
"userid": "382911",
"username": "Ada",
"creation_time": 1730642812412,
"score": 3937
},
{
"userid": "221281",
"username": "John",
"creation_time": 1730026754899,
"score": 215
}
]

HTTP status code

HTTP statusReason(s)
200• OK
404• Unknown API key / leaderboard
500• Server Error, please contact support@gamerank.io