Menu

Crawl

Crawl errors

Starting a crawl can fail, a crawl can stop early, and each page can fail on its own.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

Three levels

Request errors

Status and codeWhenTry next
400 INVALID_PARAMA field the API does not take, a pattern that is not a valid regular expression, an unknown slug in a label list, remove_top_sites without same_domain: false, mode: "cached" with same_domain: falseFix the request
400 INVALID_PARAM, with details.maxmax_pages is over your plan's ceiling. details.max is the ceiling. (Over 25,000, the highest ceiling, the 400 has no details.max)A smaller max_pages
400 INVALID_PARAMA cursor on GET /v1/crawl/{id} that is not one we gave youUse next as it came
400 INVALID_PARAM, with details.reason URL_NOT_ALLOWEDThe start URL is not a public web page we will fetch
400 INVALID_PARAMA webhook_id that is not an active endpoint of your teamVerify the endpoint first
400 UNSUPPORTED_OPTIONA mode the plan does not include, or one that is switched off; json on a plan without it
401 AUTH_MISSING_KEY, 401 AUTH_INVALID_KEYNo Authorization header, or a key that is malformed, revoked or expired
403 ROBOTS_DISALLOWEDThe site asked us not to fetch or serve itNothing: this is final
404 JOB_NOT_FOUNDGET or DELETE of a crawl that does not exist or belongs to another team. The two are not told apart
409 IDEMPOTENCY_CONFLICTThe Idempotency-Key was used with a different requestA new key
429 INSUFFICIENT_CREDITSThe balance does not cover max_pages pages at the price of the modeA smaller max_pages
429 RATE_LIMITEDThe plan's number of open crawls is reached; or more than 120 polls in a minute; or, on POST and DELETE, your plan's requests a minuteWhen a crawl ends, or cancel one; after retry_after_seconds

Why a crawl stopped

stop_reason is null while the crawl runs. When it has ended:

stop_reasonstatusMeaning
max_pagescompletedThe crawl was charged for as many pages as you asked for: the pages that came back and, in the browser modes, any page charged because the browser found it missing. skipped counts the URLs it found and did not try
no_more_pagescompletedNothing was left to try within max_depth and the patterns
site_daily_limitcompletedYour team reached its daily limit for the site (2,000 fetches, sitemap files included). The pages that came back are kept
too_many_failurescompletedToo many URLs failed: a crawl tries at most 3 URLs for each page it may return, plus 20
cancelledcancelledYou cancelled it
insufficient_creditsfailedA part of the crawl could not be charged. The hold normally covers every page, so this is rare
time_limitfailedThe crawl did not end within 24 hours
failedfailedSomething went wrong on our side; or a cached crawl of a site whose robots.txt closes the start URL to our bot (error.code ROBOTS_DISALLOWED) or could not be read (ROBOTS_UNAVAILABLE, or another per-URL code when the check itself could not be made)

In every case the pages that finished are kept and stay charged, and what is left of the hold is handed back.

A crawl with no page at all

A crawl that ends without a single page that came back is failed, whatever its stop_reason, and its error carries the code of its first URL. The usual one:

Text
"status": "failed",
"completed": 0,
"credits_used": 0,
"error": {
  "code": "ROBOTS_DISALLOWED",
  "message": "No page came back. This site's robots.txt does not allow our bot to fetch this page."
}

It costs nothing. (The exception is a browser-mode crawl whose pages the browser found missing: those pages are charged, as Pricing says, and credits_used shows it.)

Per-page errors

The codes are Extract's:

CodeMeaningTry next
URL_NOT_ALLOWEDNot a public web page we will fetch
ROBOTS_DISALLOWEDThe site's robots.txt does not allow our bot to fetch this page
ROBOTS_UNAVAILABLErobots.txt could not be read, so we did not fetch. The crawl tried five timesLater
SITE_OPTED_OUTThe site asked us not to fetch or serve it
NOT_IN_CACHEcached mode: we hold no copy of this pagelive
FETCH_FAILEDThe site did not answer usefully. A link to a page that does not exist ends here
TIMEOUTThe site was too slowLater
TOO_LARGEThe page is over 10 MiB
UNSUPPORTED_CONTENT_TYPENot a kind of document we read
BLOCKED_BY_SITEThe site refused our botunblock
RENDER_FAILEDrendered or unblock could not load the pageLater
HOST_BUSYThe site stayed busy for us for more than an hourLater
HOST_DAILY_LIMITYour team reached its daily limit for this siteTomorrow (UTC)
CAPACITYrendered and unblock are at capacityLater

A crawl waits for a busy site and does not fail a page with HOST_BUSY at once: see how a batch runs, which is how a crawl runs too.

What not to work around

ROBOTS_DISALLOWED and SITE_OPTED_OUT are final: there is no option to ignore robots.txt, and no mode gets past a site's own choice. BLOCKED_BY_SITE is different. The site refused an automated request, and unblock is the mode for that, on the plans that include it.

Notes on the crawl

This page as Markdown ยท llms.txt