What batches support
Every batch has one mode and one output format:
Batches don’t return screenshots, images, bytes, parsed fields, highlights, JSON, or product data. They also don’t accept browser actions, custom headers,
zdr, or timeoutOpts. For any of those, call Scrape once per URL.
Submit a URL list
This request scrapes two pages as Markdown. The examples read your API key fromCONTEXT_DEV_API_KEY; the Quickstart shows how to create a key and install an SDK.
202 with the new batch (trimmed):
id. input.submitted counts the URLs you sent. input.reserved counts the pages the batch will attempt once duplicates and invalid URLs are removed. The Idempotency-Key header makes a retried submit return this batch instead of creating a second one; see Idempotency.
Lifecycle
completed, cancelled, and failed are final. Poll the batch or add a webhook to find out when it reaches one, then read the results. See Status and results.
Access
A restricted API key needsbatches:write to submit, cancel, or delete batches and to replay their webhook deliveries. batches:read covers status, results, the batch list, and delivery history. See API keys.
Choose an endpoint
Related
- Submit a batch: URL lists, page options, deduplication, and idempotency.
- Status and results: progress, result records, files, and how long results are kept.
- Cancel, limits, and errors: cancel and delete, concurrency, and error codes.
- Webhooks: signatures, retries, and replay for
batch.*events. - Submit a batch reference