Starts a batch that scrapes up to 50 URLs, each on its own with its own result, and returns a batchId. Poll Get a batch until status is completed. Guide: Batch scrape.
Every option applies to all the URLs. Browser actions aren’t supported in a batch, so use Start a scrape for pages that need them.
With wait: true and up to 10 URLs, the request waits up to 45 seconds and answers 200 with the finished batch, in the same shape as Get a batch. If the batch has more than 10 URLs or takes longer, you get the usual 202 and poll.
Batches are kept, so you can come back to one at any time and list, retry or cancel it.
Credits: the same as a scrape for each URL: 1 per URL, plus AI credits when you send a prompt or schema, plus 5 per CAPTCHA solved. 1 credit per URL is held when you submit, and a URL that fails costs nothing. See How credits work.
Rate limits: 20 batches a minute, and up to 50 unfinished URLs at a time across your batches and scrapes.
1 to 50 pages to scrape, each starting with http:// or https://. Send plain strings or { "url": "..." } objects. An object may only have url. Private and internal addresses are rejected, and tracking parameters such as utm_source are removed.
A JSON Schema for each item's result. You get exactly these fields and types, with null for anything the page doesn't show. The root must be "type": "object". Sending a schema sets output to "json".
markdown returns each page as Markdown, or the AI's answer as text when you send a prompt. json returns structured data: on popular sites with no prompt, the page's data; elsewhere, data the AI extracts. Lowercase only.
default opens every page in a real browser. fast fetches the page directly and opens a browser only when the page needs one, which is quicker for static pages. crawlerMode is accepted as an older name for this field.
Cookies from your own signed-in browser session, sent with every URL. Either name=value; name2=value2 or rows pasted from your browser's DevTools. Never stored, so send them again when you retry. See Logged-in pages.
With up to 10 URLs, waits up to 45 seconds and answers 200 with the finished batch. With more URLs, or if the batch takes longer, you get 202 and poll as usual. Never an error.
Response
Only with wait: true and up to 10 URLs. The batch finished within 45 seconds, and here it is in full.
Only when your schema uses keywords that are ignored, such as anyOf.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Spidra","description":"Spidra documentation — REST API reference, SDK guides, browser automation, CAPTCHA solving, and proxy scraping for AI-powered web data extraction.","colors":{"primary":"#007AFF","light":"#007AFF","dark":"#007AFF"},"logo":{"light":"https://mintcdn.com/spidra/tjYTncBEy2qwqvSx/logo/logo-light.png?fit=max\u0026auto=format\u0026n=tjYTncBEy2qwqvSx\u0026q=85\u0026s=9ee4bb079b87d8aea61a7d42bfecf118","dark":"https://mintcdn.com/spidra/tjYTncBEy2qwqvSx/logo/logo-dark.png?fit=max\u0026auto=format\u0026n=tjYTncBEy2qwqvSx\u0026q=85\u0026s=3633ab236061c0e8200d4d9e0f1a9c05"},"favicon":"https://mintcdn.com/spidra/47EJpglRIcFOVcnQ/favicon.ico?fit=max\u0026auto=format\u0026n=47EJpglRIcFOVcnQ\u0026q=85\u0026s=3c0c6b781fffaaa0dd242f4b886d8917","navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.spidra.io"}},"footer":{"socials":{"x":"https://x.com/spidra_io","github":"https://github.com/spidra-io","linkedin":"https://www.linkedin.com/company/spidra-io"}},"seo":{"indexing":"all"},"interaction":{"drilldown":false},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"book-open-cover","href":"https://app.spidra.io"},{"anchor":"GitHub","icon":"github","href":"https://github.com/spidra-io"},{"anchor":"Blog","icon":"newspaper","href":"https://spidra.io/blog"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"https://spidra.io/changelog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"spidra","hasAudioNarration":false,"actualSubdomain":"spidra","customDomains":["docs.spidra.io"],"gitSource":{"type":"github","owner":"spidra-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aeb7b05330d696ca47f944e","collectionId":"36e399aa-f8e1-4ef5-90c7-a20764aa6e5e","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeb7b05330d696ca47f944e"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6aeb7b05330d696ca47f944e","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":68},{"language":"default","tag":"Documentation","count":51},{"language":"default","tag":"SDKs","count":31},{"language":"default","tag":"Popular sites","count":24},{"language":"default","tag":"More sites","count":18},{"language":"default","tag":"Monitors","count":13},{"language":"default","tag":"Crawl","count":10},{"language":"default","tag":"Guides","count":8},{"language":"default","tag":"Logs","count":7},{"language":"default","tag":"Parse","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"table{width:100%!important;display:table!important}th,td{white-space:normal}"},{"filePath":"style.css","content":"#table-of-contents-layout{flex:0 1 auto;min-height:0;max-height:none}#spidra-toc-cta{position:relative;flex-shrink:0;overflow:hidden;width:16.5rem;margin:1rem 0 1.5rem 2.5rem;border-radius:14px;background:radial-gradient(120% 140% at 0% 0%, #2d8cff 0%, #007aff 40%, #0657c2 100%);color:#fff;box-shadow:0 18px 40px -24px rgba(0, 40, 120, 0.55)}#spidra-toc-cta .spidra-cta-dots{position:absolute;inset:0;opacity:0.18;background-image:radial-gradient(rgba(255, 255, 255, 0.95) 1px, transparent 1.3px);background-size:12px 12px;-webkit-mask-image:linear-gradient(110deg, transparent 25%, black 80%);mask-image:linear-gradient(110deg, transparent 25%, black 80%);pointer-events:none}#spidra-toc-cta .spidra-cta-rings{position:absolute;right:-70px;top:-40px;pointer-events:none}#spidra-toc-cta .spidra-cta-rings i{position:absolute;left:50%;top:50%;border:1px solid rgba(255, 255, 255, 0.22);border-radius:9999px;transform:translate(-50%, -50%)}#spidra-toc-cta .spidra-cta-rings i:nth-child(1){width:220px;height:220px}#spidra-toc-cta .spidra-cta-rings i:nth-child(2){width:150px;height:150px}#spidra-toc-cta .spidra-cta-rings i:nth-child(3){width:80px;height:80px}#spidra-toc-cta .spidra-cta-body{position:relative;padding:1.1rem 1.15rem}#spidra-toc-cta .spidra-cta-logo{height:18px;width:auto;margin:0 0 0.7rem}#spidra-toc-cta .spidra-cta-title{margin:0;font-size:1.05rem;font-weight:600;line-height:1.3;letter-spacing:-0.01em;color:#fff}#spidra-toc-cta .spidra-cta-text{margin:0.5rem 0 1.1rem;font-size:0.8rem;line-height:1.5;color:rgba(255, 255, 255, 0.8)}#spidra-toc-cta a{display:block;text-align:center;font-size:0.85rem;font-weight:500;border-radius:9999px;padding:0.55rem 1rem;text-decoration:none;transition:background-color 0.15s ease, transform 0.15s ease}#spidra-toc-cta .spidra-cta-primary{background:#fff;color:#007aff;box-shadow:0 10px 24px -12px rgba(0, 20, 80, 0.6)}#spidra-toc-cta .spidra-cta-primary:hover{transform:translateY(-1px)}#spidra-toc-cta .spidra-cta-secondary{margin-top:0.5rem;color:#fff;border:1px solid rgba(255, 255, 255, 0.35)}#spidra-toc-cta .spidra-cta-secondary:hover{background:rgba(255, 255, 255, 0.1)}.tool-picker{margin:1.25rem 0 1.5rem;border:1px solid rgba(15, 23, 42, 0.08);border-radius:14px;overflow:hidden;background:#fff}.tool-picker .tp-head,.tool-picker .tp-row{display:grid;grid-template-columns:minmax(0, 1.15fr) minmax(0, 0.7fr) minmax(0, 1.35fr);gap:1.25rem;align-items:center;padding:0.85rem 1.25rem}.tool-picker .tp-head{padding-top:0.7rem;padding-bottom:0.7rem;background:linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);border-bottom:1px solid rgba(15, 23, 42, 0.08);font-size:0.75rem;font-weight:500;letter-spacing:0.02em;color:rgba(15, 23, 42, 0.5)}.tool-picker .tp-row{position:relative;border-bottom:1px solid rgba(15, 23, 42, 0.06);text-decoration:none!important;border-image:none;transition:background-color 0.15s ease}.tool-picker .tp-row:last-child{border-bottom:0}.tool-picker .tp-row::before{content:\"\";position:absolute;left:0;top:18%;bottom:18%;width:2px;border-radius:2px;background:#007aff;transform:scaleY(0);transition:transform 0.18s ease}.tool-picker .tp-row:hover{background:#f5f9ff}.tool-picker .tp-row:hover::before{transform:scaleY(1)}.tool-picker .tp-have{font-weight:500;font-size:0.9rem;line-height:1.45;color:#0f172a}.tool-picker .tp-tool{font-size:0.9rem;font-weight:600;color:#007aff;white-space:nowrap}.tool-picker .tp-get{font-weight:400;font-size:0.875rem;line-height:1.45;color:rgba(15, 23, 42, 0.62)}html.dark .tool-picker{background:rgba(255, 255, 255, 0.02);border-color:rgba(255, 255, 255, 0.08)}html.dark .tool-picker .tp-head{background:linear-gradient(180deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0) 100%);border-bottom-color:rgba(255, 255, 255, 0.08);color:rgba(255, 255, 255, 0.45)}html.dark .tool-picker .tp-row{border-bottom-color:rgba(255, 255, 255, 0.06)}html.dark .tool-picker .tp-row:hover{background:rgba(0, 122, 255, 0.08)}html.dark .tool-picker .tp-have{color:rgba(255, 255, 255, 0.92)}html.dark .tool-picker .tp-tool{color:#4da3ff}html.dark .tool-picker .tp-row::before{background:#4da3ff}html.dark .tool-picker .tp-get{color:rgba(255, 255, 255, 0.55)}@media (max-width: 640px){.tool-picker .tp-head{display:none}.tool-picker .tp-row{grid-template-columns:1fr;gap:0.2rem;padding:0.9rem 1rem}.tool-picker .tp-tool{order:-1}}.plan-table-wrap{margin:1.25rem 0 1.5rem;border:1px solid rgba(15, 23, 42, 0.08);border-radius:14px;overflow-x:auto;background:#fff}.plan-table{width:100%;min-width:620px;margin:0!important;border-collapse:collapse;font-size:0.875rem}.plan-table th,.plan-table td{padding:0.8rem 1rem;border:0!important;border-bottom:1px solid rgba(15, 23, 42, 0.06)!important;text-align:center;vertical-align:middle;color:#0f172a;background:transparent}.plan-table tbody tr:last-child th,.plan-table tbody tr:last-child td{border-bottom:0!important}.plan-table thead th{padding-top:1.25rem;padding-bottom:1rem;border-bottom:1px solid rgba(15, 23, 42, 0.08)!important;vertical-align:bottom}.plan-table td{white-space:nowrap}.plan-table .pt-label{width:30%;text-align:left;font-weight:500}.plan-table .pt-hint{display:block;margin-top:0.15rem;font-size:0.75rem;font-weight:400;color:rgba(15, 23, 42, 0.5)}.plan-table .pt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.plan-table .pt-name{display:block;font-size:0.95rem;font-weight:600}.plan-table .pt-price{display:block;margin-top:0.2rem;font-size:1.35rem;font-weight:600;letter-spacing:-0.02em}.plan-table .pt-per{margin-left:0.15rem;font-size:0.75rem;font-weight:400;letter-spacing:0;color:rgba(15, 23, 42, 0.5)}.plan-table .pt-badge{display:inline-block;margin-bottom:0.45rem;padding:0.1rem 0.55rem;border-radius:9999px;background:#007aff;color:#fff;font-size:0.68rem;font-weight:500}.plan-table .pt-hl{background:#f5f9ff}.plan-table thead .pt-hl{background:linear-gradient(180deg, #e8f2ff 0%, #f5f9ff 100%)}.plan-table .pt-hl .pt-price{color:#007aff}.plan-table .pt-check{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border-radius:9999px;background:rgba(0, 122, 255, 0.1);color:#007aff;font-size:0.7rem;font-weight:700}.plan-table .pt-dash{color:rgba(15, 23, 42, 0.3)}html.dark .plan-table-wrap{background:rgba(255, 255, 255, 0.02);border-color:rgba(255, 255, 255, 0.08)}html.dark .plan-table th,html.dark .plan-table td{color:rgba(255, 255, 255, 0.92);border-bottom-color:rgba(255, 255, 255, 0.06)!important}html.dark .plan-table thead th{border-bottom-color:rgba(255, 255, 255, 0.08)!important}html.dark .plan-table .pt-hint,html.dark .plan-table .pt-per{color:rgba(255, 255, 255, 0.45)}html.dark .plan-table .pt-hl{background:rgba(0, 122, 255, 0.08)}html.dark .plan-table thead .pt-hl{background:linear-gradient(180deg, rgba(0, 122, 255, 0.18) 0%, rgba(0, 122, 255, 0.08) 100%)}html.dark .plan-table .pt-hl .pt-price,html.dark .plan-table .pt-check{color:#4da3ff}html.dark .plan-table .pt-dash{color:rgba(255, 255, 255, 0.3)}"}],"page":{"pagePath":"api-reference/scraping/batch-scrape","slug":"/api-reference/scraping/batch-scrape","pageMetadata":{"title":"Batch scrape","openapi":"POST /batch/scrape","keywords":["POST /batch/scrape","batch scrape API","scrape many URLs"],"description":"Starts a batch that scrapes up to 50 URLs, each on its own with its own result, and returns a `batchId`. Poll [Get a batch](/api-reference/scraping/batch-scrape-status) until `status` is `completed`. Guide: [Batch scrape](/batch-scrape).\n\nEvery option applies to all the URLs. Browser actions aren't supported in a batch, so use [Start a scrape](/api-reference/scraping/scrape) for pages that need them.\n\nWith `wait: true` and up to 10 URLs, the request waits up to 45 seconds and answers `200` with the finished batch, in the same shape as [Get a batch](/api-reference/scraping/batch-scrape-status). If the batch has more than 10 URLs or takes longer, you get the usual `202` and poll.\n\nBatches are kept, so you can come back to one at any time and [list](/api-reference/scraping/batch-scrape-list), [retry](/api-reference/scraping/batch-scrape-retry) or [cancel](/api-reference/scraping/batch-scrape-cancel) it.\n\n**Credits:** the same as a scrape for each URL: 1 per URL, plus AI credits when you send a `prompt` or `schema`, plus 5 per CAPTCHA solved. 1 credit per URL is held when you submit, and a URL that fails costs nothing. See [How credits work](/billing/how-credits-work).\n\n**Rate limits:** 20 batches a minute, and up to 50 unfinished URLs at a time across your batches and scrapes.\n","href":"/api-reference/scraping/batch-scrape"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Starts a batch that scrapes up to 50 URLs, each on its own with its own result, and returns a \", _jsx(_components.code, {\n children: \"batchId\"\n }), \". Poll \", _jsx(_components.a, {\n href: \"/api-reference/scraping/batch-scrape-status\",\n children: \"Get a batch\"\n }), \" until \", _jsx(_components.code, {\n children: \"status\"\n }), \" is \", _jsx(_components.code, {\n children: \"completed\"\n }), \". Guide: \", _jsx(_components.a, {\n href: \"/batch-scrape\",\n children: \"Batch scrape\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Every option applies to all the URLs. Browser actions aren’t supported in a batch, so use \", _jsx(_components.a, {\n href: \"/api-reference/scraping/scrape\",\n children: \"Start a scrape\"\n }), \" for pages that need them.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"With \", _jsx(_components.code, {\n children: \"wait: true\"\n }), \" and up to 10 URLs, the request waits up to 45 seconds and answers \", _jsx(_components.code, {\n children: \"200\"\n }), \" with the finished batch, in the same shape as \", _jsx(_components.a, {\n href: \"/api-reference/scraping/batch-scrape-status\",\n children: \"Get a batch\"\n }), \". If the batch has more than 10 URLs or takes longer, you get the usual \", _jsx(_components.code, {\n children: \"202\"\n }), \" and poll.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Batches are kept, so you can come back to one at any time and \", _jsx(_components.a, {\n href: \"/api-reference/scraping/batch-scrape-list\",\n children: \"list\"\n }), \", \", _jsx(_components.a, {\n href: \"/api-reference/scraping/batch-scrape-retry\",\n children: \"retry\"\n }), \" or \", _jsx(_components.a, {\n href: \"/api-reference/scraping/batch-scrape-cancel\",\n children: \"cancel\"\n }), \" it.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Credits:\"\n }), \" the same as a scrape for each URL: 1 per URL, plus AI credits when you send a \", _jsx(_components.code, {\n children: \"prompt\"\n }), \" or \", _jsx(_components.code, {\n children: \"schema\"\n }), \", plus 5 per CAPTCHA solved. 1 credit per URL is held when you submit, and a URL that fails costs nothing. See \", _jsx(_components.a, {\n href: \"/billing/how-credits-work\",\n children: \"How credits work\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Rate limits:\"\n }), \" 20 batches a minute, and up to 50 unfinished URLs at a time across your batches and scrapes.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Batch scrape","openapi":"POST /batch/scrape","keywords":["POST /batch/scrape","batch scrape API","scrape many URLs"],"description":"Starts a batch that scrapes up to 50 URLs, each on its own with its own result, and returns a `batchId`. Poll [Get a batch](/api-reference/scraping/batch-scrape-status) until `status` is `completed`. Guide: [Batch scrape](/batch-scrape).\n\nEvery option applies to all the URLs. Browser actions aren't supported in a batch, so use [Start a scrape](/api-reference/scraping/scrape) for pages that need them.\n\nWith `wait: true` and up to 10 URLs, the request waits up to 45 seconds and answers `200` with the finished batch, in the same shape as [Get a batch](/api-reference/scraping/batch-scrape-status). If the batch has more than 10 URLs or takes longer, you get the usual `202` and poll.\n\nBatches are kept, so you can come back to one at any time and [list](/api-reference/scraping/batch-scrape-list), [retry](/api-reference/scraping/batch-scrape-retry) or [cancel](/api-reference/scraping/batch-scrape-cancel) it.\n\n**Credits:** the same as a scrape for each URL: 1 per URL, plus AI credits when you send a `prompt` or `schema`, plus 5 per CAPTCHA solved. 1 credit per URL is held when you submit, and a URL that fails costs nothing. See [How credits work](/billing/how-credits-work).\n\n**Rate limits:** 20 batches a minute, and up to 50 unfinished URLs at a time across your batches and scrapes.\n","href":"/api-reference/scraping/batch-scrape"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/spidra/fe44716c737c36c1/toc-cta.js"],"openApiReferenceData":{"operation":{"summary":"Batch scrape","description":"Starts a batch that scrapes up to 50 URLs, each on its own with its own result, and returns a `batchId`. Poll [Get a batch](/api-reference/scraping/batch-scrape-status) until `status` is `completed`. Guide: [Batch scrape](/batch-scrape).\n\nEvery option applies to all the URLs. Browser actions aren't supported in a batch, so use [Start a scrape](/api-reference/scraping/scrape) for pages that need them.\n\nWith `wait: true` and up to 10 URLs, the request waits up to 45 seconds and answers `200` with the finished batch, in the same shape as [Get a batch](/api-reference/scraping/batch-scrape-status). If the batch has more than 10 URLs or takes longer, you get the usual `202` and poll.\n\nBatches are kept, so you can come back to one at any time and [list](/api-reference/scraping/batch-scrape-list), [retry](/api-reference/scraping/batch-scrape-retry) or [cancel](/api-reference/scraping/batch-scrape-cancel) it.\n\n**Credits:** the same as a scrape for each URL: 1 per URL, plus AI credits when you send a `prompt` or `schema`, plus 5 per CAPTCHA solved. 1 credit per URL is held when you submit, and a URL that fails costs nothing. See [How credits work](/billing/how-credits-work).\n\n**Rate limits:** 20 batches a minute, and up to 50 unfinished URLs at a time across your batches and scrapes.\n","requestBody":"6e36b6d1-9b5e-4593-acdd-a8082635ebdc","responses":{"200":"ddee9d49-91b0-4c8e-bc34-96be3c8cf3df","202":"30adba3e-2541-49e2-ae29-13b7f9259501","401":"4a7098db-2d96-49b5-ac7f-6c468fb0fab8","402":"ef5c0edd-970b-4e07-bb36-6143856bf07f","403":"259f9825-6ccb-40a1-8d8a-0d9fb20d623d","422":"c956187e-e750-4d57-9974-1c31a0e6328b","429":"785c2ee7-1f01-4854-8d88-5e1c41cbf535","500":"9d5e23fc-4190-432b-bfcf-f4eb7b8fb738","503":"c44b6b87-789d-44ec-beb8-cb150e398d79"},"tags":["Batch Scraping"],"method":"post","type":"path","servers":["bf13fe36-aa6a-4de6-964d-d06f33bc1bb9"],"security":["6ae77587-e60d-4803-9173-0a1617725897","696cbdd8-eb13-4014-a8dd-ee43246169e7"],"path":"/batch/scrape","baseUrlOptions":["https://api.spidra.io/api"],"title":"Batch scrape","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["urls"],"properties":{"urls":{"type":"array","minItems":1,"maxItems":50,"items":{"oneOf":[{"type":"string","format":"uri","uniqueKey":"urls.items.[INDEX].oneOf.0","typeLabel":"string\u003curi>"},{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"The page to scrape.","isRequired":true,"uniqueKey":"urls.items.[INDEX].oneOf.1.url","typeLabel":"string\u003curi>"}},"uniqueKey":"urls.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"urls.items.[INDEX]","typeLabel":"string\u003curi> | object"},"description":"1 to 50 pages to scrape, each starting with `http://` or `https://`. Send plain strings or `{ \"url\": \"...\" }` objects. An object may only have `url`. Private and internal addresses are rejected, and tracking parameters such as `utm_source` are removed.","isRequired":true,"uniqueKey":"urls","typeLabel":"(string\u003curi> | object)[]"},"prompt":{"type":"string","description":"What you want from each page, in plain English, such as `\"Extract the book details\"`. Without a `schema`, the AI picks the shape of the answer.","uniqueKey":"prompt","typeLabel":"string"},"schema":{"type":"object","description":"A [JSON Schema](/options/structured-output) for each item's result. You get exactly these fields and types, with `null` for anything the page doesn't show. The root must be `\"type\": \"object\"`. Sending a schema sets `output` to `\"json\"`.","uniqueKey":"schema","typeLabel":"object"},"output":{"type":"string","enum":["markdown","json"],"default":"markdown","description":"`markdown` returns each page as Markdown, or the AI's answer as text when you send a `prompt`. `json` returns structured data: on [popular sites](/sites/overview) with no prompt, the page's data; elsewhere, data the AI extracts. Lowercase only.","uniqueKey":"output","typeLabel":"enum\u003cstring>"},"scrapeMode":{"type":"string","enum":["default","fast"],"default":"default","description":"`default` opens every page in a real browser. `fast` fetches the page directly and opens a browser only when the page needs one, which is quicker for static pages. `crawlerMode` is accepted as an older name for this field.","uniqueKey":"scrapeMode","typeLabel":"enum\u003cstring>"},"useProxy":{"type":"boolean","default":false,"description":"Turns on [Stealth Mode](/options/proxies-and-captchas) for every URL. Billed by bandwidth, not credits.","uniqueKey":"useProxy","typeLabel":"boolean"},"proxyCountry":{"type":"string","description":"With `useProxy`, the country to browse from, as a two-letter code such as `us`, `gb` or `de`, or `global`, `eu` or `asia`. See the [country list](/options/proxies-and-captchas).","example":"gb","uniqueKey":"proxyCountry","typeLabel":"string"},"cookies":{"type":"string","description":"Cookies from your own signed-in browser session, sent with every URL. Either `name=value; name2=value2` or rows pasted from your browser's DevTools. Never stored, so send them again when you [retry](/api-reference/scraping/batch-scrape-retry). See [Logged-in pages](/options/logged-in-pages).","uniqueKey":"cookies","typeLabel":"string"},"screenshot":{"type":"boolean","default":false,"description":"Takes a screenshot of the visible part of each page. Each item's `screenshotUrl` links to it.","uniqueKey":"screenshot","typeLabel":"boolean"},"fullPageScreenshot":{"type":"boolean","default":false,"description":"Takes a screenshot of each whole page, top to bottom. You don't need to set `screenshot` as well.","uniqueKey":"fullPageScreenshot","typeLabel":"boolean"},"extractContentOnly":{"type":"boolean","default":false,"description":"Removes headers, footers, menus and other page furniture from the Markdown, leaving the main content.","uniqueKey":"extractContentOnly","typeLabel":"boolean"},"wait":{"type":"boolean","default":false,"description":"With up to 10 URLs, waits up to 45 seconds and answers `200` with the finished batch. With more URLs, or if the batch takes longer, you get `202` and poll as usual. Never an error.","uniqueKey":"wait","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"markdown":{"title":"markdown","value":{"urls":["https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html","https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"]}},"schema_wait":{"title":"schema_wait","value":{"urls":["https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html","https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html","https://this-domain-does-not-exist-spidra-test.invalid"],"prompt":"Extract the book details","schema":{"type":"object","properties":{"title":{"type":"string"},"price":{"type":"number"}}},"wait":true}},"popular_site":{"title":"popular_site","value":{"urls":["https://www.amazon.com/dp/B0CG1LGWR6"],"output":"json","wait":true}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"ddee9d49-91b0-4c8e-bc34-96be3c8cf3df":{"description":"Only with `wait: true` and up to 10 URLs. The batch finished within 45 seconds, and here it is in full.","content":{"application/json":{"schema":{"type":"object","description":"A batch with every item.","properties":{"batchId":{"type":"string","format":"uuid","description":"The batch's ID.","uniqueKey":"batchId","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["pending","running","completed","cancelled"],"description":"- `pending`: queued, no URL has started yet.\n- `running`: at least one URL is being scraped.\n- `completed`: every URL has finished. Some may have failed, so check `failedCount` and each item's `status`.\n- `cancelled`: you cancelled the batch. Items that had finished keep their results.\n","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"totalUrls":{"type":"integer","description":"How many URLs the batch has.","uniqueKey":"totalUrls","typeLabel":"integer"},"completedCount":{"type":"integer","description":"How many URLs finished successfully.","uniqueKey":"completedCount","typeLabel":"integer"},"failedCount":{"type":"integer","description":"How many URLs failed.","uniqueKey":"failedCount","typeLabel":"integer"},"items":{"type":"array","items":{"type":"object","description":"One URL in a batch and its result.","properties":{"uuid":{"type":"string","format":"uuid","description":"The item's ID.","uniqueKey":"\\items.items.[INDEX].uuid","typeLabel":"string\u003cuuid>"},"url":{"type":"string","description":"The URL, after tracking parameters such as `utm_source` were removed.","uniqueKey":"\\items.items.[INDEX].url","typeLabel":"string"},"jobId":{"oneOf":[{"type":"string","format":"uuid","description":"The ID of the scrape job that ran this URL. `null` until it starts. A retried item gets a new one.","uniqueKey":"\\items.items.[INDEX].jobId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The ID of the scrape job that ran this URL. `null` until it starts. A retried item gets a new one.","uniqueKey":"\\items.items.[INDEX].jobId.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].jobId","typeLabel":"string\u003cuuid> | null"},"status":{"type":"string","enum":["pending","running","completed","failed","cancelled"],"description":"`pending` (waiting), `running`, `completed`, `failed` (`error` says why), or `cancelled` (the batch was cancelled before this URL started).","uniqueKey":"\\items.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"result":{"oneOf":[{"type":"string","description":"The item's result, or `null` until it finishes or when it failed.\n\n- No `prompt` or `schema`: the page as Markdown, starting with a `Content from: \u003curl>` line.\n- With a `prompt` or `schema`: the data the AI extracted. If the AI step fails, this holds the page Markdown as a string instead.\n- `output: \"json\"` with no prompt on a [popular site](/sites/overview): the page's data, the same as `structuredData`.\n","uniqueKey":"\\items.items.[INDEX].result.oneOf.0","typeLabel":"string"},{"type":"object","description":"The item's result, or `null` until it finishes or when it failed.\n\n- No `prompt` or `schema`: the page as Markdown, starting with a `Content from: \u003curl>` line.\n- With a `prompt` or `schema`: the data the AI extracted. If the AI step fails, this holds the page Markdown as a string instead.\n- `output: \"json\"` with no prompt on a [popular site](/sites/overview): the page's data, the same as `structuredData`.\n","uniqueKey":"\\items.items.[INDEX].result.oneOf.1","typeLabel":"object"},{"type":"array","description":"The item's result, or `null` until it finishes or when it failed.\n\n- No `prompt` or `schema`: the page as Markdown, starting with a `Content from: \u003curl>` line.\n- With a `prompt` or `schema`: the data the AI extracted. If the AI step fails, this holds the page Markdown as a string instead.\n- `output: \"json\"` with no prompt on a [popular site](/sites/overview): the page's data, the same as `structuredData`.\n","uniqueKey":"\\items.items.[INDEX].result.oneOf.2","typeLabel":"array"},{"type":"null","description":"The item's result, or `null` until it finishes or when it failed.\n\n- No `prompt` or `schema`: the page as Markdown, starting with a `Content from: \u003curl>` line.\n- With a `prompt` or `schema`: the data the AI extracted. If the AI step fails, this holds the page Markdown as a string instead.\n- `output: \"json\"` with no prompt on a [popular site](/sites/overview): the page's data, the same as `structuredData`.\n","uniqueKey":"\\items.items.[INDEX].result.oneOf.3","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].result","typeLabel":"string | object | array | null"},"structuredData":{"type":"object","description":"Only on [popular sites](/sites/overview). The page's data, such as a product's price and seller or a video's views.","uniqueKey":"\\items.items.[INDEX].structuredData","typeLabel":"object"},"canonicalUrl":{"type":"string","description":"Only when the link that was read differs from the one you sent, for example after a short link was followed.","uniqueKey":"\\items.items.[INDEX].canonicalUrl","typeLabel":"string"},"warnings":{"type":"array","items":{"type":"string","uniqueKey":"\\items.items.[INDEX].warnings.items.[INDEX]","typeLabel":"string"},"description":"Only when something on this page needs your attention, such as a step that was skipped.","uniqueKey":"\\items.items.[INDEX].warnings","typeLabel":"string[]"},"error":{"oneOf":[{"type":"string","description":"Why the item failed, in plain words. `null` otherwise.","uniqueKey":"\\items.items.[INDEX].error.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the item failed, in plain words. `null` otherwise.","uniqueKey":"\\items.items.[INDEX].error.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].error","typeLabel":"string | null"},"creditsUsed":{"type":"integer","description":"Credits this URL cost. `0` for a failed item.","uniqueKey":"\\items.items.[INDEX].creditsUsed","typeLabel":"integer"},"startedAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the URL started.","uniqueKey":"\\items.items.[INDEX].startedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the URL started.","uniqueKey":"\\items.items.[INDEX].startedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].startedAt","typeLabel":"string\u003cdate-time> | null"},"finishedAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the URL finished.","uniqueKey":"\\items.items.[INDEX].finishedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the URL finished.","uniqueKey":"\\items.items.[INDEX].finishedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].finishedAt","typeLabel":"string\u003cdate-time> | null"},"screenshotUrl":{"oneOf":[{"type":"string","format":"uri","description":"A link to the page's screenshot when you asked for one. `null` otherwise.","uniqueKey":"\\items.items.[INDEX].screenshotUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"A link to the page's screenshot when you asked for one. `null` otherwise.","uniqueKey":"\\items.items.[INDEX].screenshotUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].screenshotUrl","typeLabel":"string\u003curi> | null"}},"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"description":"One entry per URL, in the order you sent them.","uniqueKey":"\\items","typeLabel":"object[]"},"createdAt":{"type":"string","format":"date-time","description":"When the batch was created.","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"finishedAt":{"oneOf":[{"type":"string","format":"date-time","description":"When the batch finished or was cancelled. `null` while it runs.","uniqueKey":"finishedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the batch finished or was cancelled. `null` while it runs.","uniqueKey":"finishedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"finishedAt","typeLabel":"string\u003cdate-time> | null"},"schema_warnings":{"type":"array","items":{"type":"string","uniqueKey":"schema_warnings.items.[INDEX]","typeLabel":"string"},"description":"Only when your `schema` uses keywords that are ignored, such as `anyOf`.","uniqueKey":"schema_warnings","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"schema_wait":{"title":"schema_wait","value":{"batchId":"38ae74ab-3a7f-421f-9d02-50c6b48d8c49","status":"completed","totalUrls":3,"completedCount":2,"failedCount":1,"items":[{"uuid":"f43aef75-1f51-455b-b4c0-bbd01c703f46","url":"https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html","jobId":"12389b87-11da-4aad-ab47-218d07b08ccf","status":"completed","result":{"title":"A Light in the Attic","price":51.77},"error":null,"creditsUsed":2,"startedAt":"2026-10-25T03:09:38.000Z","finishedAt":"2026-10-25T03:09:44.000Z","screenshotUrl":null},{"uuid":"445691ac-b528-4368-85d8-3451f0fa8c75","url":"https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html","jobId":"41b0f1c0-119b-4875-9b39-a235fe95a140","status":"completed","result":{"title":"Tipping the Velvet","price":53.74},"error":null,"creditsUsed":2,"startedAt":"2026-10-25T03:09:38.000Z","finishedAt":"2026-10-25T03:09:46.000Z","screenshotUrl":null},{"uuid":"ac714786-f04e-44dc-8f83-2806e6d799ec","url":"https://this-domain-does-not-exist-spidra-test.invalid","jobId":"6dfa2214-0fdc-4d71-9c74-0776201741c4","status":"failed","result":null,"error":"Failed to scrape https://this-domain-does-not-exist-spidra-test.invalid: the page could not be reached (ERR_TUNNEL_CONNECTION_FAILED)","creditsUsed":0,"startedAt":"2026-10-25T03:09:38.000Z","finishedAt":"2026-10-25T03:09:43.000Z","screenshotUrl":null}],"createdAt":"2026-10-25T03:09:37.000Z","finishedAt":"2026-10-25T03:09:45.000Z"}},"popular_site":{"title":"popular_site","value":{"batchId":"c9f6ea1c-d9e9-48f5-b4a8-acd81569b4ac","status":"completed","totalUrls":1,"completedCount":1,"failedCount":0,"items":[{"uuid":"73ffa6ce-e88d-4799-a8d1-8567605a9141","url":"https://www.amazon.com/dp/B0CG1LGWR6","jobId":"b917133c-b77f-4203-8b28-a814fdda84b9","status":"completed","result":{"source":"amazon","type":"product","asin":"B0CG1LGWR6","title":"LISEN USB C to USB C Cable, 240W Fast Charging Type C Charger Cord (6.6FT)","brand":"LISEN","price":8.97,"currency":"USD","availability":"In Stock","rating":4.5,"ratingsCount":12640,"...":"..."},"structuredData":{"source":"amazon","type":"product","asin":"B0CG1LGWR6","title":"LISEN USB C to USB C Cable, 240W Fast Charging Type C Charger Cord (6.6FT)","...":"..."},"error":null,"creditsUsed":1,"startedAt":"2026-10-25T05:01:57.000Z","finishedAt":"2026-10-25T05:02:03.000Z","screenshotUrl":null}],"createdAt":"2026-10-25T05:01:57.000Z","finishedAt":"2026-10-25T05:02:03.000Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"30adba3e-2541-49e2-ae29-13b7f9259501":{"description":"The batch was queued. Poll `GET /batch/scrape/{batchId}` for the results. The `Location` header holds the same path.","headers":{"Location":{"description":"Where to poll, as `/api/batch/scrape/{batchId}`.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["queued"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"batchId":{"type":"string","format":"uuid","description":"The batch's ID. Use it with `GET /batch/scrape/{batchId}`.","uniqueKey":"batchId","typeLabel":"string\u003cuuid>"},"total":{"type":"integer","description":"How many URLs were queued.","uniqueKey":"total","typeLabel":"integer"},"schema_warnings":{"type":"array","items":{"type":"string","uniqueKey":"schema_warnings.items.[INDEX]","typeLabel":"string"},"description":"Only when your `schema` uses keywords that are ignored, such as `anyOf`. The batch still runs.","uniqueKey":"schema_warnings","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"queued","batchId":"dc1a12be-b028-4a46-8459-0a22ee472aef","total":2},"examples":{"Example":{"title":"Example","value":{"status":"queued","batchId":"dc1a12be-b028-4a46-8459-0a22ee472aef","total":2}}},"exampleType":"examples"}},"exampleType":"examples"},"4a7098db-2d96-49b5-ac7f-6c468fb0fab8":{"description":"The API key is missing, wrong, or turned off.","content":{"application/json":{"schema":{"type":"object","required":["status","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"What went wrong, as a sentence you can show to a person.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A stable code for the error, when there is one, such as `JOB_NOT_FOUND` or `SERVICE_BUSY`. Branch on this rather than on `message`.","uniqueKey":"code","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.0","typeLabel":"string[]"},{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"errors","typeLabel":"string[] | object[]"},"retry_after":{"type":"integer","description":"On `503 SERVICE_BUSY`, how many seconds to wait before sending the request again.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"missing":{"title":"missing","value":{"status":"error","message":"Missing authentication"}},"invalid":{"title":"invalid","value":{"status":"error","message":"Invalid token or API key"}}},"exampleType":"examples"}},"exampleType":"examples"},"ef5c0edd-970b-4e07-bb36-6143856bf07f":{"description":"The account's payment is overdue. Update the payment method in the dashboard to continue.","content":{"application/json":{"schema":{"type":"object","required":["status","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"What went wrong, as a sentence you can show to a person.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A stable code for the error, when there is one, such as `JOB_NOT_FOUND` or `SERVICE_BUSY`. Branch on this rather than on `message`.","uniqueKey":"code","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.0","typeLabel":"string[]"},{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"errors","typeLabel":"string[] | object[]"},"retry_after":{"type":"integer","description":"On `503 SERVICE_BUSY`, how many seconds to wait before sending the request again.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","message":"Your payment is overdue. Please update your payment method to continue scraping.","code":"PAYMENT_OVERDUE"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Your payment is overdue. Please update your payment method to continue scraping.","code":"PAYMENT_OVERDUE"}}},"exampleType":"examples"}},"exampleType":"examples"},"259f9825-6ccb-40a1-8d8a-0d9fb20d623d":{"description":"Your account doesn't have enough credits to hold 1 credit for every URL. Top up or upgrade, or send fewer URLs.","content":{"application/json":{"schema":{"type":"object","required":["status","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"What went wrong, as a sentence you can show to a person.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A stable code for the error, when there is one, such as `JOB_NOT_FOUND` or `SERVICE_BUSY`. Branch on this rather than on `message`.","uniqueKey":"code","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.0","typeLabel":"string[]"},{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"errors","typeLabel":"string[] | object[]"},"retry_after":{"type":"integer","description":"On `503 SERVICE_BUSY`, how many seconds to wait before sending the request again.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","message":"You have exceeded your monthly credit limit."},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"You have exceeded your monthly credit limit."}}},"exampleType":"examples"}},"exampleType":"examples"},"c956187e-e750-4d57-9974-1c31a0e6328b":{"description":"The request isn't valid. `errors` lists every problem, naming the URL by its position where it applies.","content":{"application/json":{"schema":{"type":"object","required":["status","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"What went wrong, as a sentence you can show to a person.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A stable code for the error, when there is one, such as `JOB_NOT_FOUND` or `SERVICE_BUSY`. Branch on this rather than on `message`.","uniqueKey":"code","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.0","typeLabel":"string[]"},{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"errors","typeLabel":"string[] | object[]"},"retry_after":{"type":"integer","description":"On `503 SERVICE_BUSY`, how many seconds to wait before sending the request again.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"bad_protocol":{"title":"bad_protocol","value":{"status":"error","message":"Request validation failed. Fix the errors below and try again.","errors":["URL 1: must use http or https protocol"]}},"too_many_urls":{"title":"too_many_urls","value":{"status":"error","message":"Maximum 50 URLs per batch. You provided 51.","errors":["Maximum 50 URLs per batch. You provided 51."]}},"extra_fields":{"title":"extra_fields","value":{"status":"error","message":"Request validation failed. Fix the errors below and try again.","errors":["URL 1: batch items only accept \"url\" (got \"actions\"). Use POST /scrape for per-URL actions."]}},"no_urls":{"title":"no_urls","value":{"status":"error","message":"At least one URL is required.","errors":["At least one URL is required."]}}},"exampleType":"examples"}},"exampleType":"examples"},"785c2ee7-1f01-4854-8d88-5e1c41cbf535":{"description":"Too many requests. Either more than 20 batches in a minute, or this batch would take you past 50 unfinished URLs across your batches and scrapes. Wait, then send the request again.","content":{"application/json":{"schema":{"type":"object","required":["status","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"What went wrong, as a sentence you can show to a person.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A stable code for the error, when there is one, such as `JOB_NOT_FOUND` or `SERVICE_BUSY`. Branch on this rather than on `message`.","uniqueKey":"code","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.0","typeLabel":"string[]"},{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"errors","typeLabel":"string[] | object[]"},"retry_after":{"type":"integer","description":"On `503 SERVICE_BUSY`, how many seconds to wait before sending the request again.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"rate_limit":{"title":"rate_limit","value":{"status":"error","message":"Too many batch job submissions. Please slow down and try again shortly."}},"pending":{"title":"pending","value":{"status":"error","message":"You have too many pending scrape jobs. Please wait for your current batch to complete before submitting more.","code":"TOO_MANY_PENDING_JOBS"}}},"exampleType":"examples"}},"exampleType":"examples"},"9d5e23fc-4190-432b-bfcf-f4eb7b8fb738":{"description":"The batch couldn't be created. The credits held for it were returned. Send the request again.","content":{"application/json":{"schema":{"type":"object","required":["status","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"What went wrong, as a sentence you can show to a person.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A stable code for the error, when there is one, such as `JOB_NOT_FOUND` or `SERVICE_BUSY`. Branch on this rather than on `message`.","uniqueKey":"code","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.0","typeLabel":"string[]"},{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"errors","typeLabel":"string[] | object[]"},"retry_after":{"type":"integer","description":"On `503 SERVICE_BUSY`, how many seconds to wait before sending the request again.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","message":"Failed to create batch job. Your credits have been refunded.","code":"BATCH_CREATE_FAILED"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Failed to create batch job. Your credits have been refunded.","code":"BATCH_CREATE_FAILED"}}},"exampleType":"examples"}},"exampleType":"examples"},"c44b6b87-789d-44ec-beb8-cb150e398d79":{"description":"Spidra is at capacity. Wait `retry_after` seconds, then send the request again.","content":{"application/json":{"schema":{"type":"object","required":["status","message"],"properties":{"status":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"What went wrong, as a sentence you can show to a person.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"A stable code for the error, when there is one, such as `JOB_NOT_FOUND` or `SERVICE_BUSY`. Branch on this rather than on `message`.","uniqueKey":"code","typeLabel":"string"},"errors":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.0","typeLabel":"string[]"},{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","uniqueKey":"errors.oneOf.1.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"errors.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"On validation errors (`422`), every problem with the request. Scrape, batch, crawl, map and search return a list of sentences. Templates, presets and monitors return `{ field, message }` objects.","uniqueKey":"errors.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"errors","typeLabel":"string[] | object[]"},"retry_after":{"type":"integer","description":"On `503 SERVICE_BUSY`, how many seconds to wait before sending the request again.","uniqueKey":"retry_after","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":"error","message":"The scraping service is currently at capacity. Please retry in a few minutes.","code":"SERVICE_BUSY","retry_after":60},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"The scraping service is currently at capacity. Please retry in a few minutes.","code":"SERVICE_BUSY","retry_after":60}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"6ae77587-e60d-4803-9173-0a1617725897":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API key","scopes":[],"schemeName":"BearerAuth"}},"696cbdd8-eb13-4014-a8dd-ee43246169e7":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"bf13fe36-aa6a-4de6-964d-d06f33bc1bb9":{"url":"https://api.spidra.io/api"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API key","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"spidra","siteName":"Spidra","title":"Batch scrape - Spidra","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-25T09:08:38.365Z","originalFileLocation":"api-reference/scraping/batch-scrape.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Starts a batch that scrapes up to 50 URLs, each on its own with its own result, and returns a batchId. Poll Get a batch until status is completed. Guide: Batch scrape. Every option applies to all the URLs. Browser actions aren\u0026#x27;t supported in a batch, so use Start a scrape for pages that need them. With wait: true and up to 10 URLs, the request waits up to 45 seconds and answers 200 with the finished batch, in the same shape as Get a batch. If the batch has more than 10 URLs or takes longer, you get the usual 202 and poll. Batches are kept, so you can come back to one at any time and list, retry or cancel it. Credits: the same as a scrape for each URL: 1 per URL, plus AI credits when you send a prompt or schema, plus 5 per CAPTCHA solved. 1 credit per URL is held when you submit, and a URL that fails costs nothing. See How credits work. Rate limits: 20 batches a minute, and up to 50 unfinished URLs at a time across your batches and scrapes.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Spidra\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/spidra/JYxAUddv93IVFozP/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/spidra/JYxAUddv93IVFozP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/spidra/JYxAUddv93IVFozP/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/spidra/JYxAUddv93IVFozP/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/spidra/JYxAUddv93IVFozP/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/spidra/JYxAUddv93IVFozP/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/spidra/JYxAUddv93IVFozP/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/spidra/JYxAUddv93IVFozP/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/spidra/JYxAUddv93IVFozP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Batch scrape - Spidra\">\u003cmeta data-mint-head property=\"og:description\" content=\"Starts a batch that scrapes up to 50 URLs, each on its own with its own result, and returns a batchId. Poll Get a batch until status is completed. Guide: Batch scrape. Every option applies to all the URLs. Browser actions aren\u0026#x27;t supported in a batch, so use Start a scrape for pages that need them. With wait: true and up to 10 URLs, the request waits up to 45 seconds and answers 200 with the finished batch, in the same shape as Get a batch. If the batch has more than 10 URLs or takes longer, you get the usual 202 and poll. Batches are kept, so you can come back to one at any time and list, retry or cancel it. Credits: the same as a scrape for each URL: 1 per URL, plus AI credits when you send a prompt or schema, plus 5 per CAPTCHA solved. 1 credit per URL is held when you submit, and a URL that fails costs nothing. See How credits work. Rate limits: 20 batches a minute, and up to 50 unfinished URLs at a time across your batches and scrapes.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Spidra\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.spidra.io/api-reference/scraping/batch-scrape\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://spidra.mintlify.site/_mintlify/api/og/v2?division=Batch+scrape\u0026amp;title=Batch+scrape\u0026amp;description=Starts+a+batch+that+scrapes+up+to+50+URLs%2C+each+on+its+own+with+its+own+result%2C+and+returns+a+%60batchId%60.+Poll+%5BGet+a+batch%5D%28%2Fapi-reference%2Fscraping%2Fbatch-scrape\u0026amp;theme=fd0fe7fea6781527f1876f07\u0026amp;signature=af62e7187c60a46a6e14a54843f1e9a5a3073801285b508bf4dace4c6879fc00\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Batch scrape - Spidra\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Starts a batch that scrapes up to 50 URLs, each on its own with its own result, and returns a batchId. Poll Get a batch until status is completed. Guide: Batch scrape. Every option applies to all the URLs. Browser actions aren\u0026#x27;t supported in a batch, so use Start a scrape for pages that need them. With wait: true and up to 10 URLs, the request waits up to 45 seconds and answers 200 with the finished batch, in the same shape as Get a batch. If the batch has more than 10 URLs or takes longer, you get the usual 202 and poll. Batches are kept, so you can come back to one at any time and list, retry or cancel it. Credits: the same as a scrape for each URL: 1 per URL, plus AI credits when you send a prompt or schema, plus 5 per CAPTCHA solved. 1 credit per URL is held when you submit, and a URL that fails costs nothing. See How credits work. Rate limits: 20 batches a minute, and up to 50 unfinished URLs at a time across your batches and scrapes.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://spidra.mintlify.site/_mintlify/api/og/v2?division=Batch+scrape\u0026amp;title=Batch+scrape\u0026amp;description=Starts+a+batch+that+scrapes+up+to+50+URLs%2C+each+on+its+own+with+its+own+result%2C+and+returns+a+%60batchId%60.+Poll+%5BGet+a+batch%5D%28%2Fapi-reference%2Fscraping%2Fbatch-scrape\u0026amp;theme=fd0fe7fea6781527f1876f07\u0026amp;signature=af62e7187c60a46a6e14a54843f1e9a5a3073801285b508bf4dace4c6879fc00\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/spidra/JYxAUddv93IVFozP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Spidra\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#007AFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.spidra.io/api-reference/scraping/batch-scrape\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/scraping/batch-scrape.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.spidra.io/#organization\",\"name\":\"Spidra\",\"url\":\"https://docs.spidra.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/spidra/tjYTncBEy2qwqvSx/logo/logo-light.png?fit=max\u0026auto=format\u0026n=tjYTncBEy2qwqvSx\u0026q=85\u0026s=9ee4bb079b87d8aea61a7d42bfecf118\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.spidra.io#website\",\"name\":\"Spidra\",\"url\":\"https://docs.spidra.io\",\"publisher\":{\"@id\":\"https://docs.spidra.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.spidra.io/api-reference/scraping/batch-scrape#webpage\",\"url\":\"https://docs.spidra.io/api-reference/scraping/batch-scrape\",\"name\":\"Batch scrape\",\"description\":\"Starts a batch that scrapes up to 50 URLs, each on its own with its own result, and returns a batchId. Poll Get a batch until status is completed. Guide: Batch scrape. Every option applies to all the URLs. Browser actions aren't supported in a batch, so use Start a scrape for pages that need them. With wait: true and up to 10 URLs, the request waits up to 45 seconds and answers 200 with the finished batch, in the same shape as Get a batch. If the batch has more than 10 URLs or takes longer, you get the usual 202 and poll. Batches are kept, so you can come back to one at any time and list, retry or cancel it. Credits: the same as a scrape for each URL: 1 per URL, plus AI credits when you send a prompt or schema, plus 5 per CAPTCHA solved. 1 credit per URL is held when you submit, and a URL that fails costs nothing. See How credits work. Rate limits: 20 batches a minute, and up to 50 unfinished URLs at a time across your batches and scrapes.\",\"dateModified\":\"2026-10-25T09:08:38.365Z\",\"isPartOf\":{\"@id\":\"https://docs.spidra.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.spidra.io/api-reference/scraping/batch-scrape#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.spidra.io/api-reference/scraping/batch-scrape#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Spidra\",\"item\":\"https://docs.spidra.io\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Batch scrape\",\"item\":\"https://docs.spidra.io/api-reference/scraping/batch-scrape\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.spidra.io/api-reference/scraping/batch-scrape#apireference\",\"headline\":\"Batch scrape\",\"name\":\"Batch scrape\",\"description\":\"Starts a batch that scrapes up to 50 URLs, each on its own with its own result, and returns a batchId. Poll Get a batch until status is completed. Guide: Batch scrape. Every option applies to all the URLs. Browser actions aren't supported in a batch, so use Start a scrape for pages that need them. With wait: true and up to 10 URLs, the request waits up to 45 seconds and answers 200 with the finished batch, in the same shape as Get a batch. If the batch has more than 10 URLs or takes longer, you get the usual 202 and poll. Batches are kept, so you can come back to one at any time and list, retry or cancel it. Credits: the same as a scrape for each URL: 1 per URL, plus AI credits when you send a prompt or schema, plus 5 per CAPTCHA solved. 1 credit per URL is held when you submit, and a URL that fails costs nothing. See How credits work. Rate limits: 20 batches a minute, and up to 50 unfinished URLs at a time across your batches and scrapes.\",\"url\":\"https://docs.spidra.io/api-reference/scraping/batch-scrape\",\"mainEntityOfPage\":{\"@id\":\"https://docs.spidra.io/api-reference/scraping/batch-scrape#webpage\"},\"dateModified\":\"2026-10-25T09:08:38.365Z\",\"keywords\":\"POST /batch/scrape, batch scrape API, scrape many URLs\",\"publisher\":{\"@id\":\"https://docs.spidra.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.spidra.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Spidra\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Spidra","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"book-open-cover","href":"https://app.spidra.io"},{"anchor":"GitHub","icon":"github","href":"https://github.com/spidra-io"},{"anchor":"Blog","icon":"newspaper","href":"https://spidra.io/blog"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"https://spidra.io/changelog"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/overview"}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/overview"}]},{"tab":"API Reference","groups":[{"group":"Using the API","pages":[{"title":"API introduction","icon":"book","href":"/api-reference/introduction"},{"title":"Errors","icon":"triangle-exclamation","href":"/api-reference/errors"},{"title":"Rate limits","icon":"gauge","href":"/api-reference/rate-limits"},{"title":"Webhooks","icon":"webhook","href":"/api-reference/webhooks"}]},{"group":"Scrape","pages":[{"title":"Start a scrape","openapi":"POST /scrape","href":"/api-reference/scraping/scrape"},{"title":"Get a scrape","openapi":"GET /scrape/{jobId}","description":"Returns a scrape job's status and, once it has finished, its result. Poll every 2 to 5 seconds until `status` is `completed` or `failed`. Polling is free and has no rate limit.\n\nA failed job answers `200` with `status: \"failed\"` and the reason in `error`. You aren't charged for it.\n\nA finished job stays here for about an hour, and a failed one for 24 hours. After that this returns `404`, and the run is still listed in [scrape logs](/api-reference/scraping/scrape-logs).\n","href":"/api-reference/scraping/scrape-status"}]},{"group":"Batch scrape","pages":[{"title":"Batch scrape","openapi":"POST /batch/scrape","href":"/api-reference/scraping/batch-scrape"},{"title":"Get a batch","openapi":"GET /batch/scrape/{batchId}","description":"Returns a batch's progress and every item's status, result and cost. Poll every few seconds until `status` is `completed` or `cancelled`. Polling is free and has no rate limit.\n\nA `completed` batch can still have failed items. Check `failedCount`, read each failed item's `error`, and run them again with [Retry a batch](/api-reference/scraping/batch-scrape-retry).\n\nBatches are kept, so this keeps working after the batch has finished.\n","href":"/api-reference/scraping/batch-scrape-status"},{"title":"List batches","openapi":"GET /batch/scrape","href":"/api-reference/scraping/batch-scrape-list"},{"title":"Retry a batch","openapi":"POST /batch/scrape/{batchId}/retry","href":"/api-reference/scraping/batch-scrape-retry"},{"title":"Cancel a batch","openapi":"DELETE /batch/scrape/{batchId}","href":"/api-reference/scraping/batch-scrape-cancel"}]},{"group":"Crawl","pages":[{"title":"Crawl","openapi":"POST /crawl","href":"/api-reference/crawling/crawl"},{"title":"Get a crawl","openapi":"GET /crawl/{jobId}","href":"/api-reference/crawling/crawl-status"},{"title":"Get crawl pages","openapi":"GET /crawl/{jobId}/pages","href":"/api-reference/crawling/crawl-pages"},{"title":"Get a crawl report","openapi":"GET /crawl/{jobId}/report","href":"/api-reference/crawling/crawl-report"},{"title":"Extract from a crawl","openapi":"POST /crawl/{jobId}/extract","href":"/api-reference/crawling/crawl-extract"},{"title":"Retry a crawl page","openapi":"POST /crawl/{jobId}/retry/{pageId}","href":"/api-reference/crawling/crawl-retry-page"},{"title":"Download a crawl","openapi":"GET /crawl/{jobId}/download","href":"/api-reference/crawling/crawl-download"},{"title":"Get crawl details","openapi":"GET /crawl/job/{jobId}","href":"/api-reference/crawling/crawl-details"},{"title":"List crawls","openapi":"GET /crawl/history","href":"/api-reference/crawling/crawl-history"},{"title":"Cancel a crawl","openapi":"DELETE /crawl/{jobId}","href":"/api-reference/crawling/crawl-cancel"}]},{"group":"Map","pages":[{"title":"Map","openapi":"POST /map","href":"/api-reference/crawling/map"}]},{"group":"Search","pages":[{"title":"Search","openapi":"POST /search","href":"/api-reference/search/search"},{"title":"Get a search","openapi":"GET /search/{jobId}","href":"/api-reference/search/search-status"},{"title":"Cancel a search","openapi":"DELETE /search/{jobId}","href":"/api-reference/search/search-cancel"}]},{"group":"Parse","pages":[{"title":"Parse","openapi":"POST /parse","href":"/api-reference/parse/parse"},{"title":"Get a parse job","openapi":"GET /parse/{jobId}","href":"/api-reference/parse/parse-status"},{"title":"Parse a batch","openapi":"POST /parse/batch","href":"/api-reference/parse/parse-batch"},{"title":"Get a parse batch","openapi":"GET /parse/batch/{batchId}","href":"/api-reference/parse/parse-batch-status"},{"title":"Prepare a large upload","openapi":"POST /parse/uploads","href":"/api-reference/parse/parse-uploads"},{"title":"Delete a document","openapi":"DELETE /parse/files/{fileId}","href":"/api-reference/parse/parse-delete-file"},{"title":"List formats","openapi":"GET /parse/formats","href":"/api-reference/parse/parse-formats"}]},{"group":"Templates","pages":[{"title":"List templates","openapi":"GET /templates","href":"/api-reference/templates/list"},{"title":"Get a template","openapi":"GET /templates/{slug}","href":"/api-reference/templates/get"},{"title":"Estimate a template run","openapi":"POST /templates/{slug}/estimate","href":"/api-reference/templates/estimate"},{"title":"Run a template","openapi":"POST /templates/{slug}/runs","href":"/api-reference/templates/run"},{"title":"Get a template run","openapi":"GET /template-runs/{runId}","href":"/api-reference/templates/get-run"},{"title":"List template runs","openapi":"GET /template-runs","href":"/api-reference/templates/list-runs"},{"title":"Look up airports","openapi":"GET /templates/lookups/airports","href":"/api-reference/templates/airports"}]},{"group":"Presets","pages":[{"title":"Create a preset","openapi":"POST /presets","href":"/api-reference/presets/create"},{"title":"List presets","openapi":"GET /presets","href":"/api-reference/presets/list"},{"title":"Get a preset","openapi":"GET /presets/{presetId}","href":"/api-reference/presets/get"},{"title":"Update a preset","openapi":"PATCH /presets/{presetId}","href":"/api-reference/presets/update"},{"title":"Delete a preset","openapi":"DELETE /presets/{presetId}","href":"/api-reference/presets/delete"},{"title":"Run a preset","openapi":"POST /presets/{presetId}/runs","href":"/api-reference/presets/run"}]},{"group":"Monitors","pages":[{"title":"Create a monitor","openapi":"POST /monitors","href":"/api-reference/monitors/create"},{"title":"List monitors","openapi":"GET /monitors","href":"/api-reference/monitors/list"},{"title":"Get a monitor","openapi":"GET /monitors/{monitorId}","href":"/api-reference/monitors/get"},{"title":"Update a monitor","openapi":"PATCH /monitors/{monitorId}","href":"/api-reference/monitors/update"},{"title":"Delete a monitor","openapi":"DELETE /monitors/{monitorId}","href":"/api-reference/monitors/delete"},{"title":"Check a monitor now","openapi":"POST /monitors/{monitorId}/check","href":"/api-reference/monitors/check-now"},{"title":"Pause a monitor","openapi":"POST /monitors/{monitorId}/pause","href":"/api-reference/monitors/pause"},{"title":"Resume a monitor","openapi":"POST /monitors/{monitorId}/resume","href":"/api-reference/monitors/resume"},{"title":"List monitor checks","openapi":"GET /monitors/{monitorId}/checks","href":"/api-reference/monitors/list-checks"},{"title":"Get a monitor check","openapi":"GET /monitors/{monitorId}/checks/{checkId}","href":"/api-reference/monitors/get-check"},{"title":"Estimate a monitor","openapi":"POST /monitors/estimate","href":"/api-reference/monitors/estimate"},{"title":"Get monitor limits","openapi":"GET /monitors/limits","href":"/api-reference/monitors/limits"},{"title":"Send a test notification","openapi":"POST /monitors/test-notification","href":"/api-reference/monitors/test-notification"}]},{"group":"Logs","pages":[{"title":"List scrape logs","openapi":"GET /scrape-logs","href":"/api-reference/scraping/scrape-logs"},{"title":"Get a scrape log","openapi":"GET /scrape-logs/{uuid}","href":"/api-reference/scraping/scrape-logs-detail"},{"title":"List search logs","openapi":"GET /search-logs","href":"/api-reference/search/search-logs"},{"title":"Get a search log","openapi":"GET /search-logs/{uuid}","href":"/api-reference/search/search-logs-detail"},{"title":"List map logs","openapi":"GET /map-logs","href":"/api-reference/logs/map-logs"},{"title":"Get a map log","openapi":"GET /map-logs/{uuid}","href":"/api-reference/logs/map-logs-detail"},{"title":"List parse logs","openapi":"GET /parse-logs","href":"/api-reference/logs/parse-logs"}]},{"group":"Account","pages":[{"title":"Account","openapi":"GET /account","href":"/api-reference/account/account"},{"title":"Usage stats","openapi":"GET /usage-stats","href":"/api-reference/account/usage-stats"},{"title":"Usage by tool","openapi":"GET /usage-stats/breakdown","href":"/api-reference/account/usage-breakdown"}]}]}]},"basePath":"","title":"Batch scrape - Spidra","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}