This is the (unofficial) documentation for the Trackmania (2020) game APIs, documented by the Openplanet community. It was made to be a central place for the most up-to-date documentation for the most used APIs in the game.
If you're not familiar with the authentication flow for any of the game APIs, check out the Authentication guide.
The documentation is structured by the five main API domains, each of which cover a slightly different area of the game:
- Core: The main API that allows the game to authenticate to all other APIs, but also has many other tasks relating to the game's native functionality. This can also be considered the game's masterserver.
- Live: The live API mostly used for leaderboards and other live content such as campaigns, rooms, and Tracks of the Day.
- Club: APIs for certain (but not all) club functionality.
- Competition: APIs for most competition-related information, including Cup of the Day and Super Royal.
- Matchmaking: The matchmaking API.
Additionally, the OAuth documentation contains extensive information on integrating external applications with the official Trackmania OAuth API.
All game APIs are to be used responsibly. Nadeo/Ubisoft can and will ban your accounts/IPs if they detect any disruptive (sending too many requests too fast) or any other malicious behavior.
Make sure you send along a useful
User-Agent header that includes what your project is, who you are (your name or some username/handle), and how to contact you (your email address). For example:
My awesome leaderboard / @Miss#8888 / firstname.lastname@example.org
To report a potential security concern directly to Nadeo/Ubisoft, send an email to email@example.com.
Contributing and support
This is a community project that's actively being worked on - as such, the documentation is not complete in some areas. Don't hesitate to reach out and get involved on Github, or talk about the API on Discord.