API reference

Batches

Scrape thousands of URLs in one background job.

POSThttps://api.scrapeflow.dev/v1/batches1 credit per URL

Submit a large list of URLs and one set of formats. Runs through the SNS → SQS fan-out and returns a single dataset when complete. Poll or use a webhook.

Request

curl -X POST ${SCRAPEFLOW_API_URL}/v1/batches \
  -H "Authorization: Bearer $SCRAPEFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "urls": ["https://a.com", "https://b.com"], "formats": { "markdown": true } }'

Parameters

ParameterTypeDescription
urlsrequiredstring[]Up to 25,000 URLs.
formatsobjectFormats applied to every URL.
webhookstringURL to notify on completion.

Response

json
{ "success": true, "batch_id": "batch_9f2a", "status": "running", "total": 25000 }