{
"code": "quota_exceeded",
"detail": "Too many active jobs.",
"instance": "/v1",
"status": 429,
"title": "Too many active jobs (quota_exceeded)",
"type": "https://docs.zenrows.com/api-error-codes#quota_exceeded"
}
Submit a job. A closed job carries all its URLs up front in tasks; an open job (status: open) is created empty and receives URLs through addBatchTasks until one call sets last_batch. A scheduled job (type: scheduled) stores its URLs as a template and each fire creates a run. zenrows_params applies to every task and a per-task zenrows_params overrides it. Returns 201 under 10,000 inline tasks and 202 at or above that (or for a CSV input); the body is identical, so treat both the same. Documented at https://docs.zenrows.com/batch/developer-guide-restapi#1-create-your-jobs.
{
"code": "quota_exceeded",
"detail": "Too many active jobs.",
"instance": "/v1",
"status": 429,
"title": "Too many active jobs (quota_exceeded)",
"type": "https://docs.zenrows.com/api-error-codes#quota_exceeded"
}
Optional guard against creating duplicate jobs. Each key can be used once: the first submit with a key creates the job, and any later submit reusing it returns 409 idempotency_key_conflict, whether or not the body is identical. The original response is not replayed, so this is not a safe-retry token: if a submit fails midway, list your recent jobs to see whether it was created, then reuse its job_id or submit again with a new key.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Zenrows","colors":{"primary":"#7C4FE8","light":"#7C4FE8","dark":"#7C4FE8"},"logo":{"light":"https://mintcdn.com/zenrows/iSpDUiIAwyhiBA2f/logo/light.svg?fit=max\u0026auto=format\u0026n=iSpDUiIAwyhiBA2f\u0026q=85\u0026s=8f6dde8ed73ba8072d966337bdf253a4","dark":"https://mintcdn.com/zenrows/iSpDUiIAwyhiBA2f/logo/dark.svg?fit=max\u0026auto=format\u0026n=iSpDUiIAwyhiBA2f\u0026q=85\u0026s=b3a8a23e1f5001a48a7f2f233a95f48c","href":"https://www.zenrows.com/"},"favicon":"https://mintcdn.com/zenrows/iSpDUiIAwyhiBA2f/favicon.svg?fit=max\u0026auto=format\u0026n=iSpDUiIAwyhiBA2f\u0026q=85\u0026s=c3b5ed046f6bbf305fb96d21145e0f4b","api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript","node","go","php","ruby","java"],"prefill":true}},"appearance":{"default":"dark","strict":true},"navbar":{"links":[{"href":"https://www.zenrows.com/pricing","label":"Pricing"},{"href":"https://app.zenrows.com/login","label":"Log In"}],"primary":{"type":"button","label":"Start free","href":"https://app.zenrows.com/register"}},"footer":{"socials":{"x":"https://twitter.com/zenrowsHQ","linkedin":"https://www.linkedin.com/company/zenrows","github":"https://github.com/ZenRows"},"links":[{"header":"Primitives","items":[{"label":"Fetch","href":"/fetch/api-reference"},{"label":"Extract","href":"/extract/introduction"},{"label":"Crawl","href":"/crawl/introduction"},{"label":"Batch","href":"/batch/introduction"},{"label":"Browser","href":"/browser-sessions/introduction"}]},{"header":"Account","items":[{"label":"Pricing","href":"https://www.zenrows.com/pricing"},{"label":"Dashboard","href":"https://app.zenrows.com/overview"},{"label":"Billing \u0026 Invoices","href":"https://app.zenrows.com/billing/invoices"},{"label":"Support","href":"mailto:success@zenrows.com"},{"label":"Profile \u0026 API Key","href":"https://app.zenrows.com/settings/profile"}]},{"header":"Company","items":[{"label":"Contact","href":"https://www.zenrows.com/contact"},{"label":"Privacy Policy","href":"https://www.zenrows.com/legal/privacy"},{"label":"Legal Pages","href":"https://www.zenrows.com/legal"},{"label":"ISO 27001","href":"https://26062658.fs1.hubspotusercontent-eu1.net/hubfs/26062658/ISO/Cert%20251217%20ENG%2027001.pdf"}]}]},"seo":{"metatags":{"og:type":"website","og:site_name":"Zenrows Docs"}},"fonts":{"heading":{"family":"Rawest","weight":500,"source":"fonts/rawest-medium.woff2","format":"woff2"},"body":{"family":"Manrope"}},"icons":{"library":"tabler"},"styling":{"codeblocks":{"theme":"css-variables"},"latex":true},"integrations":{"amplitude":{"apiKey":"0837a12670049d37ea3cedb1fa3e9fee"},"gtm":{"tagId":"GTM-KBFL4XF"}},"banner":{"content":"Crawl is New: give one start URL and get back the pages behind it. [Get started](/crawl/introduction)","dismissible":true},"contextual":{"options":["copy","view","download-spec","chatgpt","claude","perplexity","mcp",{"title":"Zenrows MCP Server","description":"Set up the MCP server that fetches and extracts web data","icon":"plug","href":"https://docs.zenrows.com/mcp/overview"}],"display":"header"},"thumbnails":{"appearance":"dark","background":"https://mintcdn.com/zenrows/RA3w4wNbJL_40NF6/images/og/thumbnail-background.png?fit=max\u0026auto=format\u0026n=RA3w4wNbJL_40NF6\u0026q=85\u0026s=8f27d016ed36acecc2570522c52ffbeb","fonts":{"family":"Rawest","source":"fonts/rawest-medium.ttf","format":"ttf"},"eyebrow":{"source":"none"}},"markdown":{"instructions":"The Zenrows HTTP API serves Fetch and Extract (extract=auto) at https://api.zenrows.com/v1/, Crawl at https://api.zenrows.com/v1/crawls, and Batch at https://async.api.zenrows.com/v1. Fetch, Extract, Crawl and Batch are described in OpenAPI 3.1 at https://www.zenrows.com/openapi.json and listed in the RFC 9727 API catalog at https://www.zenrows.com/.well-known/api-catalog. Every endpoint also has its own page under /api-reference with its schema. Use the spec for exact parameter names and types. Crawl's endpoints, parameters and errors are also at https://docs.zenrows.com/crawl/endpoints.md. To call Zenrows from an agent, connect the MCP server at https://mcp.zenrows.com/mcp. To search these docs from an agent, connect the docs MCP server at https://docs.zenrows.com/mcp. Agent skills for Zenrows are published at https://github.com/ZenRows/cli and install with `npx skills add ZenRows/cli`."},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"zenrows","hasAudioNarration":false,"actualSubdomain":"zenrows","customDomains":["docs.zenrows.com"],"gitSource":{"type":"github","owner":"zenrows","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af1b9b2e7b89d498acbf3ca","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Documentation","count":284},{"language":"default","tag":"Fetch","count":64},{"language":"default","tag":"API","count":63},{"language":"default","tag":"Academy","count":62},{"language":"default","tag":"API Reference","count":45},{"language":"default","tag":"Integrations","count":42},{"language":"default","tag":"SDK","count":39},{"language":"default","tag":"Batch","count":36},{"language":"default","tag":"Features","count":26},{"language":"default","tag":"Get Started","count":25}]},"assistantConfig":{"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"deflection":{"enabled":true,"email":"success@zenrows.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","href":"/_mintlify/custom/zenrows/726e1019fcf2e285/style.css"}],"page":{"pagePath":"api-reference/batch/create-a-batch-job-many-urls-in-one-request","slug":"/api-reference/batch/create-a-batch-job-many-urls-in-one-request","pageMetadata":{"title":"Create a batch job (many URLs in one request)","description":"Submit a job. A closed job carries all its URLs up front in `tasks`; an open job (`status: open`) is created empty and receives URLs through addBatchTasks until one call sets `last_batch`. A scheduled job (`type: scheduled`) stores its URLs as a template and each fire creates a run. `zenrows_params` applies to every task and a per-task `zenrows_params` overrides it. Returns 201 under 10,000 inline tasks and 202 at or above that (or for a CSV input); the body is identical, so treat both the same. Documented at https://docs.zenrows.com/batch/developer-guide-restapi#1-create-your-jobs.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs","href":"/api-reference/batch/create-a-batch-job-many-urls-in-one-request","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {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 ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Submit a job. A closed job carries all its URLs up front in \", _jsx(_components.code, {\n children: \"tasks\"\n }), \"; an open job (\", _jsx(_components.code, {\n children: \"status: open\"\n }), \") is created empty and receives URLs through addBatchTasks until one call sets \", _jsx(_components.code, {\n children: \"last_batch\"\n }), \". A scheduled job (\", _jsx(_components.code, {\n children: \"type: scheduled\"\n }), \") stores its URLs as a template and each fire creates a run. \", _jsx(_components.code, {\n children: \"zenrows_params\"\n }), \" applies to every task and a per-task \", _jsx(_components.code, {\n children: \"zenrows_params\"\n }), \" overrides it. Returns 201 under 10,000 inline tasks and 202 at or above that (or for a CSV input); the body is identical, so treat both the same. Documented at \", _jsx(_components.a, {\n href: \"https://docs.zenrows.com/batch/developer-guide-restapi#1-create-your-jobs\",\n children: \"https://docs.zenrows.com/batch/developer-guide-restapi#1-create-your-jobs\"\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":{"codeStyling":{"theme":"css-variables"},"config":{},"pageMetadata":{"title":"Create a batch job (many URLs in one request)","description":"Submit a job. A closed job carries all its URLs up front in `tasks`; an open job (`status: open`) is created empty and receives URLs through addBatchTasks until one call sets `last_batch`. A scheduled job (`type: scheduled`) stores its URLs as a template and each fire creates a run. `zenrows_params` applies to every task and a per-task `zenrows_params` overrides it. Returns 201 under 10,000 inline tasks and 202 at or above that (or for a CSV input); the body is identical, so treat both the same. Documented at https://docs.zenrows.com/batch/developer-guide-restapi#1-create-your-jobs.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs","href":"/api-reference/batch/create-a-batch-job-many-urls-in-one-request","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/zenrows/8f51f7ed033f4299/zenrows-amplitude-bridge.js","/_mintlify/custom/zenrows/7efdec0cc55fb182/reodev_script.js","/_mintlify/custom/zenrows/decca87420af86bd/api-tags.js","/_mintlify/custom/zenrows/906a678fbb478b2d/banner-fabric.js","/_mintlify/custom/zenrows/c913d17bfecc4418/code-tabs.js","/_mintlify/custom/zenrows/f0179bc249aecf1f/nav-roll.js","/_mintlify/custom/zenrows/1a1dfa0cfedc39c6/o-fabric.js","/_mintlify/custom/zenrows/3cddc4ee2b6b0444/primitive-rive.js","/_mintlify/custom/zenrows/f2442e9fd43476a8/setup-copy.js"],"openApiReferenceData":{"operation":{"operationId":"createBatchJob","summary":"Create a batch job (many URLs in one request)","description":"Submit a job. A closed job carries all its URLs up front in `tasks`; an open job (`status: open`) is created empty and receives URLs through addBatchTasks until one call sets `last_batch`. A scheduled job (`type: scheduled`) stores its URLs as a template and each fire creates a run. `zenrows_params` applies to every task and a per-task `zenrows_params` overrides it. Returns 201 under 10,000 inline tasks and 202 at or above that (or for a CSV input); the body is identical, so treat both the same. Documented at https://docs.zenrows.com/batch/developer-guide-restapi#1-create-your-jobs.","tags":["Batch"],"servers":["c872b459-cd65-4c16-baf0-35320cd3d240"],"security":["0f5e30a9-5487-49ae-9a08-d52500b17e04"],"parameters":["68b0e6d2-7c75-46c3-9a79-83eabae31735"],"requestBody":"a74cb197-2368-40fc-9cc4-5b37e8c4f03c","responses":{"201":"c6c298f0-a3ba-424c-bcd9-774d21ddebc4","202":"c3252300-a424-409e-9c39-9a1024b97d46","400":"c6bf5b42-c12b-449f-90b4-9aca9dec6d74","401":"db18339f-6598-4a2f-b63d-e706873c6e8d","402":"bc9b263f-2294-4835-80e3-61417ad97289","409":"06be2d36-386a-4015-8c97-70e482c189f5","429":"bab828c2-5a09-4bd3-81f8-3a2ded7ff6c9","503":"eca9e9ef-4318-4595-9750-eb366ddf3c80"},"method":"post","type":"path","path":"/jobs","baseUrlOptions":["https://async.api.zenrows.com/v1"],"title":"Create a batch job (many URLs in one request)","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","node","go","php","ruby","java"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.type":"regular","body.status":"closed","body.zenrows_params":{"js_render":"true","response_type":"markdown"},"body.tasks.items.0.url":"https://www.scrapingcourse.com/ecommerce/product/abominable-hoodie/","body.tasks.items.0.external_id":"sku-1042","body.tasks.items.1.url":"https://www.scrapingcourse.com/ecommerce/product/adrienne-trek-jacket/","body.tasks.items.1.external_id":"sku-1043","body.tasks.items.1.zenrows_params":{"proxy_country":"de"}}]},"dependencies":{"parameters":{"68b0e6d2-7c75-46c3-9a79-83eabae31735":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"Optional guard against creating duplicate jobs. Each key can be used once: the first submit with a key creates the job, and any later submit reusing it returns 409 `idempotency_key_conflict`, whether or not the body is identical. The original response is not replayed, so this is not a safe-retry token: if a submit fails midway, list your recent jobs to see whether it was created, then reuse its `job_id` or submit again with a new key.","uniqueKey":"","typeLabel":"string"},"description":"Optional guard against creating duplicate jobs. Each key can be used once: the first submit with a key creates the job, and any later submit reusing it returns 409 `idempotency_key_conflict`, whether or not the body is identical. The original response is not replayed, so this is not a safe-retry token: if a submit fails midway, list your recent jobs to see whether it was created, then reuse its `job_id` or submit again with a new key.","example":"nightly-2026-06-08"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type","status"],"properties":{"type":{"type":"string","enum":["regular","scheduled"],"description":"`regular` runs when submitted; `scheduled` runs on the `schedule`.","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["closed","open"],"description":"`closed` carries every URL now; `open` accepts URLs over time through addBatchTasks.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Your own label for the job.","uniqueKey":"name","typeLabel":"string"},"external_id":{"type":"string","description":"Your own identifier for the job.","uniqueKey":"external_id","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"description":"Your own key-value data, returned with the job.","uniqueKey":"metadata","typeLabel":"object"},"zenrows_params":{"type":"object","description":"Fetch parameters applied to every task, with the names the fetchPage operation uses.","additionalProperties":true,"uniqueKey":"zenrows_params","typeLabel":"object"},"tasks":{"type":"array","description":"The URLs to run, up to 100,000 per submit. Omit for an open job and when `file_input_id` is set.","maxItems":100000,"items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"tasks.items.[INDEX].url","typeLabel":"string\u003curi>"},"external_id":{"type":"string","description":"Your own identifier, echoed on the result. Need not be unique.","uniqueKey":"tasks.items.[INDEX].external_id","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"description":"Your own data, echoed on the result.","uniqueKey":"tasks.items.[INDEX].metadata","typeLabel":"object"},"zenrows_params":{"type":"object","additionalProperties":true,"description":"Overrides the job-level parameters for this URL.","uniqueKey":"tasks.items.[INDEX].zenrows_params","typeLabel":"object"},"method":{"type":"string","enum":["GET","POST"],"default":"GET","description":"`POST` sends `body` to the target.","uniqueKey":"tasks.items.[INDEX].method","typeLabel":"enum\u003cstring>"},"body":{"type":"string","maxLength":16384,"description":"Sent to the target as is, with `method: POST`. Up to 16 KiB.","uniqueKey":"tasks.items.[INDEX].body","typeLabel":"string"}},"uniqueKey":"tasks.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tasks","typeLabel":"object[]"},"file_input_id":{"type":"string","description":"From uploadBatchInput, to run the job from an uploaded CSV instead of inline `tasks`. Always answers 202.","uniqueKey":"file_input_id","typeLabel":"string"},"schedule":{"type":"object","description":"Exactly one of `at`, `rate` or `calendar`, plus `timezone` for `at` and `calendar`. Times of day are full hours; runs are at least 60 minutes apart.","properties":{"at":{"type":"object","additionalProperties":true,"description":"One run at a single wall-clock time.","uniqueKey":"schedule.at","typeLabel":"object"},"rate":{"type":"object","description":"Every N hours.","properties":{"every":{"type":"integer","minimum":1,"uniqueKey":"schedule.rate.every","typeLabel":"integer"},"unit":{"type":"string","enum":["hour"],"uniqueKey":"schedule.rate.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"schedule.rate","typeLabel":"object"},"calendar":{"type":"object","properties":{"times_of_day":{"type":"array","items":{"type":"string","pattern":"^[0-2][0-9]:00$","uniqueKey":"schedule.calendar.times_of_day.items.[INDEX]","typeLabel":"string"},"description":"Full hours, `HH:00`.","uniqueKey":"schedule.calendar.times_of_day","typeLabel":"string[]"},"cadence":{"type":"object","additionalProperties":true,"description":"For example `{\"weekly\": {\"days\": [\"mon\", \"wed\", \"fri\"]}}`.","uniqueKey":"schedule.calendar.cadence","typeLabel":"object"}},"uniqueKey":"schedule.calendar","typeLabel":"object"},"timezone":{"type":"string","description":"IANA name, for example `Europe/Berlin`.","uniqueKey":"schedule.timezone","typeLabel":"string"}},"uniqueKey":"schedule","typeLabel":"object"},"webhook":{"type":"object","required":["url"],"description":"Where run notifications (`run.completed`, `run.failed`) are delivered.","properties":{"url":{"type":"string","format":"uri","description":"Your HTTPS receiver.","isRequired":true,"uniqueKey":"webhook.url","typeLabel":"string\u003curi>"},"signature":{"type":"boolean","description":"Sign deliveries with your HMAC key (needs an active key, see startHmacKeyRotation).","uniqueKey":"webhook.signature","typeLabel":"boolean"}},"uniqueKey":"webhook","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"type":"regular","status":"closed","zenrows_params":{"js_render":"true","response_type":"markdown"},"tasks":[{"url":"https://www.scrapingcourse.com/ecommerce/product/abominable-hoodie/","external_id":"sku-1042"},{"url":"https://www.scrapingcourse.com/ecommerce/product/adrienne-trek-jacket/","external_id":"sku-1043","zenrows_params":{"proxy_country":"de"}}]},"examples":{"Example":{"title":"Example","value":{"type":"regular","status":"closed","zenrows_params":{"js_render":"true","response_type":"markdown"},"tasks":[{"url":"https://www.scrapingcourse.com/ecommerce/product/abominable-hoodie/","external_id":"sku-1042"},{"url":"https://www.scrapingcourse.com/ecommerce/product/adrienne-trek-jacket/","external_id":"sku-1043","zenrows_params":{"proxy_country":"de"}}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"c6c298f0-a3ba-424c-bcd9-774d21ddebc4":{"description":"Job accepted, under 10,000 inline tasks.","content":{"application/json":{"schema":{"type":"object","description":"The answer to createBatchJob.","properties":{"job_id":{"type":"string","uniqueKey":"job_id","typeLabel":"string"},"status":{"type":"string","enum":["open","closed"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"accepted_tasks":{"type":"integer","uniqueKey":"accepted_tasks","typeLabel":"integer"},"webhook":{"type":"object","required":["url"],"description":"Where run notifications (`run.completed`, `run.failed`) are delivered.","properties":{"url":{"type":"string","format":"uri","description":"Your HTTPS receiver.","isRequired":true,"uniqueKey":"webhook.url","typeLabel":"string\u003curi>"},"signature":{"type":"boolean","description":"Sign deliveries with your HMAC key (needs an active key, see startHmacKeyRotation).","uniqueKey":"webhook.signature","typeLabel":"boolean"}},"uniqueKey":"webhook","typeLabel":"object"},"latest_run":{"type":"object","description":"One run of a job.","properties":{"run_id":{"type":"string","uniqueKey":"latest_run.run_id","typeLabel":"string"},"job_id":{"type":"string","uniqueKey":"latest_run.job_id","typeLabel":"string"},"run_sequence":{"type":"integer","description":"1 for the first run, then one more per rerun or scheduled fire.","uniqueKey":"latest_run.run_sequence","typeLabel":"integer"},"status":{"type":"string","enum":["pending","running","completed","failed","stopped","deleted"],"description":"`completed`, `failed`, `stopped` and `deleted` are terminal.","uniqueKey":"latest_run.status","typeLabel":"enum\u003cstring>"},"pause_state":{"type":"string","enum":["active","paused"],"description":"`paused` after pauseBatchRun; `status` does not change.","uniqueKey":"latest_run.pause_state","typeLabel":"enum\u003cstring>"},"trigger":{"type":"string","enum":["manual","scheduled"],"description":"What started the run.","uniqueKey":"latest_run.trigger","typeLabel":"enum\u003cstring>"},"last_batch_received":{"type":"boolean","description":"Open jobs: whether the final addBatchTasks call arrived.","uniqueKey":"latest_run.last_batch_received","typeLabel":"boolean"},"stats":{"type":"object","description":"Task counters. `completed` is `successful` plus `failed`.","properties":{"total":{"type":"integer","uniqueKey":"latest_run.stats.total","typeLabel":"integer"},"completed":{"type":"integer","uniqueKey":"latest_run.stats.completed","typeLabel":"integer"},"successful":{"type":"integer","uniqueKey":"latest_run.stats.successful","typeLabel":"integer"},"failed":{"type":"integer","uniqueKey":"latest_run.stats.failed","typeLabel":"integer"},"spend":{"type":"object","description":"Absent until there is spend.","properties":{"credits":{"type":"integer","uniqueKey":"latest_run.stats.spend.credits","typeLabel":"integer"},"cost":{"type":"number","description":"US dollars.","uniqueKey":"latest_run.stats.spend.cost","typeLabel":"number"}},"uniqueKey":"latest_run.stats.spend","typeLabel":"object"}},"uniqueKey":"latest_run.stats","typeLabel":"object"},"failure_reason":{"type":"string","description":"Only when the whole run failed. Open set; new values may appear.","examples":["insufficient_credits","subscription_inactive","api_key_cap_reached"],"uniqueKey":"latest_run.failure_reason","typeLabel":"string"},"failure_detail":{"type":"string","description":"What happened, for example which cap and when it resets.","uniqueKey":"latest_run.failure_detail","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","uniqueKey":"latest_run.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"latest_run.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"latest_run","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"job_id":"01M4E06YS7BDRECVN5QRHJA6HR","status":"closed","accepted_tasks":2,"latest_run":{"run_id":"01M4E06YS7VZPY4G25DV6FR3B8","job_id":"01M4E06YS7BDRECVN5QRHJA6HR","run_sequence":1,"status":"running","trigger":"manual","last_batch_received":false,"stats":{"total":2,"completed":0,"successful":0,"failed":0},"created_at":"2026-10-08T14:55:52Z","updated_at":"2026-10-08T14:56:06Z"}},"examples":{"Example":{"title":"Example","value":{"job_id":"01M4E06YS7BDRECVN5QRHJA6HR","status":"closed","accepted_tasks":2,"latest_run":{"run_id":"01M4E06YS7VZPY4G25DV6FR3B8","job_id":"01M4E06YS7BDRECVN5QRHJA6HR","run_sequence":1,"status":"running","trigger":"manual","last_batch_received":false,"stats":{"total":2,"completed":0,"successful":0,"failed":0},"created_at":"2026-10-08T14:55:52Z","updated_at":"2026-10-08T14:56:06Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"c3252300-a424-409e-9c39-9a1024b97d46":{"description":"Job accepted, 10,000 tasks or more, or a CSV input. Task rows keep writing for a few seconds, so results pages can be partial at first, and addBatchTasks can answer 409 meanwhile.","content":{"application/json":{"schema":{"type":"object","description":"The answer to createBatchJob.","properties":{"job_id":{"type":"string","uniqueKey":"job_id","typeLabel":"string"},"status":{"type":"string","enum":["open","closed"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"accepted_tasks":{"type":"integer","uniqueKey":"accepted_tasks","typeLabel":"integer"},"webhook":{"type":"object","required":["url"],"description":"Where run notifications (`run.completed`, `run.failed`) are delivered.","properties":{"url":{"type":"string","format":"uri","description":"Your HTTPS receiver.","isRequired":true,"uniqueKey":"webhook.url","typeLabel":"string\u003curi>"},"signature":{"type":"boolean","description":"Sign deliveries with your HMAC key (needs an active key, see startHmacKeyRotation).","uniqueKey":"webhook.signature","typeLabel":"boolean"}},"uniqueKey":"webhook","typeLabel":"object"},"latest_run":{"type":"object","description":"One run of a job.","properties":{"run_id":{"type":"string","uniqueKey":"latest_run.run_id","typeLabel":"string"},"job_id":{"type":"string","uniqueKey":"latest_run.job_id","typeLabel":"string"},"run_sequence":{"type":"integer","description":"1 for the first run, then one more per rerun or scheduled fire.","uniqueKey":"latest_run.run_sequence","typeLabel":"integer"},"status":{"type":"string","enum":["pending","running","completed","failed","stopped","deleted"],"description":"`completed`, `failed`, `stopped` and `deleted` are terminal.","uniqueKey":"latest_run.status","typeLabel":"enum\u003cstring>"},"pause_state":{"type":"string","enum":["active","paused"],"description":"`paused` after pauseBatchRun; `status` does not change.","uniqueKey":"latest_run.pause_state","typeLabel":"enum\u003cstring>"},"trigger":{"type":"string","enum":["manual","scheduled"],"description":"What started the run.","uniqueKey":"latest_run.trigger","typeLabel":"enum\u003cstring>"},"last_batch_received":{"type":"boolean","description":"Open jobs: whether the final addBatchTasks call arrived.","uniqueKey":"latest_run.last_batch_received","typeLabel":"boolean"},"stats":{"type":"object","description":"Task counters. `completed` is `successful` plus `failed`.","properties":{"total":{"type":"integer","uniqueKey":"latest_run.stats.total","typeLabel":"integer"},"completed":{"type":"integer","uniqueKey":"latest_run.stats.completed","typeLabel":"integer"},"successful":{"type":"integer","uniqueKey":"latest_run.stats.successful","typeLabel":"integer"},"failed":{"type":"integer","uniqueKey":"latest_run.stats.failed","typeLabel":"integer"},"spend":{"type":"object","description":"Absent until there is spend.","properties":{"credits":{"type":"integer","uniqueKey":"latest_run.stats.spend.credits","typeLabel":"integer"},"cost":{"type":"number","description":"US dollars.","uniqueKey":"latest_run.stats.spend.cost","typeLabel":"number"}},"uniqueKey":"latest_run.stats.spend","typeLabel":"object"}},"uniqueKey":"latest_run.stats","typeLabel":"object"},"failure_reason":{"type":"string","description":"Only when the whole run failed. Open set; new values may appear.","examples":["insufficient_credits","subscription_inactive","api_key_cap_reached"],"uniqueKey":"latest_run.failure_reason","typeLabel":"string"},"failure_detail":{"type":"string","description":"What happened, for example which cap and when it resets.","uniqueKey":"latest_run.failure_detail","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","uniqueKey":"latest_run.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"latest_run.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"latest_run","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"job_id":"01M4E06YS7BDRECVN5QRHJA6HR","status":"closed","accepted_tasks":2,"latest_run":{"run_id":"01M4E06YS7VZPY4G25DV6FR3B8","job_id":"01M4E06YS7BDRECVN5QRHJA6HR","run_sequence":1,"status":"running","trigger":"manual","last_batch_received":false,"stats":{"total":2,"completed":0,"successful":0,"failed":0},"created_at":"2026-10-08T14:55:52Z","updated_at":"2026-10-08T14:56:06Z"}},"examples":{"Example":{"title":"Example","value":{"job_id":"01M4E06YS7BDRECVN5QRHJA6HR","status":"closed","accepted_tasks":2,"latest_run":{"run_id":"01M4E06YS7VZPY4G25DV6FR3B8","job_id":"01M4E06YS7BDRECVN5QRHJA6HR","run_sequence":1,"status":"running","trigger":"manual","last_batch_received":false,"stats":{"total":2,"completed":0,"successful":0,"failed":0},"created_at":"2026-10-08T14:55:52Z","updated_at":"2026-10-08T14:56:06Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"c6bf5b42-c12b-449f-90b4-9aca9dec6d74":{"description":"`invalid_argument`: validation failed. `invalid_tasks` lists each rejected task as `{index, reason}`. Documented at https://docs.zenrows.com/batch/developer-guide-restapi#error-handling-reference.","headers":{"X-Request-Id":{"description":"Identifier for this request. Quote it when reporting a problem.","schema":{"type":"string","example":"67fa4e35647515d8ad61bb3ee041e1bb"}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"Zenrows error envelope, sent as `application/problem+json` (RFC 9457 problem details). `code` is the stable identifier to branch on; `type` links to its entry in the catalogue at https://docs.zenrows.com/api-error-codes. Read back from live responses.","properties":{"code":{"type":"string","example":"AUTH002","uniqueKey":"code","typeLabel":"string"},"status":{"type":"integer","example":401,"uniqueKey":"status","typeLabel":"integer"},"title":{"type":"string","example":"Invalid apikey provided (AUTH002)","uniqueKey":"title","typeLabel":"string"},"detail":{"type":"string","example":"Invalid API key.","uniqueKey":"detail","typeLabel":"string"},"type":{"type":"string","format":"uri","example":"https://docs.zenrows.com/api-error-codes#AUTH002","uniqueKey":"type","typeLabel":"string\u003curi>"},"instance":{"type":"string","description":"The request path or a request URN. Quote it when reporting a problem.","example":"/v1","uniqueKey":"instance","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"invalid_argument","detail":"Validation failed.","instance":"/v1","status":400,"title":"Validation failed (invalid_argument)","type":"https://docs.zenrows.com/api-error-codes#invalid_argument"},"examples":{"Example":{"title":"Example","value":{"code":"invalid_argument","detail":"Validation failed.","instance":"/v1","status":400,"title":"Validation failed (invalid_argument)","type":"https://docs.zenrows.com/api-error-codes#invalid_argument"}}},"exampleType":"examples"}},"exampleType":"examples"},"db18339f-6598-4a2f-b63d-e706873c6e8d":{"description":"`unauthenticated`: the `X-API-Key` header is missing or invalid.","headers":{"X-Request-Id":{"description":"Identifier for this request. Quote it when reporting a problem.","schema":{"type":"string","example":"67fa4e35647515d8ad61bb3ee041e1bb"}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"Zenrows error envelope, sent as `application/problem+json` (RFC 9457 problem details). `code` is the stable identifier to branch on; `type` links to its entry in the catalogue at https://docs.zenrows.com/api-error-codes. Read back from live responses.","properties":{"code":{"type":"string","example":"AUTH002","uniqueKey":"code","typeLabel":"string"},"status":{"type":"integer","example":401,"uniqueKey":"status","typeLabel":"integer"},"title":{"type":"string","example":"Invalid apikey provided (AUTH002)","uniqueKey":"title","typeLabel":"string"},"detail":{"type":"string","example":"Invalid API key.","uniqueKey":"detail","typeLabel":"string"},"type":{"type":"string","format":"uri","example":"https://docs.zenrows.com/api-error-codes#AUTH002","uniqueKey":"type","typeLabel":"string\u003curi>"},"instance":{"type":"string","description":"The request path or a request URN. Quote it when reporting a problem.","example":"/v1","uniqueKey":"instance","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"unauthenticated","detail":"Invalid API key.","instance":"/v1","status":401,"title":"Unauthenticated (unauthenticated)","type":"https://docs.zenrows.com/api-error-codes#unauthenticated"},"examples":{"Example":{"title":"Example","value":{"code":"unauthenticated","detail":"Invalid API key.","instance":"/v1","status":401,"title":"Unauthenticated (unauthenticated)","type":"https://docs.zenrows.com/api-error-codes#unauthenticated"}}},"exampleType":"examples"}},"exampleType":"examples"},"bc9b263f-2294-4835-80e3-61417ad97289":{"description":"`payment_required` (no credits left) or `api_key_cap_reached` (the key hit a credit cap; `detail` names the cap and when it resets).","headers":{"X-Request-Id":{"description":"Identifier for this request. Quote it when reporting a problem.","schema":{"type":"string","example":"67fa4e35647515d8ad61bb3ee041e1bb"}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"Zenrows error envelope, sent as `application/problem+json` (RFC 9457 problem details). `code` is the stable identifier to branch on; `type` links to its entry in the catalogue at https://docs.zenrows.com/api-error-codes. Read back from live responses.","properties":{"code":{"type":"string","example":"AUTH002","uniqueKey":"code","typeLabel":"string"},"status":{"type":"integer","example":401,"uniqueKey":"status","typeLabel":"integer"},"title":{"type":"string","example":"Invalid apikey provided (AUTH002)","uniqueKey":"title","typeLabel":"string"},"detail":{"type":"string","example":"Invalid API key.","uniqueKey":"detail","typeLabel":"string"},"type":{"type":"string","format":"uri","example":"https://docs.zenrows.com/api-error-codes#AUTH002","uniqueKey":"type","typeLabel":"string\u003curi>"},"instance":{"type":"string","description":"The request path or a request URN. Quote it when reporting a problem.","example":"/v1","uniqueKey":"instance","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"payment_required","detail":"No credits available.","instance":"/v1","status":402,"title":"No credits available (payment_required)","type":"https://docs.zenrows.com/api-error-codes#payment_required"},"examples":{"Example":{"title":"Example","value":{"code":"payment_required","detail":"No credits available.","instance":"/v1","status":402,"title":"No credits available (payment_required)","type":"https://docs.zenrows.com/api-error-codes#payment_required"}}},"exampleType":"examples"}},"exampleType":"examples"},"06be2d36-386a-4015-8c97-70e482c189f5":{"description":"`idempotency_key_conflict`: the Idempotency-Key was already used. No job was created by this request.","content":{"application/problem+json":{"schema":{"type":"object","description":"Zenrows error envelope, sent as `application/problem+json` (RFC 9457 problem details). `code` is the stable identifier to branch on; `type` links to its entry in the catalogue at https://docs.zenrows.com/api-error-codes. Read back from live responses.","properties":{"code":{"type":"string","example":"AUTH002","uniqueKey":"code","typeLabel":"string"},"status":{"type":"integer","example":401,"uniqueKey":"status","typeLabel":"integer"},"title":{"type":"string","example":"Invalid apikey provided (AUTH002)","uniqueKey":"title","typeLabel":"string"},"detail":{"type":"string","example":"Invalid API key.","uniqueKey":"detail","typeLabel":"string"},"type":{"type":"string","format":"uri","example":"https://docs.zenrows.com/api-error-codes#AUTH002","uniqueKey":"type","typeLabel":"string\u003curi>"},"instance":{"type":"string","description":"The request path or a request URN. Quote it when reporting a problem.","example":"/v1","uniqueKey":"instance","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"idempotency_key_conflict","detail":"Idempotency key already used.","instance":"/v1","status":409,"title":"Idempotency key already used (idempotency_key_conflict)","type":"https://docs.zenrows.com/api-error-codes#idempotency_key_conflict"},"examples":{"Example":{"title":"Example","value":{"code":"idempotency_key_conflict","detail":"Idempotency key already used.","instance":"/v1","status":409,"title":"Idempotency key already used (idempotency_key_conflict)","type":"https://docs.zenrows.com/api-error-codes#idempotency_key_conflict"}}},"exampleType":"examples"}},"exampleType":"examples"},"bab828c2-5a09-4bd3-81f8-3a2ded7ff6c9":{"description":"`quota_exceeded`: the account already runs its active jobs (3 by default, shared with Crawl). Wait for one to end.","headers":{"X-Request-Id":{"description":"Identifier for this request. Quote it when reporting a problem.","schema":{"type":"string","example":"67fa4e35647515d8ad61bb3ee041e1bb"}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"Zenrows error envelope, sent as `application/problem+json` (RFC 9457 problem details). `code` is the stable identifier to branch on; `type` links to its entry in the catalogue at https://docs.zenrows.com/api-error-codes. Read back from live responses.","properties":{"code":{"type":"string","example":"AUTH002","uniqueKey":"code","typeLabel":"string"},"status":{"type":"integer","example":401,"uniqueKey":"status","typeLabel":"integer"},"title":{"type":"string","example":"Invalid apikey provided (AUTH002)","uniqueKey":"title","typeLabel":"string"},"detail":{"type":"string","example":"Invalid API key.","uniqueKey":"detail","typeLabel":"string"},"type":{"type":"string","format":"uri","example":"https://docs.zenrows.com/api-error-codes#AUTH002","uniqueKey":"type","typeLabel":"string\u003curi>"},"instance":{"type":"string","description":"The request path or a request URN. Quote it when reporting a problem.","example":"/v1","uniqueKey":"instance","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"quota_exceeded","detail":"Too many active jobs.","instance":"/v1","status":429,"title":"Too many active jobs (quota_exceeded)","type":"https://docs.zenrows.com/api-error-codes#quota_exceeded"},"examples":{"Example":{"title":"Example","value":{"code":"quota_exceeded","detail":"Too many active jobs.","instance":"/v1","status":429,"title":"Too many active jobs (quota_exceeded)","type":"https://docs.zenrows.com/api-error-codes#quota_exceeded"}}},"exampleType":"examples"}},"exampleType":"examples"},"eca9e9ef-4318-4595-9750-eb366ddf3c80":{"description":"`internal`: a transient failure. Retry with backoff; for createBatchJob, list your jobs first, since the job may have been created.","headers":{"X-Request-Id":{"description":"Identifier for this request. Quote it when reporting a problem.","schema":{"type":"string","example":"67fa4e35647515d8ad61bb3ee041e1bb"}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"Zenrows error envelope, sent as `application/problem+json` (RFC 9457 problem details). `code` is the stable identifier to branch on; `type` links to its entry in the catalogue at https://docs.zenrows.com/api-error-codes. Read back from live responses.","properties":{"code":{"type":"string","example":"AUTH002","uniqueKey":"code","typeLabel":"string"},"status":{"type":"integer","example":401,"uniqueKey":"status","typeLabel":"integer"},"title":{"type":"string","example":"Invalid apikey provided (AUTH002)","uniqueKey":"title","typeLabel":"string"},"detail":{"type":"string","example":"Invalid API key.","uniqueKey":"detail","typeLabel":"string"},"type":{"type":"string","format":"uri","example":"https://docs.zenrows.com/api-error-codes#AUTH002","uniqueKey":"type","typeLabel":"string\u003curi>"},"instance":{"type":"string","description":"The request path or a request URN. Quote it when reporting a problem.","example":"/v1","uniqueKey":"instance","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"internal","detail":"Temporary failure, retry with backoff.","instance":"/v1","status":503,"title":"Temporary failure, retry with backoff (internal)","type":"https://docs.zenrows.com/api-error-codes#internal"},"examples":{"Example":{"title":"Example","value":{"code":"internal","detail":"Temporary failure, retry with backoff.","instance":"/v1","status":503,"title":"Temporary failure, retry with backoff (internal)","type":"https://docs.zenrows.com/api-error-codes#internal"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"0f5e30a9-5487-49ae-9a08-d52500b17e04":{"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Batch, Crawl, the Extract endpoints and the account endpoint read the same key from the `X-API-Key` header.","scopes":[],"schemeName":"apiKeyHeader"}}},"servers":{"c872b459-cd65-4c16-baf0-35320cd3d240":{"url":"https://async.api.zenrows.com/v1","description":"Batch (asynchronous jobs)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Batch, Crawl, the Extract endpoints and the account endpoint read the same key from the `X-API-Key` header.","scopes":[],"schemeName":"apiKeyHeader"},"schema":{"title":"X-API-Key","type":"string","description":"Batch, Crawl, the Extract endpoints and the account endpoint read the same key from the `X-API-Key` header.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyHeader","name":"X-API-Key"}],"title":"apiKeyHeader"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"zenrows","siteName":"Zenrows","title":"Create a batch job (many URLs in one request) - Zenrows","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-27T06:17:12.586Z","originalFileLocation":"api-reference/batch/create-a-batch-job-many-urls-in-one-request.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"dark\"}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=\"Submit a job. A closed job carries all its URLs up front in tasks; an open job (status: open) is created empty and receives URLs through addBatchTasks until one call sets last_batch. A scheduled job (type: scheduled) stores its URLs as a template and each fire creates a run. zenrows_params applies to every task and a per-task zenrows_params overrides it. Returns 201 under 10,000 inline tasks and 202 at or above that (or for a CSV input); the body is identical, so treat both the same. Documented at https://docs.zenrows.com/batch/developer-guide-restapi#1-create-your-jobs.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Zenrows\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/zenrows/m9CZ73BFBykY7nlz/_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/zenrows/m9CZ73BFBykY7nlz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/zenrows/m9CZ73BFBykY7nlz/_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/zenrows/m9CZ73BFBykY7nlz/_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/zenrows/m9CZ73BFBykY7nlz/_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/zenrows/m9CZ73BFBykY7nlz/_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/zenrows/m9CZ73BFBykY7nlz/_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/zenrows/m9CZ73BFBykY7nlz/_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/zenrows/m9CZ73BFBykY7nlz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a batch job (many URLs in one request) - Zenrows\">\u003cmeta data-mint-head property=\"og:description\" content=\"Submit a job. A closed job carries all its URLs up front in tasks; an open job (status: open) is created empty and receives URLs through addBatchTasks until one call sets last_batch. A scheduled job (type: scheduled) stores its URLs as a template and each fire creates a run. zenrows_params applies to every task and a per-task zenrows_params overrides it. Returns 201 under 10,000 inline tasks and 202 at or above that (or for a CSV input); the body is identical, so treat both the same. Documented at https://docs.zenrows.com/batch/developer-guide-restapi#1-create-your-jobs.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Zenrows Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.zenrows.com/api-reference/batch/create-a-batch-job-many-urls-in-one-request\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://zenrows.mintlify.site/_mintlify/api/og/v2?title=Create+a+batch+job+%28many+URLs+in+one+request%29\u0026amp;description=Submit+a+job.+A+closed+job+carries+all+its+URLs+up+front+in+%60tasks%60%3B+an+open+job+%28%60status%3A+open%60%29+is+created+empty+and+receives+URLs+through+addBatchTasks+until\u0026amp;theme=95240f8ee26fd3ece15f473f\u0026amp;signature=bf6940f3ef0b4e56a78a5140bbc167de77fbab5f7d32a4a59161720600db5a23\">\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=\"Create a batch job (many URLs in one request) - Zenrows\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Submit a job. A closed job carries all its URLs up front in tasks; an open job (status: open) is created empty and receives URLs through addBatchTasks until one call sets last_batch. A scheduled job (type: scheduled) stores its URLs as a template and each fire creates a run. zenrows_params applies to every task and a per-task zenrows_params overrides it. Returns 201 under 10,000 inline tasks and 202 at or above that (or for a CSV input); the body is identical, so treat both the same. Documented at https://docs.zenrows.com/batch/developer-guide-restapi#1-create-your-jobs.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://zenrows.mintlify.site/_mintlify/api/og/v2?title=Create+a+batch+job+%28many+URLs+in+one+request%29\u0026amp;description=Submit+a+job.+A+closed+job+carries+all+its+URLs+up+front+in+%60tasks%60%3B+an+open+job+%28%60status%3A+open%60%29+is+created+empty+and+receives+URLs+through+addBatchTasks+until\u0026amp;theme=95240f8ee26fd3ece15f473f\u0026amp;signature=bf6940f3ef0b4e56a78a5140bbc167de77fbab5f7d32a4a59161720600db5a23\">\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/zenrows/m9CZ73BFBykY7nlz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Zenrows\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7C4FE8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.zenrows.com/api-reference/batch/create-a-batch-job-many-urls-in-one-request\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/batch/create-a-batch-job-many-urls-in-one-request.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.zenrows.com/#organization\",\"name\":\"Zenrows\",\"url\":\"https://docs.zenrows.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/zenrows/iSpDUiIAwyhiBA2f/logo/light.svg?fit=max\u0026auto=format\u0026n=iSpDUiIAwyhiBA2f\u0026q=85\u0026s=8f6dde8ed73ba8072d966337bdf253a4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.zenrows.com#website\",\"name\":\"Zenrows\",\"url\":\"https://docs.zenrows.com\",\"publisher\":{\"@id\":\"https://docs.zenrows.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.zenrows.com/api-reference/batch/create-a-batch-job-many-urls-in-one-request#webpage\",\"url\":\"https://docs.zenrows.com/api-reference/batch/create-a-batch-job-many-urls-in-one-request\",\"name\":\"Create a batch job (many URLs in one request)\",\"description\":\"Submit a job. A closed job carries all its URLs up front in tasks; an open job (status: open) is created empty and receives URLs through addBatchTasks until one call sets last_batch. A scheduled job (type: scheduled) stores its URLs as a template and each fire creates a run. zenrows_params applies to every task and a per-task zenrows_params overrides it. Returns 201 under 10,000 inline tasks and 202 at or above that (or for a CSV input); the body is identical, so treat both the same. Documented at https://docs.zenrows.com/batch/developer-guide-restapi#1-create-your-jobs.\",\"dateModified\":\"2026-10-27T06:17:12.586Z\",\"isPartOf\":{\"@id\":\"https://docs.zenrows.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.zenrows.com/api-reference/batch/create-a-batch-job-many-urls-in-one-request#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.zenrows.com/api-reference/batch/create-a-batch-job-many-urls-in-one-request#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Zenrows\",\"item\":\"https://docs.zenrows.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a batch job (many URLs in one request)\",\"item\":\"https://docs.zenrows.com/api-reference/batch/create-a-batch-job-many-urls-in-one-request\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.zenrows.com/api-reference/batch/create-a-batch-job-many-urls-in-one-request#apireference\",\"headline\":\"Create a batch job (many URLs in one request)\",\"name\":\"Create a batch job (many URLs in one request)\",\"description\":\"Submit a job. A closed job carries all its URLs up front in tasks; an open job (status: open) is created empty and receives URLs through addBatchTasks until one call sets last_batch. A scheduled job (type: scheduled) stores its URLs as a template and each fire creates a run. zenrows_params applies to every task and a per-task zenrows_params overrides it. Returns 201 under 10,000 inline tasks and 202 at or above that (or for a CSV input); the body is identical, so treat both the same. Documented at https://docs.zenrows.com/batch/developer-guide-restapi#1-create-your-jobs.\",\"url\":\"https://docs.zenrows.com/api-reference/batch/create-a-batch-job-many-urls-in-one-request\",\"mainEntityOfPage\":{\"@id\":\"https://docs.zenrows.com/api-reference/batch/create-a-batch-job-many-urls-in-one-request#webpage\"},\"dateModified\":\"2026-10-27T06:17:12.586Z\",\"publisher\":{\"@id\":\"https://docs.zenrows.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.zenrows.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Zenrows\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Zenrows\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/batch/create-a-batch-job-many-urls-in-one-request.md","siteName":"Zenrows","nav":{"global":null,"dropdowns":[{"dropdown":"Documentation","icon":"book","description":"Get started with Zenrows' web data infrastructure","tabs":[{"tab":"Get Started","icon":"rocket","pages":[{"title":"Get Started","href":"/first-steps/welcome"}]},{"tab":"API","icon":"server","pages":[{"title":"API","href":"/authentication"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Get Started","icon":"rocket","pages":[{"title":"Zenrows API Reference","sidebarTitle":"API Reference","href":"/api-reference"}]},{"group":"Fetch","icon":"chisel","pages":[{"title":"Fetch a page","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /","href":"/api-reference/fetch/fetch-a-page"},{"title":"Fetch a page with a POST","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /","href":"/api-reference/fetch/fetch-a-page-with-a-post"},{"title":"Fetch a page with a PUT","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /","href":"/api-reference/fetch/fetch-a-page-with-a-put"}]},{"group":"Extract","icon":"wand","pages":[{"title":"List the domains Extract serves","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /extract/domains","href":"/api-reference/extract/list-the-domains-extract-serves"},{"title":"Ask for a domain to be prepared for Extract","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /extract/prepared-domains","href":"/api-reference/extract/ask-for-a-domain-to-be-prepared-for-extract"},{"title":"List the domains your account submitted","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /extract/prepared-domains","href":"/api-reference/extract/list-the-domains-your-account-submitted"},{"title":"Read the monthly preparation allowance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /extract/prepared-domains/allowance","href":"/api-reference/extract/read-the-monthly-preparation-allowance"},{"title":"Track a domain's preparation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /extract/prepared-domains/{domain}","href":"/api-reference/extract/track-a-domains-preparation"}]},{"group":"Crawl","icon":"spider","tag":"New","pages":[{"title":"Start a crawl","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /crawls","href":"/api-reference/crawl/start-a-crawl"},{"title":"List your crawls","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /crawls","href":"/api-reference/crawl/list-your-crawls"},{"title":"Read a crawl and its results","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /crawls/{crawl_id}","href":"/api-reference/crawl/read-a-crawl-and-its-results"},{"title":"Download all results","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /crawls/{crawl_id}/download","href":"/api-reference/crawl/download-all-results"},{"title":"Read one page's HTML","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /crawls/{crawl_id}/contents/{content_id}","href":"/api-reference/crawl/read-one-pages-html"},{"title":"Stop a crawl","description":"Stop a running crawl. No new page is fetched; pages already being fetched finish, are billed and are kept for up to 10 minutes. Read the crawl until `next_cursor` is `null` for its final results. A crawl that already ended returns its final state. Send no body. Documented at https://docs.zenrows.com/crawl/endpoints#stop-a-crawl.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /crawls/{crawl_id}/stop","href":"/api-reference/crawl/stop-a-crawl"}]},{"group":"Batch","icon":"layers-subtract","pages":[{"title":"Create a batch job (many URLs in one request)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs","href":"/api-reference/batch/create-a-batch-job-many-urls-in-one-request"},{"title":"List batch jobs","description":"Page through the jobs on the account, newest first. Keep paging while `next_cursor` is present.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /jobs","href":"/api-reference/batch/list-batch-jobs"},{"title":"Read a job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /jobs/{job_id}","href":"/api-reference/batch/read-a-job"},{"title":"Add URLs to an open job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs/{job_id}/tasks","href":"/api-reference/batch/add-urls-to-an-open-job"},{"title":"Close an open job","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs/{job_id}/close","href":"/api-reference/batch/close-an-open-job"},{"title":"Stop the current run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs/{job_id}/stop","href":"/api-reference/batch/stop-the-current-run"},{"title":"Pause the current run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs/{job_id}/pause","href":"/api-reference/batch/pause-the-current-run"},{"title":"Resume a paused run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs/{job_id}/resume","href":"/api-reference/batch/resume-a-paused-run"},{"title":"Cancel the current run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs/{job_id}/cancel","href":"/api-reference/batch/cancel-the-current-run"},{"title":"Run a job again","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs/{job_id}/rerun","href":"/api-reference/batch/run-a-job-again"},{"title":"Read a job's results","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /jobs/{job_id}/results","href":"/api-reference/batch/read-a-jobs-results"},{"title":"Download one task's content","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /jobs/{job_id}/tasks/{task_id}/content","href":"/api-reference/batch/download-one-tasks-content"},{"title":"List a job's runs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /jobs/{job_id}/runs","href":"/api-reference/batch/list-a-jobs-runs"},{"title":"Delete a run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /jobs/{job_id}/runs/{run_id}","href":"/api-reference/batch/delete-a-run"},{"title":"Export a run as a ZIP","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs/{job_id}/runs/{run_id}/exports","href":"/api-reference/batch/export-a-run-as-a-zip"},{"title":"Check an export","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /jobs/{job_id}/runs/{run_id}/exports/{export_id}","href":"/api-reference/batch/check-an-export"},{"title":"Set a job's schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /jobs/{job_id}/schedule","href":"/api-reference/batch/set-a-jobs-schedule"},{"title":"Pause or resume a schedule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /jobs/{job_id}/schedule/state","href":"/api-reference/batch/pause-or-resume-a-schedule"},{"title":"Read a job's webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /jobs/{job_id}/webhook","href":"/api-reference/batch/read-a-jobs-webhook"},{"title":"Set a job's webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /jobs/{job_id}/webhook","href":"/api-reference/batch/set-a-jobs-webhook"},{"title":"Remove a job's webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /jobs/{job_id}/webhook","href":"/api-reference/batch/remove-a-jobs-webhook"},{"title":"Upload a CSV of URLs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /job_inputs","href":"/api-reference/batch/upload-a-csv-of-urls"},{"title":"Send a test webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /webhook/test","href":"/api-reference/batch/send-a-test-webhook"},{"title":"List webhook signing keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /hmac/keys","href":"/api-reference/batch/list-webhook-signing-keys"},{"title":"Start a key rotation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /hmac/keys/rotate","href":"/api-reference/batch/start-a-key-rotation"},{"title":"Cancel a key rotation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /hmac/keys/rotate","href":"/api-reference/batch/cancel-a-key-rotation"},{"title":"Finish a key rotation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /hmac/keys/rotate/finalize","href":"/api-reference/batch/finish-a-key-rotation"}]},{"group":"Account","icon":"user-circle","pages":[{"title":"Read the plan behind the key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /subscriptions/self/details","href":"/api-reference/account/read-the-plan-behind-the-key"}]},{"group":"Onboarding","icon":"key","pages":[{"title":"Get an API key for your agent, no signup required","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/agent/signup","href":"/api-reference/onboarding/get-an-api-key-for-your-agent-no-signup-required"},{"title":"Check whether a person has claimed this account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/agent/account","href":"/api-reference/onboarding/check-whether-a-person-has-claimed-this-account"}]}]},{"tab":"CLI","icon":"terminal","pages":[{"title":"CLI","href":"/cli/introduction"}]},{"tab":"SDK","icon":"code","pages":[{"title":"SDK","href":"/sdk/overview"}]},{"tab":"MCP","icon":"cpu","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"Integrations","icon":"puzzle","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"Academy","icon":"school","pages":[{"title":"Academy","href":"/academy/introduction"}]}]},{"dropdown":"Blog","icon":"article","description":"Insights and stories from our team about product developments and industry trends.","href":"https://www.zenrows.com/blog"},{"dropdown":"Knowledge e-Books","icon":"bulb","description":"Learn how to extract structured web data at scale.","href":"https://www.zenrows.com/knowledgehub"},{"dropdown":"Zenrows Status","icon":"cloud","description":"Real-time system status and service availability information for all our services.","href":"https://status.zenrows.com/"},{"dropdown":"Legal Pages","icon":"scale","description":"Terms of service, privacy policy, and other legal information governing the use of our services.","href":"https://www.zenrows.com/legal"},{"dropdown":"Changelog","icon":"clock-hour-3","description":"Track all product updates and announcements with our detailed release history.","href":"https://www.zenrows.com/changelog"}]},"basePath":"","title":"Create a batch job (many URLs in one request) - Zenrows","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-DV3Oq1fY.js","dist-C-XZBk9h.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-D3Isdib3.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","AssistantPageLink--qIqmmVG.js"]}