User best score
Description
Use this endpoint to retrieve an user's best score.
Endpoint
GET https://api.gamerank.io/leaderboard/score/user/best/{userid}
Request URL Parameters
Parameter | Description |
---|---|
userid | User unique identifier. Alpha-numerical ASCII characters only. |
Example
GET https://api.gamerank.io/leaderboard/score/user/best/3829
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": "3829",
"username": "Bob",
"creation_time": 1728823959953,
"score": 3937
}
HTTP status code
HTTP status | Reason(s) |
---|---|
200 | • OK |
400 | • Invalid user ID format |
404 | • Unknown API key / leaderboard • Unknown user |
500 | • Server Error, please contact support@gamerank.io |