Skip to Content
TorBox API

SDKs

Official clients for Python, TypeScript, Go, Rust, PHP, Kotlin, C++, and C#, generated from the OpenAPI spec.

The SDKs are generated from the OpenAPI spec with OpenAPI Generator. Releases use the latest public TorBox changelog version followed by the UTC build date. Each SDK wraps the generated client with TorBox-specific behavior.

  • Response envelopes. Python and TypeScript methods and PHP's send() return data. Go and Rust validate success through torbox.Result and torbox::send. Kotlin, C++, and C# expose success on the response model.
  • Errors. Use the generated HTTP errors in Kotlin, C++, and C#. The other SDKs also provide helpers for TorBox error codes and details. In PHP, catch TorBoxException.
  • Retries. Python, TypeScript, Go, and Rust retry 429 and 503 with backoff and honor Retry-After.
  • Uploads. create_torrent and create_usenet_download accept a file.
  • Download links. Python and TypeScript add the token query parameter. In Go, Rust, PHP, Kotlin, C++, and C#, pass your API key as that parameter.

Single-item lookups such as mylist?id=... answer an object while the spec only describes the list, so typed SDKs cannot parse them yet. Fetch the list and filter until the spec is fixed.

Install

TorBox v9.3.1 ·

pip install torbox-sdk==9.3.2026112508

Version 9.3.2026112508 · pypi.org/project/torbox-sdk/

Quick start

Set TORBOX_API_KEY to your key from TorBox settings. Choose your SDK in Get User Data's request example to see how to initialize the client and make a request.

Loading request example… View endpoint

Each SDK's README covers authentication, pagination, and error handling. The PHP SDK requires PHP 8.1 or later. Kotlin targets the JVM on Java 17 or later. C++ requires C++17, Boost.JSON, and OpenSSL. C# targets .NET 10.

On this page