All docs
On this page

Submit a crawl, poll its status, then retrieve pages as Markdown.

Lifecycle

StepEndpointResult
SubmitPOST /v1/crawl202 with data.job_id and data.status_url
PollGET /v1/crawl/{jobId}Status, progress, and credit_cost
Read pagesGET /v1/crawl/{jobId}?include=pages&cursor=…&limit=…Pages collected so far or the finished result
CancelDELETE /v1/crawl/{jobId}Stops the job; collected pages remain readable
ListGET /v1/crawlRecent jobs for the team
StatusMeaning
queuedAccepted and waiting for a worker
runningCollecting pages
completedFinished normally
partialRan out of credits; results are incomplete
failedEnded with an error
cancelledCancelled with DELETE

Submit options

FieldMeaning
urlStarting URL, required
limitMaximum pages, 1–10000; default 10
include_paths / exclude_pathsWildcard patterns matched against the full URL. * does not cross /; ** does. Up to 100 patterns per list, 500 characters per pattern
max_ageReuse cached pages younger than this many seconds, up to 604800 (7 days). 0 forces every page to be fetched fresh
modified_sinceUnix timestamp; only crawl pages modified after it. Use for incremental re-crawls
webhookPer-job webhook: {url, events, secret?} for crawl.* events
Idempotency-Key headerPrevents duplicate jobs on retry

Supply your own webhook secret if you need to verify signatures. An omitted secret is generated but never returned, so you cannot verify deliveries. crawl.page includes page Markdown and is available only on request-level webhooks. For persistent notifications, use notification channels.

Polling

Poll GET /v1/crawl/{jobId} about every 10 seconds. Use ?include=pages to read pages while the crawl runs or after it finishes, and follow next for more batches. Page cursors are sequential offsets; invalid or out-of-range values return the first batch, unlike list cursors, which return 400.

Retention

Results are kept for 24 hours after the job ends.