Get crawl status and results
Web extraction
GET /crawl/{id}
Poll a crawl for progress and read its pages. Charges 3 credits for each page completed since your last call.
GET
Get crawl status and results
Overview
Returns where a crawl has got to, plus a page of results in completion order. Poll it untilstatus is completed.
Results are paginated. Each response carries a next link; follow it until next is null to read every page. Results stay readable for 24 hours after a crawl finishes, then expire.
Example request
Example response
Statuses
total is the frontier size as currently known, not a final count. A crawl discovers pages as it goes, so this number rises until the frontier is exhausted or limit is reached. Do not treat completed === total as “finished” — check status.Page objects
Each entry indata carries the crawl’s bookkeeping plus the same fields GET /scrape returns for that page:
Failed pages are listed rather than silently dropped, so you can see what a crawl could not reach. You are not charged for them.
Billing
This endpoint is where crawled pages are charged: each call bills for the pages that completed since your previous call, at 3 credits each. That makes polling safe — calling it ten times while a crawl runs costs exactly the same as calling it once at the end.credits_used on the response shows the running total for the crawl.
Related
POST /crawl
Start a crawl and configure its scope.
DELETE /crawl/{id}
Stop a running crawl. Free.
Authorizations
Your Prefetch API key. Obtain one from the dashboard.
Path Parameters
The crawl id returned by POST /crawl.
Example:
"crw_9f2c1a7b4e0d4c3a8b1e5f7d2c9a0b3e"
Query Parameters
Number of result pages to skip. Use the next link rather than building this by hand.
Required range:
x >= 0Number of crawled pages to return per request.
Required range:
1 <= x <= 100