Headers:
-
Authorization: nadeo_v1 t={token}An access token for theNadeoLiveServicesaudience
Gets position data for one or more records by their score/time.
POST
https://live-services.trackmania.nadeo.live/api/token/leaderboard/group/map?scores[{mapUid}]={score}
Headers:
Authorization: nadeo_v1 t={token}
An access token for the NadeoLiveServices audience
Query parameters:
{mapUid}
string
The UID of the map
*
50 map UIDs
{score}
integer
The score/time (in milliseconds) to get the position for
*
Body parameters:
{maps}
object[]
The list of maps (needs to match query parameters)
*
{mapUid}
string
The UID of the map
*
{groupUid}
string
The ID of the group/season for a specific map
*
The request body contains an array of maps, each identified by its mapUid:
{
"maps": [
{
"mapUid": mapUid,
"groupUid": groupUid
}
]
}
Remarks:
groupUid "Personal_Best" can be used to get the global leaderboard.groupUid, make sure you’re only referencing currently open leaderboards. Maps with closed leaderboards will not be included in the response.mapUid parameters in the URL has to correspond with a map in the request body.scores must be greater than or equal to 1, otherwise the result for that mapUid will be omitted.mapUids in the same group are not supported. The response will include the same position for all scores requested.[]) even when passed valid parameters. It is not known why but it seems to be inconsistent. If you experience this issue, try to use different accounts and switch between dedicated/service accounts (see Auth for more information).Example request:
POST https://live-services.trackmania.nadeo.live/api/token/leaderboard/group/map?scores[gjt2DWATrQ_NdrbrXG0G9oDpTfh]=15800&scores[XiGZvMOqIgT3_g0TdeFa0lxMp46]=17500
{
"maps": [
{
"mapUid": "gjt2DWATrQ_NdrbrXG0G9oDpTfh",
"groupUid": "Personal_Best"
},
{
"mapUid": "XiGZvMOqIgT3_g0TdeFa0lxMp46",
"groupUid": "Personal_Best"
}
]
}
Example response:
[
{
"groupUid": "Personal_Best",
"mapUid": "gjt2DWATrQ_NdrbrXG0G9oDpTfh",
"score": 15800,
"zones": [
{
"zoneId": "301e1b69-7e13-11e8-8060-e284abfd2bc4",
"zoneName": "World",
"ranking": {
"position": 294,
"length": 0
}
}
]
},
{
"groupUid": "Personal_Best",
"mapUid": "XiGZvMOqIgT3_g0TdeFa0lxMp46",
"score": 17500,
"zones": [
{
"zoneId": "301e1b69-7e13-11e8-8060-e284abfd2bc4",
"zoneName": "World",
"ranking": {
"position": 42,
"length": 0
}
}
]
}
]
If a groupUid or a mapUid is invalid (or the referenced leaderboard is closed), the response will simply omit that map’s record.
If the query parameters reference a map that is not contained in the request body, the endpoint may return a 500 error.