TorBoxSDK 1.0.0
dotnet add package TorBoxSDK --version 1.0.0
NuGet\Install-Package TorBoxSDK -Version 1.0.0
<PackageReference Include="TorBoxSDK" Version="1.0.0" />
<PackageVersion Include="TorBoxSDK" Version="1.0.0" />
<PackageReference Include="TorBoxSDK" />
paket add TorBoxSDK --version 1.0.0
#r "nuget: TorBoxSDK, 1.0.0"
#:package TorBoxSDK@1.0.0
#addin nuget:?package=TorBoxSDK&version=1.0.0
#tool nuget:?package=TorBoxSDK&version=1.0.0
TorBoxSDK
Important: This SDK is unofficial and is not affiliated with or endorsed by TorBox.
TorBoxSDK is an open-source, MIT-licensed C# SDK for the TorBox API. It gives .NET applications typed access to the TorBox Main, Search, and Relay APIs with dependency injection support and consistent response handling.
Key Features
- Covers the TorBox Main, Search, and Relay APIs through a single root client
- Organizes the Main API into focused resource clients (Torrents, Usenet, Web Downloads, User, Notifications, RSS, Integrations)
- Multi-targets .NET 6 through .NET 10
- Integrates with
IServiceCollection,IHttpClientFactory, and configuration binding - Uses the standard
TorBoxResponseenvelope and surfaces API failures throughTorBoxException - Full XML documentation and SourceLink support
Installation
dotnet add package TorBoxSDK
Quick Start
using Microsoft.Extensions.DependencyInjection;
using TorBoxSDK;
using TorBoxSDK.DependencyInjection;
ServiceCollection services = new();
services.AddTorBox(options =>
{
options.ApiKey = Environment.GetEnvironmentVariable("TORBOX_API_KEY")
?? throw new InvalidOperationException("Set TORBOX_API_KEY.");
});
using ServiceProvider provider = services.BuildServiceProvider();
ITorBoxClient client = provider.GetRequiredService<ITorBoxClient>();
var torrents = await client.Main.Torrents.GetMyTorrentListAsync();
Or standalone mode:
using TorBoxClient client = new("your-api-key");
var result = await client.Main.User.GetMeAsync();
Documentation
- Getting Started Overview - Install and make your first request
- Architecture Overview - Understand the client hierarchy
- Configuration Overview - Configure options and base URLs
- Error Handling Overview - Handle API errors
- Examples Overview - Browse runnable examples by scenario
- Examples Source Project - 38 runnable scenarios
Contributing
Contributions are welcome! Read the Contributing Guide for development workflow and review the Code of Conduct.
Versioning
This package follows Semantic Versioning (SemVer) and uses the MAJOR.MINOR.PATCH format:
MAJORfor incompatible API changesMINORfor new backward-compatible functionalityPATCHfor backward-compatible bug fixes
License
MIT License. See LICENSE for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
-
net10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.6)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Http (>= 10.0.6)
- Microsoft.Extensions.Options (>= 10.0.6)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.6)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.6)
-
net6.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 8.0.0)
-
net7.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 8.0.0)
-
net8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.6)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Http (>= 10.0.6)
- Microsoft.Extensions.Options (>= 10.0.6)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.6)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.6)
-
net9.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.6)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Http (>= 10.0.6)
- Microsoft.Extensions.Options (>= 10.0.6)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.6)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.6)
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 |
|---|---|---|
| 1.0.0 | 90 | 4/24/2026 |