Skip to main content

User last scores

Description

Use this endpoint to retrieve a list of the last scores for an user.

Endpoint

GET https://api.gamerank.io/leaderboard/score/user/last/{userid}/{count}

Request URL Parameters

ParameterDescription
useridUser unique identifier. Alpha-numerical ASCII characters only.
countHow many scores to retrieve.

Example

GET https://api.gamerank.io/leaderboard/score/user/last/3937/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": "82911",
"username": "Bob",
"creation_time": 1728823954459,
"score": 322
},
{
"userid": "82911",
"username": "Bob",
"creation_time": 1728822811283,
"score": 2157
}
]

HTTP status code

HTTP statusReason(s)
200• OK
400• Invalid user ID format
• Invalid count value
404• Unknown API key / leaderboard
• Unknown user
500• Server Error, please contact support@gamerank.io