crawlfetch

429 Too Many Requests from the download API

A 429 means the source platform is throttling for a moment — retry with backoff. Running out of credits is a different status, 402 insufficient_credits, and retrying will not help until you top up.

Headers to read

HeaderMeaning
x-credits-remainingCredits left — top up before it nears 0
x-credits-chargedWhat the last successful call cost
Retry-AfterSeconds to wait before retrying, when present on a 429

Retry correctly

async function resolveWithRetry(url, tries = 5) {
for (let i = 0; i < tries; i++) {
const r = await fetch("https://api.crawlfetch.com/v1/resolve?" + new URLSearchParams({ url }), {
headers: { Authorization: "Bearer " + process.env.CRAWLFETCH_KEY },
});
if (r.status === 402) throw new Error("out of credits: top up in the dashboard");
if (r.status !== 429 && r.status < 500) return r;
const wait = Number(r.headers.get("retry-after")) || 2 ** i;
await new Promise((ok) => setTimeout(ok, wait * 1000));
}
throw new Error("still rate limited");
}

FAQ

Is it a 429 or am I out of credits?

Out of credits is 402 insufficient_credits, not 429. A 429 is temporary — retry with backoff.

How do I get more credits?

Buy a top-up from $10 or move to a bigger plan from the dashboard. See pricing.

Related

Last updated 2026-10-25

Add video downloads to your product today.

1,000 credits on signup plus 500 every month. That is roughly 180 YouTube clips to start, with no card.

Create free account