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, ready or failed), 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.
- Price
- Free
- Batch
- No
- Failed calls
- Not charged
Example request
curl
curl 'https://api.virev.ai/v1/jobs/job_7641d5f0-717d-4b70-a2f1-f58d846d7242' \
-H "Authorization: Bearer $VIREV_API_KEY"python
import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/jobs/job_7641d5f0-717d-4b70-a2f1-f58d846d7242",
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
job_id required | path | string |
Example response
The example response of the API reference.
json
{
"data": {
"batch_id": "job_7641d5f0-717d-4b70-a2f1-f58d846d7242",
"status": "ready",
"status_url": "/v1/jobs/job_7641d5f0-717d-4b70-a2f1-f58d846d7242",
"results_url": "/v1/jobs/job_7641d5f0-717d-4b70-a2f1-f58d846d7242/results",
"cost": "$0.0005",
"item_count": 0,
"error": null,
"retry_at": null,
"total": 1,
"done_count": 1,
"failed_count": 0,
"created_at": "2026-10-12T12:56:17.403Z",
"started_at": "2026-10-12T12:57:46.766Z",
"finished_at": "2026-10-12T12:57:56.936Z"
},
"meta": {
"cost": "$0.0000",
"request_id": "req_job_example"
}
}How it works
Owner-checked job status. Submission and polls cost zero. Crawler execution continues after disconnects. Successful completion charges once before results become available. Failed jobs never charge. A completed job waiting for funds returns 402; after top-up, settlement retries within 60 seconds.
Errors
| Status | When |
|---|---|
400 | Invalid cursor or query parameters. |
401 | Invalid or revoked API key. |
402 | The full job charge exceeds the balance. Top up at https://api.virev.ai/settings/billing, then poll again. No result data is returned before settlement. |
404 | Job does not exist or belongs to another account. |
503 | Job service unavailable. Retry without a second charge. |