Export Torrent Data

GET {{api_base}}/{{api_version}}/api/torrents/exportdata?torrent_id=int&type=str

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.

Request Params

KeyDatatypeRequiredDescription
torrent_idstringThe torrent's ID.
typestringEither "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

status: OK

"sometorrentfilebytes"