Skip to Content
TorBox API
Web Downloads (Debrid)

Request Download Link

GET /v1/api/webdl/requestdl

Try it in the playground

GET https://api.torbox.app/v1/api/webdl/requestdl

  • Operation ID: request_web_download_link
  • Group: Web Downloads (Debrid)
  • Auth: API key as the token query parameter

Overview

Requests the download link from the server. Because downloads are metered, TorBox cannot afford to allow free access to the links directly. This endpoint opens the link for 3 hours for downloads. Once a download is started, the user has nearly unlilimited time to download the file. The 1 hour time limit is simply for starting downloads. This prevents long term link sharing.

Permalinks

Instead of generating many CDN urls by requesting this endpoint, you can instead create a permalink such as: https://api.torbox.app/v1/api/torrents/requestdl?token=APIKEY&torrent_id=NUMBER&file_id=NUMBER&redirect=true and when a user clicks on it, it will automatically redirect them to the CDN link. This saves requests and doesn't abuse the API. Use this method rather than saving CDN links as they are not permanent. To invalidate these permalinks, simply reset your API token or delete the item from your dashboard.

Authorization

Requires an API key as a parameter for the token parameter.

Parameters

NameInTypeRequiredDescription
tokenquerystringyesYour API Key
web_idqueryintegeryesThe web download's ID that you want to download
file_idqueryintegernoThe files's ID that you want to download
zip_linkquerybooleannoIf you want a zip link. Required if no file_id. Takes precedence over file_id if both are given.
user_ipquerystringnoThe user's IP to determine the closest CDN. Optional.
redirectquerybooleannoIf you want to redirect the user to the CDN link. This is useful for creating permalinks so that you can just make this request URL the link.
append_namequerybooleannoIf you want to add the "filename" parameter to the returned CDN link. Optional. Default false.

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