Concepts
Errors
Every error has the same shape, and a failed request is never charged.
Error shape#
response.json404
{"error": {"code": "not_found","message": "Video is private, removed or region-locked."}}
Codes#
| status | code | meaning |
|---|---|---|
| 400 | bad_request | Missing or malformed url, a URL from another platform, or a coming-soon service. |
| 401 | unauthorized | Missing, invalid or revoked API key. |
| 403 | insufficient_scope | The key is valid but lacks the scope this endpoint needs (resolve, formats or usage:read). |
| 404 | not_found | Private, removed or region-locked video, or a post without video. |
| 402 | insufficient_credits | Your credit balance cannot cover this call. Buy a top-up or change plan in the dashboard. |
| 429 | rate_limited | The platform is throttling — retry later. |
| 502 | upstream_error | The platform or storage failed for this call. Safe to retry. |
Retrying#
429and502are temporary. Retry with a growing delay, for example 2, 4 and 8 seconds.400,401,403and404will not change on retry. Fix the request or skip the video.402means your balance is too low. Top up, then retry.