{"slug":"stabletube-dev-api-download-03fafc","title":"Create a paid StableTube download job","host":"stabletube.dev","method":"POST","resource":"https://stabletube.dev/api/download","category":"image","description":"Create a paid StableTube download job. StableTube downloads the video server-side, uploads the mp4 to S3, and returns a temporary StableTube-owned download URL when ready.","price_listed":0.1,"price_asked":0.1,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":791,"reported_calls_30d":55,"reported_payers_30d":5,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"format":"mp4","quality":"720p","tier":"tube-500mb","type":"stabletube.download","url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"clientRequestId":{"description":"Optional idempotency key scoped to the paying wallet.","maxLength":120,"minLength":1,"type":"string"},"format":{"default":"mp4","description":"Output container format. mp4 only for now.","enum":["mp4"],"type":"string"},"quality":{"description":"Required target video quality. The request fails if unavailable.","enum":["360p","720p","1080p"],"type":"string"},"tier":{"description":"Required output size tier: tube-100mb (100 MB, $0.05) | tube-500mb (500 MB, $0.10) | tube-1gb (1 GB, $0.20).","enum":["tube-100mb","tube-500mb","tube-1gb"],"type":"string"},"type":{"const":"stabletube.download","default":"stabletube.download","type":"string"},"url":{"description":"Full YouTube URL of the video to download.","format":"uri","type":"string"}},"required":["type","url","quality","tier","format"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"additionalProperties":false,"properties":{"jobId":{"type":"string"},"maxBytes":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"price":{"type":"string"},"retryAfterSec":{"default":5,"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"status":{"const":"processing","type":"string"},"tier":{"enum":["tube-100mb","tube-500mb","tube-1gb"],"type":"string"},"videoId":{"type":"string"}},"required":["status","jobId","videoId","tier","maxBytes","retryAfterSec"],"type":"object"},{"additionalProperties":false,"properties":{"contentLengthBytes":{"anyOf":[{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},{"type":"null"}]},"downloadUrl":{"description":"Temporary StableTube-owned S3 download URL. Fetch before expiresAt or poll the job again for a fresh URL.","format":"uri","type":"string"},"durationSec":{"anyOf":[{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},{"type":"null"}]},"expiresAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","type":"string"},"format":{"enum":["mp4"],"type":"string"},"jobId":{"type":"string"},"maxBytes":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}]},"price":{"type":"string"},"quality":{"enum":["360p","720p","1080p"],"type":"string"},"status":{"const":"complete","type":"string"},"tier":{"enum":["tube-100mb","tube-500mb","tube-1gb"],"type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"videoId":{"type":"string"}},"required":["status","jobId","videoId","quality","tier","format","maxBytes","downloadUrl","expiresAt"],"type":"object"},{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"jobId":{"type":"string"},"maxBytes":{"exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"price":{"type":"string"},"status":{"const":"failed","type":"string"},"tier":{"enum":["tube-100mb","tube-500mb","tube-1gb"],"type":"string"},"videoId":{"type":"string"}},"required":["status","jobId","error"],"type":"object"}],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":791,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":611,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":781,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":609,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":887,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":855,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":1097,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":789,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":884,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":881,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":521,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":848,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":579,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":842,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":540,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":644,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":914,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":883,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":576,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":672,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":543,"error":null},{"day":"2026-11-05","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":653,"error":null},{"day":"2026-11-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":937,"error":null},{"day":"2026-11-03","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":559,"error":null},{"day":"2026-11-02","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":545,"error":null},{"day":"2026-11-01","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":555,"error":null},{"day":"2026-10-31","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":1921,"error":null},{"day":"2026-10-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.1,"price_match":true,"latency_ms":808,"error":null}],"description_full":"Create a paid StableTube download job. StableTube downloads the video server-side, uploads the mp4 to S3, and returns a temporary StableTube-owned download URL when ready.","last_updated":"2026-11-25T20:46:39.867Z","schemes":["exact"]}