Skip to Content
TorBox API
Downloads

Get Download List

GET /v1/api/downloads/mylist

Try it in the playground

GET https://api.torbox.app/v1/api/downloads/mylist

  • Operation ID: get_download_list
  • Group: Downloads
  • Auth: API key, Authorization: Bearer <api key> (Sign in with TorBox gives the same key)

Overview

Gets the user's torrents, usenet downloads and web downloads in one list, newest first. Each item has the same fields as in the list of its own type (Get Torrent List, Get Usenet List, Get Web Download List), plus download_type, which is torrent, usenet or webdl, and minus a few that are left out: auth_id and server on every item, long_term_seeding and download_path on torrents, and download_id on usenet and web downloads. Unlike those lists, files defaults to false here, so items leave out files and expires_at unless you send files=true. Web downloads are spelled webdl here, in download_type and in the type filter.

Order and paging

Items are sorted by created_at, newest first. Items created at the same moment are ordered by type (torrents, then usenet downloads, then web downloads), then by id, highest first. Torrents with no created_at come last. offset and limit page through the sorted list, and a response holds at most limit items. The list is read live, so it always shows the current state of each download.

Filtering

Every filter is optional. Several filters combine with AND: an item is returned only when it matches all of them, for example ?type=torrent&type=usenet&cached=true. offset and limit then page through the matching items.

  • type can be repeated, and keeps only those download types.

  • torrent_id, usenet_id and webdl_id can each be repeated, and limit the list to the items they name: ?torrent_id=5&torrent_id=9&usenet_id=12 returns at most those three items. Types with no ids given are left out. Ids that don't exist, or that belong to another user, are simply missing from the list. They combine with every other filter, so ?type=usenet&torrent_id=5 returns an empty list.

  • tag can be repeated (?tag=favorite&tag=important). With tag_match=any, the default, an item needs at least one of the tags. With tag_match=all it needs every one of them. Tags are compared ignoring case.

  • download_state can be repeated, and matches the whole state exactly, ignoring case. Give the full text, for example failed (uploading): failed alone does not match it. The states differ by type; see the list endpoint of each type for its common states.

  • The number filters (progress, download_speed, eta and size) take op:number values, where op is gt (greater than), gte (at least), lt (less than), lte (at most) or eq (equal to). Repeat a filter to combine comparisons: ?eta=gte:60&eta=lt:3600 returns items with an ETA of at least one minute and under one hour. Every comparison must hold. progress accepts decimals (progress=gte:0.5); the other filters take whole numbers. An item with no value for the field never matches. eq compares decimals exactly, so on progress it is meant for eq:0 and eq:1.

  • Bounds that contradict each other, such as progress=gt:0.9&progress=lt:0.1, return an empty list.

  • Torrent-only filters (private, seed, has_magnet, seeds, peers, upload_speed, ratio) are not available here and are ignored. Use Get Torrent List for them.

  • A value of the wrong type, such as size=gt:abc, size=100 (no operator), size=gt:1.5 (a decimal for a whole-number field), type=webdownload or tag_match=some, returns a 422 response in FastAPI's validation error format ({"detail": [...]}), not the usual response.

Authorization

Requires an API key using the Authorization Bearer Header.

Parameters

NameInTypeRequiredDescription
bypass_cachequerybooleannoAccept cached data only if it is at most 3 seconds old.
offsetqueryintegernoDetermines how many matching items to skip. Default is 0. Optional.
limitqueryintegernoDetermines the number of items to recieve per request. Default is 1000. Optional.
filesquerybooleannoInclude each item's files and expires_at. Default is false, so the list leaves them out unless you set files=true. Optional.
activequerybooleannoShows only active (true) or only inactive (false) downloads. Optional.
cachedquerybooleannoShows only cached (true) or only uncached (false) downloads. Optional.
airlockedquerybooleannoShows only airlocked (true) or only not airlocked (false) downloads. Optional.
has_tagsquerybooleannoShows only downloads with at least one tag (true), or with no tags (false). Optional.
tagquerystring[]noShows only downloads with these tags, ignoring case. Repeat it for several tags. Optional.
tag_matchquerystringnoHow several tags match. any (the default) needs one of them, all needs every one. Optional.
download_statequerystring[]noShows only downloads in one of these download states. Exact match, ignoring case. Repeat it for several states. Optional.
progressquerystring[]noShows only downloads whose progress, from 0 to 1, passes every comparison given. Each value is op:number. Repeat it to combine comparisons, for example progress=gte:0.5&progress=lt:1. Optional.
download_speedquerystring[]noShows only downloads whose download speed, in bytes per second, passes every comparison given. Each value is op:number, with a whole number. Repeat it to combine comparisons. Optional.
etaquerystring[]noShows only downloads whose ETA, in seconds, passes every comparison given. Each value is op:number, with a whole number. Repeat it to combine comparisons, for example eta=gte:60&eta=lt:3600. Optional.
sizequerystring[]noShows only downloads whose size, in bytes, passes every comparison given. Each value is op:number, with a whole number. Repeat it to combine comparisons. Optional.
typequerystring[]noShows only these download types, torrent, usenet or webdl. Repeat it for several types. Optional.
torrent_idqueryinteger[]noShows only the torrents with these ids. Repeat it for several ids. Optional.
usenet_idqueryinteger[]noShows only the usenet downloads with these ids. Repeat it for several ids. Optional.
webdl_idqueryinteger[]noShows only the web downloads with these ids. Repeat it for several ids. Optional.

Responses

  • 200 Successful Response
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 422 Validation Error
  • 429 Too Many Requests
  • 500 Internal Server Error
  • 503 Service Unavailable