ManiaAPI.TrackmaniaWS 2.10.0

dotnet add package ManiaAPI.TrackmaniaWS --version 2.10.0
                    
NuGet\Install-Package ManiaAPI.TrackmaniaWS -Version 2.10.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ManiaAPI.TrackmaniaWS" Version="2.10.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ManiaAPI.TrackmaniaWS" Version="2.10.0" />
                    
Directory.Packages.props
<PackageReference Include="ManiaAPI.TrackmaniaWS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ManiaAPI.TrackmaniaWS --version 2.10.0
                    
#r "nuget: ManiaAPI.TrackmaniaWS, 2.10.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ManiaAPI.TrackmaniaWS@2.10.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ManiaAPI.TrackmaniaWS&version=2.10.0
                    
Install as a Cake Addin
#tool nuget:?package=ManiaAPI.TrackmaniaWS&version=2.10.0
                    
Install as a Cake Tool

ManiaAPI.TrackmaniaWS

NuGet

Wraps https://ws.trackmania.com/ (old TMF web API). This API requires authorization (via constructor).

Features

  • Players
    • Info (registration ID from login for example)
    • Nickname as HTML
    • Tags
    • Multiplayer (ladder) and solo (skill points) ranking, with the rank in each zone
  • Zones
    • By ID or path, ID from path
    • All zones and child zones, with paging and sorting
  • Rankings
    • Solo leaderboard of players, overall or on a challenge (map), in any zone
    • Multiplayer leaderboard of players in any zone and environment
    • Multiplayer leaderboard of zones
  • Number of registered accounts
  • Short manialink codes
  • ManiaHome notifications from a manialink
  • Check that the service is up, without needing credentials

Errors throw TrackmaniaWSResponseException (an HttpRequestException) with the message of the response, like Invalid environment "Foo".

Setup

using ManiaAPI.TrackmaniaWS;

var ws = new TrackmaniaWS("tmf_yourapp", "password");

// Ready to use

To check that the service is up, PingAsync uses its public test route, which ignores the credentials:

bool up = await ws.PingAsync();

For DI, consider using the ManiaAPI.TrackmaniaWS.Extensions.Hosting package.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ManiaAPI.TrackmaniaWS:

Package Downloads
ManiaAPI.TrackmaniaWS.Extensions.Hosting

Extension methods of the old TMF web API for ASP.NET Core. Part of the ManiaAPI.NET library set.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.10.0 53 11/14/2026
2.7.0 260 2/21/2026
2.6.0 177 2/7/2026
2.4.0 474 9/18/2025
2.3.1 323 8/21/2025
2.2.0 323 4/6/2025

- Added player tags, HTML nicknames, solo and multiplayer rankings, zone queries, and player, challenge, and zone leaderboards
- Added registered player counts, Manialink details, ManiaHome notifications, and `PingAsync`
- Added `TrackmaniaWSResponseException` for API error responses and converters for string-encoded numbers and integer lists
- Made JSON converters public for external serialization
- Updated the User-Agent to report the installed package version
- Added .NET 11 support