Downloads

We store the download link in a separate REST endpoint to allow quicker access.

Please note that downloads are only available for 24 hours after running a job.

Get Downloads

cURL
curl "https://api.webtozip.com/rest/v1/downloads?select=*" \
     -H 'apikey: WTZ_API_KEY' \
     -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer WTZ_BEARER_TOKEN' \
     -d $'{}'
JavaScript (fetch)
fetch("https://api.webtozip.com/rest/v1/downloads?select=*", {
      "method": "GET",
      "headers": {
            "apikey": "WTZ_API_KEY",
            "Content-Type": "application/json",
            "Authorization": "Bearer WTZ_BEARER_TOKEN",
      }
})
.then((res) => res.text())
.then(console.log.bind(console))
.catch(console.error.bind(console));
Response

You get a 200 code and a JSON object in return containing all downloads associated with your account:

[
  {
    "id": 123,
    "created_at": XXX,
    "job_id": XXX,
    "download_link": "https://webtozip-exports...."
  },
  {
    "id": 345,
    "created_at": XXX,
    "job_id": XXX,
    "download_link": "https://webtozip-exports...."
  }
]
Please replace WTZ_API_KEY with your own API key.
Please replace WTZ_BEARER_TOKEN with your own Bearer Token