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
| Key | Datatype | Required | Description |
| torrent_id
| string | | The torrent's ID. |
| type
| string | | Either "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. |
HEADERS
| Key | Datatype | Required | Description |
RESPONSES
status: OK
"sometorrentfilebytes"