ManiaAPI.ManiaPlanetAPI
2.5.1
dotnet add package ManiaAPI.ManiaPlanetAPI --version 2.5.1
NuGet\Install-Package ManiaAPI.ManiaPlanetAPI -Version 2.5.1
<PackageReference Include="ManiaAPI.ManiaPlanetAPI" Version="2.5.1" />
<PackageVersion Include="ManiaAPI.ManiaPlanetAPI" Version="2.5.1" />
<PackageReference Include="ManiaAPI.ManiaPlanetAPI" />
paket add ManiaAPI.ManiaPlanetAPI --version 2.5.1
#r "nuget: ManiaAPI.ManiaPlanetAPI, 2.5.1"
#:package ManiaAPI.ManiaPlanetAPI@2.5.1
#addin nuget:?package=ManiaAPI.ManiaPlanetAPI&version=2.5.1
#tool nuget:?package=ManiaAPI.ManiaPlanetAPI&version=2.5.1
ManiaAPI.ManiaPlanetAPI
Wraps https://maniaplanet.com/swagger (ManiaPlanet web API). This API does not require authorization, but you can authorize to have more methods available.
Features
- All available on Swagger
- Couple of ingame requests:
- Authenticating a ManiaPlanet user via login and token
- Downloading a title pack
- Get title pack info (contains more info than from WebServices)
Setup
For the list of scopes, see here at the bottom. Generate your credentials here.
using ManiaAPI.ManiaPlanetAPI;
var mp = new ManiaPlanetAPI();
// You can optionally authorize to do more things, and possibly be less limited
await mp.AuthorizeAsync("clientId", "clientSecret", ["basic", "dedicated", "maps"]);
// Ready to use
For ingame API, use the ManiaPlanetIngameAPI. This is not an authenticated API, but you can use it to authenticate logins of users or servers by their token.
using ManiaAPI.ManiaPlanetAPI;
var mpIngame = new ManiaPlanetIngameAPI();
// Authenticate a user
var user = await mpIngame.AuthenticateAsync("username", "token");
if (user.Login != "username")
{
throw new Exception("Invalid token");
}
For DI, consider using the ManiaAPI.ManiaPlanetAPI.Extensions.Hosting package, but for ManiaPlanetIngameAPI, you can just directly call:
using ManiaAPI.ManiaPlanetAPI;
builder.Services.AddHttpClient<ManiaPlanetIngameAPI>();
| Product | Versions 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 was computed. 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. |
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ManiaAPI.ManiaPlanetAPI:
| Package | Downloads |
|---|---|
|
ManiaAPI.ManiaPlanetAPI.Extensions.Hosting
Extension methods of ManiaPlanet 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.5.1 | 195 | 10/19/2025 |
| 2.4.0 | 413 | 9/18/2025 |
| 2.3.1 | 171 | 8/21/2025 |
| 2.2.0 | 246 | 4/6/2025 |
| 2.1.0 | 533 | 3/24/2025 |
| 2.0.0 | 226 | 3/23/2025 |
| 2.0.0-beta3 | 116 | 12/21/2024 |
| 2.0.0-beta2 | 145 | 7/12/2024 |
| 2.0.0-alpha2 | 298 | 11/1/2023 |
| 2.0.0-alpha10 | 137 | 6/19/2024 |