# Web downloads (/docs/web-downloads)

Web downloads (debrid) fetch a file from a link (images, YouTube videos and more) into your TorBox. The API is
practically the same as the [Torrents](/docs/torrents) and [Usenet](/docs/usenet) ones, with `web_id` as the ID.

## Add a web download [#add-a-web-download]

[`POST /v1/api/webdl/createwebdownload`](/operations/create_web_download) takes
`application/x-www-form-urlencoded` with a required `link` (cannot be a redirect).

```python
import os
from torbox import TorBox

client = TorBox(api_key=os.environ["TORBOX_API_KEY"])
result = client.web_downloads.create_web_download(link="https://example.com/file.zip")
print(result)
```

[View endpoint](/operations/create_web_download)

| Field | Meaning |
| --- | --- |
| `link` | An accessible link to the file. Required. |
| `password` | Password to the file, if it needs one. |
| `name` | The name you want the download to have. |
| `as_queued` | Queue it instead of starting it. |
| `add_only_if_cached` | Only add it if it is cached on TorBox. |

Rate limit: **60/hour** per API token, for this endpoint and
[`asynccreatewebdownload`](/operations/async_create_web_download). A link from a site TorBox cannot download from
gets `400 UNSUPPORTED_SITE`; the supported sites are listed by
[`GET /v1/api/webdl/hosters`](/operations/get_hoster_list).

## List, control, download [#list-control-download]

| | |
| --- | --- |
| List | [`GET /v1/api/webdl/mylist`](/operations/get_web_download_list) (`id`, `offset`, `limit`, `bypass_cache`) |
| Control | [`POST /v1/api/webdl/controlwebdownload`](/operations/control_web_download) |
| Cached? | [`GET /v1/api/webdl/checkcached`](/operations/get_web_download_cached_availability) |
| Download link | [`GET /v1/api/webdl/requestdl`](/operations/request_web_download_link) (`token`, `web_id`, `file_id`, `zip_link`, `redirect`) |