Skip to Content
TorBox API
Torrents

Export Torrent Data

GET /v1/api/torrents/exportdata

Try it in the playground

GET https://api.torbox.app/v1/api/torrents/exportdata

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

Overview

Exports the magnet or torrent file. Requires a type to be passed. If type is magnet, it will return a JSON response with the magnet as a string in the data key. If type is file, it will return a bittorrent file as a download. Not compatible with cached downloads.

Authorization

Requires an API key using the Authorization Bearer Header.

Parameters

NameInTypeRequiredDescription
torrent_idqueryintegeryesThe torrent's ID.
typequerystringyesEither "magnet" or "file". Tells how the API what to get, and what to respond as. If magnet, it returns a JSON response with the magnet as a string in the data key. If file, it responds with a torrent file download.

Responses

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