Scrape many pages

POSThttps://api.crawl4ai.com/scrape/batch

Scrape many URLs in one call — up to 50 — and stream a result per line as each finishes.

50 URLs per call

Request

# -N streams each result line as it lands
curl -N https://api.crawl4ai.com/scrape/batch \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://a.com", "https://b.com"], "format": "md"}'

Body

urlsrequired
string[]

The URLs to scrape (max 50 per call).

…
—

Any /scrape field (format, proxy, country, parse) applies to every URL.

Note

Response is application/x-ndjson — one JSON line per URL as it completes. Each line carries its cost (credits) and effort at the top level, next to result; the stream ends with {"summary":{"cost":"…","priced":N,"urls":N}}, the whole batch's cost.

Try it with your key

Run this call in the playground and see the real answer, the time and the units.

Open the playground

Next

Something unclear or wrong on this page? Tell us.