Top scores / Podium
Description
Use this endpoint to retrieve the top scores of a Scoreboard using the HTTPs REST API.
Endpoint
GET https://api.gamerank.io/scoreboard/top/{count}
Request URL Parameters
| Parameter | Description |
|---|---|
| count | How many top scores to get |
Example
GET https://api.gamerank.io/scoreboard/top/3
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 |
| entry | int | Submitted score |
[
{
"userid": "382911",
"username": "Ada",
"creation_time": 1730642812412,
"entry": 3937
},
{
"userid": "221281",
"username": "John",
"creation_time": 1730026754899,
"entry": 215
},
{
"userid": "901281",
"username": "Paul",
"creation_time": 1730026114899,
"entry": 199
}
]
HTTP status code
| HTTP status | Reason(s) |
|---|---|
| 200 | • OK |
| 404 | • Unknown API key / scoreboard |
| 500 | • Server Error, please contact support@gamerank.io |