RustMapsApi

A strongly-typed .NET client for the public RustMaps API (v4). Look up procedural and custom maps, search, request map generation, upload saves, and read your generation limits β€” with Result<T> everywhere and first-class dependency injection.

.NET MIT NuGet

Packages

Package Downloads Description
RustMapsApi Downloads Strongly-typed RustMaps API v4 client β€” IRustMapsClient, Result<T>, models & requests, and DI registration.
RustMapsApi.Assets Downloads Monument icon artwork (SVG) mapped by MonumentType β€” resolve a monument's icon offline, no network call.

Quickstart

using Microsoft.Extensions.DependencyInjection;
using RustMapsApi.V4;

services.AddRustMapsClientV4(options => options.ApiKey = "YOUR_API_KEY");

// then inject IRustMapsClient
public sealed class MapService(IRustMapsClient client)
{
    public async Task<string?> GetUrlAsync(string mapId)
    {
        var result = await client.GetMapByIdAsync(mapId);
        return result.IsSuccess ? result.Data!.Url : null;
    }
}

Don't have an API key yet? The Getting Started guide walks you through getting one and making your first call.