Get Job Status
curl --request GET \
--url https://api.tornadoapi.io/jobs/{id} \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.tornadoapi.io/jobs/{id}"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.tornadoapi.io/jobs/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tornadoapi.io/jobs/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tornadoapi.io/jobs/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tornadoapi.io/jobs/{id}")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tornadoapi.io/jobs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://youtube.com/watch?v=dQw4w9WgXcQ",
"status": "Completed",
"s3_url": "https://cdn.example.com/videos/video.mp4?X-Amz-Algorithm=...",
"subtitle_url": null,
"error": null,
"step": "Finished",
"title": "Rick Astley - Never Gonna Give You Up",
"description": "The official video for Never Gonna Give You Up...",
"release_date": "2009-10-25T00:00:00Z",
"download_speed_mbps": 45.2,
"upload_speed_mbps": 120.5,
"download_duration_ms": 3200,
"mux_duration_ms": 1500,
"upload_duration_ms": 2100,
"total_duration_ms": 8050,
"file_size": 52428800,
"native_video_codec": "avc1",
"native_audio_codec": "mp4a",
"download_strategy": "native",
"download_retries": 1,
"upload_retries": 0,
"queue_wait_ms": 450,
"requested_quality": "best",
"actual_quality": "1080p",
"created_at": 1705507200000,
"finished_at": 1705507260000
}
Jobs
Get Job Status
Get the status of a download job
GET
/
jobs
/
{id}
Get Job Status
curl --request GET \
--url https://api.tornadoapi.io/jobs/{id} \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.tornadoapi.io/jobs/{id}"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.tornadoapi.io/jobs/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tornadoapi.io/jobs/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tornadoapi.io/jobs/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tornadoapi.io/jobs/{id}")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tornadoapi.io/jobs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://youtube.com/watch?v=dQw4w9WgXcQ",
"status": "Completed",
"s3_url": "https://cdn.example.com/videos/video.mp4?X-Amz-Algorithm=...",
"subtitle_url": null,
"error": null,
"step": "Finished",
"title": "Rick Astley - Never Gonna Give You Up",
"description": "The official video for Never Gonna Give You Up...",
"release_date": "2009-10-25T00:00:00Z",
"download_speed_mbps": 45.2,
"upload_speed_mbps": 120.5,
"download_duration_ms": 3200,
"mux_duration_ms": 1500,
"upload_duration_ms": 2100,
"total_duration_ms": 8050,
"file_size": 52428800,
"native_video_codec": "avc1",
"native_audio_codec": "mp4a",
"download_strategy": "native",
"download_retries": 1,
"upload_retries": 0,
"queue_wait_ms": 450,
"requested_quality": "best",
"actual_quality": "1080p",
"created_at": 1705507200000,
"finished_at": 1705507260000
}
Overview
Retrieves the current status of a download job. When completed, includes a signed download URL for the file.Header Parameters
Path Parameters
Response
Job status:
Pending, Processing, Completed, Failed, Warning, Skipped, Cancelled, or CancelledByAdminSigned download URL (only when
Completed). Tornado-managed storage may use https://files.tornadoapi.io/<object-key>?verify=.... Your own S3 bucket retains its own endpoint and S3 signature. Use the returned URL unchanged when downloading, including its query string.The
files.tornadoapi.io delivery domain applies only to Tornado-managed storage. It does not replace a customer’s bucket endpoint or change their object key. On that domain, videos/ is part of the object key; there is no bucket-name segment in the path. A storage configuration that cannot be resolved does not fall back to a Tornado download URL.Presigned URL for the thumbnail (only when
download_thumbnail was enabled). Omitted otherwise.Error classification (when
Failed, Warning, or Skipped): error for technical failures (rate limits, bot detection, connection issues), warning for content issues (private video, members-only, geo-blocked, age-restricted, audio-only Spotify episodes). An age-restricted video can be downloaded with the cookies of an age-verified account.Release or upload date. Spotify: exact publish date. YouTube: upload date (midnight UTC). ISO 8601 format.
Delivered video resolution, measured from the downloaded stream and expressed as its shorter dimension, for example
144p. It can differ from the request when that resolution is unavailable. This field is null for audio-only jobs and can be absent or null before completion or on older jobs.Total pipeline duration from pop to completion in milliseconds (only present for completed jobs)
Video codec of the source stream (e.g.,
"avc1", "vp9", "av01"). Only present for completed jobs.Examples
curl -X GET "https://api.tornadoapi.io/jobs/550e8400-e29b-41d4-a716-446655440000" \
-H "x-api-key: sk_your_api_key"
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://youtube.com/watch?v=dQw4w9WgXcQ",
"status": "Pending",
"s3_url": null,
"subtitle_url": null,
"error": null,
"error_type": null,
"step": "Queued"
}
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://youtube.com/watch?v=dQw4w9WgXcQ",
"status": "Processing",
"s3_url": null,
"subtitle_url": null,
"error": null,
"error_type": null,
"step": "Downloading"
}
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://youtube.com/watch?v=dQw4w9WgXcQ",
"status": "Completed",
"s3_url": "https://cdn.example.com/videos/video.mp4?X-Amz-Algorithm=...",
"subtitle_url": null,
"error": null,
"step": "Finished",
"title": "Rick Astley - Never Gonna Give You Up",
"description": "The official video for Never Gonna Give You Up...",
"release_date": "2009-10-25T00:00:00Z",
"folder": "music-videos",
"download_speed_mbps": 45.2,
"upload_speed_mbps": 120.5,
"extract_duration_ms": 800,
"download_duration_ms": 3200,
"mux_duration_ms": 1500,
"upload_duration_ms": 2100,
"total_duration_ms": 8050,
"file_size": 52428800,
"native_video_codec": "avc1",
"native_audio_codec": "mp4a",
"download_strategy": "native",
"cascade_total_attempts": 1,
"download_retries": 1,
"upload_retries": 0,
"queue_wait_ms": 450,
"requested_quality": "best",
"actual_quality": "1080p",
"webhook_status": "delivered",
"created_at": 1705507200000,
"finished_at": 1705507260000
}
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://youtube.com/watch?v=dQw4w9WgXcQ",
"status": "Failed",
"s3_url": null,
"subtitle_url": null,
"error": "Video unavailable",
"error_type": "warning",
"step": "Downloading"
}
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://open.spotify.com/episode/329nSfeZ5vRoJooKsZh9kH",
"status": "Skipped",
"s3_url": null,
"subtitle_url": null,
"error": "Audio-only Spotify episode (DRM protected) - skipped. This episode contains only audio which is Widevine-encrypted and cannot be downloaded.",
"error_type": "warning",
"step": "Downloading"
}
Status Values
| Status | Description |
|---|---|
Pending | Job is in queue, waiting to be processed |
Processing | Job is actively being downloaded/processed |
Completed | Job finished successfully |
Failed | Job encountered a technical error |
Warning | Job failed due to a content issue (private video, members-only, geo-blocked, unavailable) |
Skipped | Job was skipped because the content cannot be processed (e.g. audio-only Spotify episodes with Widevine DRM) |
Cancelled | Job cancelled by the client |
CancelledByAdmin | Job cancelled by an operator |
Processing Steps
| Step | Description |
|---|---|
Queued | Waiting in queue |
Downloading | Downloading video/audio streams |
Muxing | Combining streams with FFmpeg |
Uploading | Uploading to the selected storage destination |
Finished | Complete |
Polling Example
import requests
import time
def wait_for_job(job_id, api_key, timeout=600):
start = time.time()
while time.time() - start < timeout:
response = requests.get(
f"https://api.tornadoapi.io/jobs/{job_id}",
headers={"x-api-key": api_key}
)
response.raise_for_status()
data = response.json()
print(f"Status: {data['status']} - {data.get('step', 'N/A')}")
if data["status"] == "Completed":
return data["s3_url"]
elif data["status"] in ("Failed", "Warning"):
raise Exception(f"Job failed: {data['error']}")
elif data["status"] in ("Skipped", "Cancelled", "CancelledByAdmin"):
print(f"Job skipped: {data['error']}")
return None
time.sleep(3)
raise Exception("Timeout waiting for job")
Success Response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://youtube.com/watch?v=dQw4w9WgXcQ",
"status": "Completed",
"s3_url": "https://cdn.example.com/videos/video.mp4?X-Amz-Algorithm=...",
"subtitle_url": null,
"error": null,
"step": "Finished",
"title": "Rick Astley - Never Gonna Give You Up",
"description": "The official video for Never Gonna Give You Up...",
"release_date": "2009-10-25T00:00:00Z",
"download_speed_mbps": 45.2,
"upload_speed_mbps": 120.5,
"download_duration_ms": 3200,
"mux_duration_ms": 1500,
"upload_duration_ms": 2100,
"total_duration_ms": 8050,
"file_size": 52428800,
"native_video_codec": "avc1",
"native_audio_codec": "mp4a",
"download_strategy": "native",
"download_retries": 1,
"upload_retries": 0,
"queue_wait_ms": 450,
"requested_quality": "best",
"actual_quality": "1080p",
"created_at": 1705507200000,
"finished_at": 1705507260000
}
Error Responses
null
Delivery URLs expire. Newly signed URLs generally use a 24-hour lifetime, but a cached URL has less time remaining and a customer-provided SAS retains its own expiry. If the original credentials are unavailable, polling cannot always refresh an expired URL. Download promptly and preserve the entire query string.
Performance and metadata fields (
title, description, release_date, folder, batch_id, download_speed_mbps, upload_speed_mbps, extract_duration_ms, download_duration_ms, mux_duration_ms, upload_duration_ms, total_duration_ms, precheck_duration_ms, io_wait_ms, cpu_wait_ms, upload_wait_ms, subtitle_duration_ms, file_move_ms, file_size, native_video_codec, native_audio_codec, download_strategy, cascade_total_attempts, download_retries, upload_retries, queue_wait_ms, requested_quality, actual_quality, webhook_status, finished_at) are only present for completed/failed jobs that have been persisted to the database. Active jobs (Pending/Processing) return only the base fields (id, url, status, s3_url, subtitle_url, error, error_type, step, created_at). Fields with no value are omitted from the response.Completed jobs also echo back the original request parameters (
format, video_codec, audio_codec, audio_bitrate, video_quality, filename, audio_only, download_subtitles, download_thumbnail, quality_preset, max_resolution, clip_start, clip_end, live_recording, live_from_start, max_duration, wait_for_video, enable_progress_webhook). These are omitted when null.Multiple clip files
For a job submitted withclips, the completed response includes clip_files,
an ordered array of {clip_start, clip_end, s3_key, s3_url, file_size}.
Each s3_url downloads one excerpt and follows the same expiration and storage
rules as the main URL. s3_url at the top level refers to the first excerpt;
file_size at the top level is the sum of all excerpts. Before delivery,
clip_files is absent. See the request example.Was this page helpful?