Get Torrent Info
POST /v1/api/torrents/torrentinfo
POST https://api.torbox.app/v1/api/torrents/torrentinfo
- Operation ID:
get_torrent_info_from_file - Group: Torrents
- Auth: none
Overview
Same as the GET route, but allows posting data such as magnet, and torrent files.
Hashes will have precedence over magnets, and magnets will have precedence over torrent files.
Only proper torrent files are accepted.
At least one of hash, magnet, or torrent file is required.
A general route that allows you to give a hash, and TorBox will return data about the torrent. This data is retrieved from the Bittorrent network, so expect it to take some time. If the request goes longer than 10 seconds, TorBox will cancel it. You can adjust this if you like, but the default is 10 seconds. This route is cached as well, so subsequent requests will be instant.
It is not recommended to use this for checking TorBox's cache. Please use the GET /checkcache endpoint instead.
Authorization
None required.
Request body (multipart/form-data)
| Field | Type | Required | Description |
|---|---|---|---|
timeout | integer | no | The amount of time you want TorBox to search for the torrent on the Bittorrent network. If the number of seeders is low or even zero, this value may be helpful to move up. Default is 10. Optional. |
hash | string | no | A torrent hash for requesting information about the torrent. Optional. |
magnet | string | no | A magnet link for requesting information abouit the torrent. Optional. |
file | string | no | A torrent file for requesting information about the torrent. Optional. |
use_cache_lookup | boolean | no | If you want to use a pre-cached request if sent before. This can save a lot of time. Default false. |
peers_only | boolean | no | Uses a quick lookup method using the trackers contained within the magnet or file. Requires the submitted magnet or torrent file to contain trackers of UDP or HTTP(S) to work. This will not get metadata such as name, size, or files. Best used for simply and quickly gathering the current seeds and peers according to the trackers. Uses the highest number of all the trackers as the final value. Default off. |
Responses
200Successful Response400Bad Request404Not Found422Validation Error429Too Many Requests500Internal Server Error