Skip to content

Search

Search returns listings inside a geographic area that match your filters. You describe the search one of two ways: a filters object (the usual choice), or a Zillow search URL you copied from the browser. Send one or the other, not both.

POST /v1/search

Cost: 1 credit per result returned, with a minimum of 1 for a successful call. A search that matches nothing still costs 1 credit. Rejected and failed requests are free.

Using filters

curl https://api.zillodata.com/v1/search \
-H "Authorization: Bearer $ZILLODATA_KEY" \
-H "content-type: application/json" \
-d '{
"filters": {
"status": "for_sale",
"bbox": { "west": -97.85, "south": 30.18, "east": -97.70, "north": 30.30 },
"price": { "max": 750000 },
"beds": { "min": 3 },
"baths": { "min": 2 },
"homeTypes": ["house", "townhouse"],
"daysOnZillow": "14",
"hasGarage": true
},
"maxItems": 25
}'
Filter Type Description
status enum Required. for_sale, for_rent, or sold.
bbox object Required. { west, south, east, north } in decimal degrees. west must be less than east, and south less than north.
location string Optional label such as "Austin, TX". It doesn’t narrow the results.
price { min, max } US dollars. For rentals, the monthly rent.
beds { min, max } Bedrooms.
baths { min, max } Bathrooms. Decimals allowed.
sqft { min, max } Interior square feet.
lotSize { min, max } Lot size in square feet.
yearBuilt { min, max } Year built.
homeTypes string[] Any of house, condo, townhouse, multi_family, manufactured, lot, apartment.
daysOnZillow enum Listed within: 1, 7, 14, 30, 90, 6m, 12m, 24m, or 36m.
hasPool, hasGarage, hasAirConditioning, hasBasement, isWaterfront boolean Feature flags.

Every range takes min, max, or both.

Why bbox is required

Searches are run against a map area, so a place name alone can’t be turned into results. Requests without a bbox are rejected with 400 invalid_filters before anything runs, and you aren’t charged. If you only have a place name, look up its bounding box with any geocoder, or pan the Zillow map to the area and read the coordinates from the URL.

Using a Zillow search URL

If it’s easier to set filters in Zillow’s own interface, do that, then copy the URL from the address bar:

{
"searchUrls": [
{ "url": "https://www.zillow.com/homes/for_sale/?searchQueryState=%7B%22mapBounds%22%3A..." }
]
}

The URL must be on zillow.com and include a searchQueryState query parameter. Friendly URLs such as https://www.zillow.com/raleigh-nc/condos/ don’t carry the map bounds and are rejected with 400 invalid_search_url. Once you move the map or change a filter on Zillow, the address bar switches to the searchQueryState form.

Other body fields

Field Type Description
extractionMethod enum How the area is scanned. See below. Default PAGINATION.
maxItems integer Maximum results to return. Defaults to 50 for synchronous searches.
async boolean Set true to run in the background regardless of size.

Extraction methods

Value Use it when
PAGINATION The default. A good fit for most neighborhoods and small cities.
MAP_MARKERS You want results quickly and can live with fewer fields per listing.
PAGINATION_WITH_ZOOM_IN You need the most complete coverage of a large area. Always runs in the background and can return very large result sets.

Sync or async

A search runs synchronously, with results in the response, when all of these are true:

  • maxItems is 50 or less (or not set)
  • async isn’t true
  • extractionMethod isn’t PAGINATION_WITH_ZOOM_IN

Otherwise it becomes a background job.

Synchronous 200 response

{
"data": [
{
"zpid": "29511076",
"address": "2207 Wilke Dr, Austin, TX 78704",
"addressCity": "Austin",
"price": "$689,000",
"unformattedPrice": 689000,
"beds": 3,
"baths": 2,
"area": 1612,
"latLong": { "latitude": 30.2381, "longitude": -97.7884 },
"statusType": "FOR_SALE",
"hdpData": { "homeInfo": { "homeStatus": "FOR_SALE", "daysOnZillow": 5, "...": "..." } }
}
],
"meta": { "count": 25 },
"request_id": "47ad0f19e2b6c853"
}

If nothing matches, data is an empty array and meta.hint tells you which filter is most likely too narrow.

Background 202 response

{ "data": { "job_id": "e3c8a17d-50b2-4f9e-a614-2d7f0b9c5e81", "status": "running" }, "request_id": "92f6d04b3ea1c758" }

Follow the job with GET /v1/jobs/{id} or a webhook, then page through the rows with GET /v1/jobs/{id}/results. Credits for background searches are charged when the job succeeds.

Errors

Status Code Meaning
400 invalid_json The body isn’t valid JSON.
400 missing_input Neither filters nor searchUrls was sent.
400 invalid_filters A filter is missing or malformed. The message names the field.
400 invalid_search_url A searchUrls entry isn’t a usable Zillow search URL.
502 upstream_error The search couldn’t be completed. Safe to retry.
504 upstream_timeout The search took too long. Narrow the area or switch to async.

POST /v1/search/with-details

Runs a search and then fetches the full property record for every result, all in one background job. Use it when the summary rows from a normal search aren’t enough.

Cost: 1 credit per property record returned, charged once when the job succeeds. Jobs that fail, time out, or are aborted cost nothing.

The body takes the same filters or searchUrls, extractionMethod, and maxItems as POST /v1/search, plus two detail options:

Field Type Description
propertyStatus enum FOR_SALE (default), RECENTLY_SOLD, or FOR_RENT.
extractBuildingUnits enum disabled (default), all, for_sale, recently_sold, for_rent, or off_market.
{
"filters": {
"status": "sold",
"bbox": { "west": -70.33, "south": 43.62, "east": -70.20, "north": 43.71 },
"daysOnZillow": "90"
},
"maxItems": 100,
"propertyStatus": "RECENTLY_SOLD"
}

This endpoint always answers 202 Accepted:

{ "data": { "job_id": "a0d95e37-8c14-4b62-9f73-6e2b1c8d40fa", "status": "running", "stage": "search" }, "request_id": "5b1e8c70d4a93f26" }

While the job runs, chain_stage on GET /v1/jobs/{id} moves from search to detail. When status reaches succeeded, GET /v1/jobs/{id}/results returns the full property records, not the search summaries.

Output formats

Synchronous search responses can be returned as CSV or NDJSON by adding ?format=csv or ?format=ndjson, or by sending a matching Accept header. See Output formats.