crawlfetch
Concepts

Errors

Every error has the same shape, and a failed request is never charged.

Error shape#

response.json
404
{
"error": {
"code": "not_found",
"message": "Video is private, removed or region-locked."
}
}

Codes#

statuscodemeaning
400bad_requestMissing or malformed url, a URL from another platform, or a coming-soon service.
401unauthorizedMissing, invalid or revoked API key.
403insufficient_scopeThe key is valid but lacks the scope this endpoint needs (resolve, formats or usage:read).
404not_foundPrivate, removed or region-locked video, or a post without video.
402insufficient_creditsYour credit balance cannot cover this call. Buy a top-up or change plan in the dashboard.
429rate_limitedThe platform is throttling — retry later.
502upstream_errorThe platform or storage failed for this call. Safe to retry.

Retrying#

  • 429 and 502 are temporary. Retry with a growing delay, for example 2, 4 and 8 seconds.
  • 400, 401, 403 and 404 will not change on retry. Fix the request or skip the video.
  • 402 means your balance is too low. Top up, then retry.