GET /v1/batch/progress/{snapshot_id}

Batch progress API: rows done, rows failed and cost of a batch job

Send the snapshot_id that the batch trigger returned and get the job's status (starting, running, ready, failed or canceled), its ready and failed row counts and the cost so far. A snapshot that belongs to another key is a 404.

Price
Free
Batch
No
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/batch/progress/s_c6841285ac67fa80' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/batch/progress/s_c6841285ac67fa80",
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
snapshot_id requiredpathstringThe id returned by POST /v1/batch/trigger.

Example response

The example response of the API reference.

json
{
  "data": {
    "snapshot_id": "s_c6841285ac67fa80",
    "operation": "instagram.web_profile_info",
    "status": "ready",
    "rows_total": 3,
    "rows_ready": 3,
    "rows_failed": 0,
    "cost": "$0.0015",
    "estimated_cost": "$0.0015",
    "format": "ndjson",
    "include_errors": false,
    "created_at": "2026-11-25T18:52:37.185Z",
    "finished_at": "2026-11-25T18:52:38.218Z",
    "expires_at": "2026-12-09T18:52:37.185Z"
  },
  "meta": {
    "cost": "$0.0000",
    "balance": "$326.8734",
    "request_id": "req_4bd57b9ba02d6a7daf74331912518d78"
  }
}

How it works

Free. status walks starting → running → ready (or failed / canceled); cost accrues as successful rows bill. A snapshot this key does not own is a 404.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404No such snapshot (or expired).
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.

Guides that use this endpoint