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()returndata. Go and Rust validatesuccessthroughtorbox.Resultandtorbox::send. Kotlin, C++, and C# exposesuccesson 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
429and503with backoff and honorRetry-After. - Uploads.
create_torrentandcreate_usenet_downloadaccept a file. - Download links. Python and TypeScript add the
tokenquery 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.2026112508Version 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.