Get account name

GET https://api.trackmania.com/api/display-names?accountId[]={accountId}

Query parameters:

  • {accountId} (string) The ID of the account you want to retrieve the name for *
    Maximum: 50 account IDs

Retrieves the account name for a given accountId.


Remarks:

  • To convert more than one ID at a time, you can send an array of values instead of a single value - see the second example below.
  • The access token has to be provided in the Authorization header in the format Bearer <token>.

Example request:

GET https://api.trackmania.com/api/display-names?accountId[]=5b4d42f4-c2de-407d-b367-cbff3fe817bc

Example response:

{
  "5b4d42f4-c2de-407d-b367-cbff3fe817bc": "tooInfinite"
}

To retrieve more than one name at once, send the accountId values as follows:

GET https://api.trackmania.com/api/display-names?accountId[]=5b4d42f4-c2de-407d-b367-cbff3fe817bc&accountId[]=4c803b5a-a344-4d5c-a358-d8f7455d6c85