API · Web
POST /web/batch-scrape
Up to 10 web pages as Markdown in one call.
| Request | POST /v1/web/batch-scrape |
| Operation id | web.batch_scrape.get |
| Cost | 5 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Up to 10 web pages as Markdown in one call.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
urls | string[] | yes | |
ignore_invalid_urls | boolean | no | |
formats | string[] | no | Any of markdown, html, rawHtml, links, text, images (default ["markdown"]). |
only_main_content | boolean | no |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The pages read. | |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | That host does not resolve or the page does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Web is temporarily unavailable. Retryable; nothing was charged. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.