Batch API: run any endpoint over thousands of inputs
Submit thousands of inputs to any batchable virev.ai endpoint, poll progress and download the results. The batch calls themselves are free.
9 Batch and jobs endpoints
- GET /v1/jobs/{job_id} Crawl job status API: poll a long-running crawl job by id Send the job id (
batch_id) that a paged endpoint returns with HTTP 202 and get the job's status (queued,running,payment_required,readyorfailed), its total cost, its done and failed target counts and its timestamps. Polling is free, and a failed job is never charged. A finished job that waits for funds answers 402 until you top up. Free - GET /v1/jobs/{job_id}/results Crawl job results API: download a finished crawl job's results Send the
job_idof a ready crawl job and get its results, each target with its operation, arguments, status and items, in responses of at most 3 MiB. Sendnext_cursorback ascursoruntilcompleteis true. The job is charged once when it finishes, and retries and repeat downloads are free. Free - POST /v1/jobs/{job_id}/cancel Crawl job cancel API: stop a queued or running crawl job Send a
job_idto stop a queued, running or payment-required crawl job and mark it failed with errorcancelled. A cancelled job is never charged and its partial results are not delivered. Repeating the call returns the same answer, and a job that already finished answers 409job_finished. Free - GET /v1/jobs/platforms Crawl platforms API: the networks we store and what each supports Call it with no parameters and get each network we store: how profiles are collected (
autonomousorauthorized_required), its discovery modes, its content family, and whether it supports authoritative profiles, recent and deep content, comments, archive and media. Free - POST /v1/batch/trigger Batch API: run any endpoint over up to 10,000 inputs Send a batchable
operationid and a JSON array of inputs, each the same query or body the single call takes, and get asnapshot_idwith the row count and estimated cost. Each row bills at the single-call price as it runs, failed rows are free, and the estimate must fit your balance. Addformat,include_errorsand anotifywebhook as needed. Free - GET /v1/batch/progress/{snapshot_id} Batch progress API: rows done, rows failed and cost of a batch job Send the
snapshot_idthat the batch trigger returned and get the job's status (starting,running,ready,failedorcanceled), its ready and failed row counts and the cost so far. A snapshot that belongs to another key is a 404. Free - GET /v1/batch/snapshot/{snapshot_id} Batch results API: download a batch job's rows as NDJSON, JSON or CSV Send the
snapshot_idof a finished batch job and get its rows in submission order, each with itsinputanddata, or itserrorwheninclude_errorsis set. Pickformatfor NDJSON, JSON or CSV, and page large snapshots withbatch_sizeandpart. A job that is still running answers 409snapshot_not_ready. Free - GET /v1/batch/snapshots Batch jobs list API: your batch jobs, newest first Call it to get your account's batch jobs, newest first, each with its operation, status, row counts, cost and dates. Filter by
operationorstatus, and page withcursor. Free - DELETE /v1/batch/snapshot/{snapshot_id} Batch cancel API: stop a batch job or delete its results Send a
snapshot_idwith DELETE. On a running job it stops new rows, lets in-flight rows finish and bill, keeps completed rows downloadable and sets the status tocanceled. On a finished job it deletes the stored results now, and the job row stays for the usage ledger. Free