SteamApis.Net 2.0.5

dotnet add package SteamApis.Net --version 2.0.5
                    
NuGet\Install-Package SteamApis.Net -Version 2.0.5
                    
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="SteamApis.Net" Version="2.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SteamApis.Net" Version="2.0.5" />
                    
Directory.Packages.props
<PackageReference Include="SteamApis.Net" />
                    
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 SteamApis.Net --version 2.0.5
                    
#r "nuget: SteamApis.Net, 2.0.5"
                    
#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 SteamApis.Net@2.0.5
                    
#: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=SteamApis.Net&version=2.0.5
                    
Install as a Cake Addin
#tool nuget:?package=SteamApis.Net&version=2.0.5
                    
Install as a Cake Tool

SteamApis.Net

NuGet License: MIT

Unofficial https://steamapis.com .NET library, targeting .NET 8.0

dotnet add package SteamApis.Net

Getting started

Dependency Injection (ASP.NET Core or Generic Host)

using SteamApis.Net.Extensions;

builder.Services.AddSteamApis("your-steamapis-key");

You can optionally customize the underlying HttpClient:

builder.Services.AddSteamApis("your-steamapis-key", client =>
{
    client.Timeout = TimeSpan.FromSeconds(30);
});

Then inject ISteamApisClient anywhere:

public class MyService(ISteamApisClient steamApis)
{
    public async Task DoWorkAsync()
    {
        var inventory = await steamApis.Steam.Users.GetInventoryAsync("7656119...", 730, 2);
    }
}

Standalone (no DI)

using SteamApis.Net.Services;

var client = SteamApisClientFactory.Create("your-steamapis-key");

var inventory = await client.Steam.Users.GetInventoryAsync("7656119...", 730, 2);

Client structure

ISteamApisClient exposes two API groups:

Property Base URL Description
Steam https://api.steamapis.com Steam API v2 endpoints
MarketPlace https://marketplaceapi.steamapis.com Third-party Marketplace Data API v2

Error handling

Every method returns an ApiResult<T> — no exceptions are thrown for API-level failures:

var result = await client.Steam.Apps.GetDetailsAsync(730);

if (result.IsSuccess)
{
    Console.WriteLine(result.Value.Name);
}
else
{
    Console.WriteLine($"{result.Error.StatusCode}: {result.Error.Message}");
}

ApiResult<T> also provides helpers like TryGetValue, GetValueOrDefault, Map, OnSuccess, and OnFailure:

var playerCount = (await client.Steam.Apps.GetPlayerCountsAsync())
    .OnFailure(error => logger.LogWarning("Request failed: {Code}", error.Code));
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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.5 222 6/25/2026
2.0.4 157 6/25/2026 2.0.4 is deprecated because it has critical bugs.
2.0.3 574 6/13/2026
2.0.2 144 6/13/2026
2.0.1 147 6/13/2026 2.0.1 is deprecated because it has critical bugs.
2.0.0 128 6/12/2026
1.1.2 362 3/19/2026
1.1.1 150 3/14/2026
1.1.0 130 3/14/2026
1.0.9 135 3/14/2026
1.0.8 128 3/12/2026
1.0.7 223 7/11/2025
1.0.6 189 7/11/2025
1.0.5 194 7/11/2025
1.0.4 250 6/18/2025
1.0.3 236 6/18/2025
1.0.2 239 6/18/2025
1.0.1 224 6/18/2025
1.0.0 233 6/18/2025