batch_create
Submit many URLs as an asynchronous Zenrows cloud scraping job, then use the returned job ID to track progress and retrieve batch results.
Instructions
Submit a cloud Batch job that fans out many URLs asynchronously (Zenrows Batch API).
NOT the same as browser_batch — this hits https://async.api.zenrows.com/v1 with X-API-Key. Suited to large URL lists; scrape and extract handle single pages.
Tasks use automatic mode (mode=auto) by default: Zenrows enables JS rendering and premium proxies only on the pages that need them, and charges only for the configuration that succeeds. Pass just the URLs. Set js_render or premium_proxy (job-level or in a task's zenrows_params) only to force a fixed configuration; that turns automatic mode off for the affected tasks and bills them at that configuration's cost.
Returns job_id + latest_run.status/stats. batch_status and batch_wait report progress; batch_results lists the results. If you get BATCH_ACCESS_DENIED, Batch is not enabled for this account or API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | Shorthand: list of URLs (converted to tasks). Ignored when tasks is provided. | |
| wait | No | If true, poll until the job reaches a terminal state before returning | |
| tasks | No | List of tasks (each needs a url). Prefer this over urls when you need per-task params. | |
| js_render | No | Force js_render on all tasks. Overrides automatic mode (mode=auto), which already renders when needed. | |
| mode_auto | No | Automatic mode (mode=auto) is on by default; leave unset. False sends plain requests without it. | |
| premium_proxy | No | Force premium_proxy on all tasks (10x cost). Overrides automatic mode (mode=auto), which already uses premium proxies when a page needs them. | |
| proxy_country | No | Job-level ISO country code. Works in automatic mode (mode=auto); with js_render alone it requires premium_proxy. | |
| response_type | No | Job-level response_type | |
| zenrows_params | No | Additional job-level zenrows_params merged with the flags above | |
| wait_timeout_ms | No | Max wait time when wait=true (default 600000) |