Torrents
Add torrents by magnet link or file, track them, control them, and get download links.
Torrents are TorBox's main use. You add a torrent with a magnet link or a torrent file, then control it by its
ID: reannounce, pause, resume or delete. Every request needs your API key in the
Authorization: Bearer header, except the download link endpoints, which take it as token.
Add a torrent
POST /v1/api/torrents/createtorrent takes multipart/form-data with either
magnet or file. Choose Magnet link or Torrent file in the example.
Loading request example… View endpoint
| Field | Meaning |
|---|---|
magnet / file | The magnet link or the torrent file. Send one of them. |
seed | Seeding preference: 1 auto, 2 seed, 3 don't seed. Default is 1 or your setting. |
allow_zip | Whether the torrent may be zipped. TorBox only zips torrents with 100 files or more. |
name | The name you want the torrent to have. |
as_queued | Queue the torrent instead of starting it (ignored on the free plan). |
add_only_if_cached | Only add it if it is cached on TorBox; otherwise it is not added (404 DOWNLOAD_NOT_CACHED). |
Once checked, it starts downloading if your account has a free active download slot and it isn't too large
(DOWNLOAD_TOO_LARGE, ACTIVE_LIMIT). Mind the two limits of this endpoint.
asynccreatetorrent is the asynchronous variant.
Check if something is cached
GET /v1/api/torrents/checkcached takes comma-separated hashes in
hash (around 100 per request; repeat hash for more) and a format of object or list.
List and track
GET /v1/api/torrents/mylist returns your torrents. Pass id to get one torrent
as an object instead of a list.
| Parameter | Meaning |
|---|---|
offset | Offset of the items to get. Default 0. |
limit | Number of items per request. Default 1000. |
bypass_cache | Always get fresh information instead of the cached list. |
The list is only updated every 600 seconds unless you bypass the cache, so use bypass_cache sparingly.
Paginate with offset + limit until a page has fewer than limit items.
Download states include downloading, uploading, stalled (no seeds), paused, completed, cached,
metaDL and checkingResumeData; the others are qBittorrent states.
Control
POST /v1/api/torrents/controltorrent takes a JSON body with torrent_id (or
all: true) and an operation such as reannounce, delete or resume.
Loading request example… View endpoint
Download links
GET /v1/api/torrents/requestdl returns a CDN link for a file
(file_id) or a zip of the torrent (zip_link=true). It takes your key as the token query parameter.
The endpoint description says it "opens the link for 3 hours for downloads" and that the time limit only applies to starting downloads: once started, a download can take as long as it needs.
Permalinks. Instead of saving CDN links (they are not permanent), build a link that redirects:
https://api.torbox.app/v1/api/torrents/requestdl?token=APIKEY&torrent_id=NUMBER&file_id=NUMBER&redirect=trueOpening it redirects to a fresh CDN link. This saves requests. To invalidate permalinks, reset your API key
or delete the item. Use user_ip to pick the CDN closest to your user when requesting on their behalf.
For many files at once use the batch variants (GET, POST).
Queued torrents
Send as_queued=true when creating and the torrent is queued instead of started. Manage queued downloads with
the Queued endpoints.