Submit a crawl, poll its status, then retrieve pages as Markdown.
Lifecycle
| Step | Endpoint | Result |
|---|---|---|
| Submit | POST /v1/crawl | 202 with data.job_id and data.status_url |
| Poll | GET /v1/crawl/{jobId} | Status, progress, and credit_cost |
| Read pages | GET /v1/crawl/{jobId}?include=pages&cursor=…&limit=… | Pages collected so far or the finished result |
| Cancel | DELETE /v1/crawl/{jobId} | Stops the job; collected pages remain readable |
| List | GET /v1/crawl | Recent jobs for the team |
| Status | Meaning |
|---|---|
queued | Accepted and waiting for a worker |
running | Collecting pages |
completed | Finished normally |
partial | Ran out of credits; results are incomplete |
failed | Ended with an error |
cancelled | Cancelled with DELETE |
Submit options
| Field | Meaning |
|---|---|
url | Starting URL, required |
limit | Maximum pages, 1–10000; default 10 |
include_paths / exclude_paths | Wildcard patterns matched against the full URL. * does not cross /; ** does. Up to 100 patterns per list, 500 characters per pattern |
max_age | Reuse cached pages younger than this many seconds, up to 604800 (7 days). 0 forces every page to be fetched fresh |
modified_since | Unix timestamp; only crawl pages modified after it. Use for incremental re-crawls |
webhook | Per-job webhook: {url, events, secret?} for crawl.* events |
Idempotency-Key header | Prevents 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.