Skip to content

Jobs

Large searches, batches, and some building lookups run as background jobs. The endpoint that starts one hands you a job_id. Use the endpoints below to check on it and collect the rows when it’s done.

All three endpoints are free. The credits for a job are charged once, when it succeeds, so reading results as many times as you like costs nothing extra.

Job lifecycle

status Meaning
queued Accepted, not started yet.
running In progress.
succeeded Finished. Results are ready.
failed Stopped with an error. See the error field.
timed_out Ran past its time limit.
aborted Stopped before it finished.

The last four are final. Only succeeded jobs have results, and only succeeded jobs are billed.

Job type is one of search, batch_detail, chained_search_detail, or building_units. Batches and background building lookups use batch_detail. POST /v1/search/with-details creates chained_search_detail jobs.

GET /v1/jobs

Lists your jobs, newest first.

Parameter Type Description
status enum Only jobs with this status.
type enum Only jobs of this type.
since ISO 8601 timestamp Only jobs created at or after this time.
limit integer Page size. Default 50, maximum 500.
offset integer Rows to skip. Default 0.
curl 'https://api.zillodata.com/v1/jobs?status=succeeded&limit=10' \
-H "Authorization: Bearer $ZILLODATA_KEY"
{
"data": [
{
"id": "4e1f9b2c-7a30-4d85-b6e2-91c0d3a7f548",
"type": "batch_detail",
"status": "succeeded",
"result_count": 3,
"error": null,
"chain_stage": null,
"created_at": "2026-11-24T15:02:11.481Z",
"started_at": "2026-11-24T15:02:12.067Z",
"completed_at": "2026-11-24T15:03:40.912Z"
}
],
"meta": { "limit": 10, "offset": 0 },
"request_id": "c81f30a6e5d29b47"
}

GET /v1/jobs/{id}

Returns one job. id is the UUID you got back when the job started.

{
"data": {
"id": "a0d95e37-8c14-4b62-9f73-6e2b1c8d40fa",
"type": "chained_search_detail",
"status": "running",
"result_count": null,
"error": null,
"chain_stage": "detail",
"created_at": "2026-11-24T16:20:05.330Z",
"started_at": "2026-11-24T16:20:06.118Z",
"completed_at": null
},
"request_id": "1d6b9e42f08ac735"
}

chain_stage only applies to chained_search_detail jobs. It reads search while listings are being found and detail while full records are fetched. For other job types it is null. A chained job reports succeeded only after both stages finish.

A reasonable polling interval is every 5 to 10 seconds. To skip polling entirely, register a webhook.

GET /v1/jobs/{id}/results

Returns the rows produced by a succeeded job, one page at a time.

Parameter Type Description
limit integer Rows per page. Default 100, maximum 1000.
offset integer Rows to skip. Default 0.
format enum json (default), csv, or ndjson.
{
"data": [
{ "zpid": "29384412", "price": 612000, "...": "..." }
],
"meta": { "count": 100, "total": 1342, "limit": 100, "offset": 300, "has_more": true },
"request_id": "7a2c54e1b9f03d86"
}

Keep increasing offset by limit until has_more is false. With format=csv or format=ndjson the body is the raw rows, and the row count comes back in the x-row-count header. More on paging in Pagination.

Errors

Status Code Meaning
400 invalid_job_id id isn’t a UUID.
404 job_not_found No job with that ID on your account.
409 job_not_ready Results were requested before the job reached succeeded. The message includes the current status.
5xx varies The results couldn’t be read just now. Retry shortly.