Zillow Listings by Coordinates
zillow.spatial.by_coordinates
List for-sale homes around a latitude and longitude, each with its distance in miles from the point.
At a glance
- Endpoint ID
zillow.spatial.by_coordinates- Price
- 1 credit per call; failed calls are free
- Runs for up to
- 120 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "zillow.spatial.by_coordinates", "input": { "latitude": 30.2672, "longitude": -97.7431, "max_results": 10, "radius_miles": 3 }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "zillow.spatial.by_coordinates", "input": { "latitude": 30.2672, "longitude": -97.7431, "max_results": 10, "radius_miles": 3 }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "zillow.spatial.by_coordinates", "input": { "latitude": 30.2672, "longitude": -97.7431, "max_results": 10, "radius_miles": 3 }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
latitude |
number | yes | Latitude in decimal degrees. From -90 to 90. | 30.2672 |
longitude |
number | yes | Longitude in decimal degrees. From -180 to 180. | -97.7431 |
max_results |
integer | no | Maximum number of results to return. From 1 to 100. | 10 |
radius_miles |
number | no | Search radius in miles, greater than 0 and at most 100; omitted or 0 defaults to 5 From 0 to 100. Default: 5. |
3 |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "listings": [ { "distance_miles": 1.03, "listing": { "title": "106 Comal St, Austin, TX 78702", "price": 1450000, "address": "106 Comal St, Austin, TX 78702", "area_sqft": 2370, "beds": 4, "collected_at": "", "currency": "USD", "latitude": 30.25916, "longitude": -97.72855, "page": 0, "position": 17, "property_id": "29384349", "status": "Active", "url": "https://www.zillow.com/homedetails/106-Comal-St-Austin-TX-78702/29384349_zpid/" } }, { "distance_miles": 1.23, "listing": { "title": "1303 1/2 Hillside Ave, Austin, TX 78704", "price": 2800000, "address": "1303 1/2 Hillside Ave, Austin, TX 78704", "area_sqft": 3064, "beds": 5, "collected_at": "", "currency": "USD", "latitude": 30.249619, "longitude": -97.74597, "page": 0, "position": 20, "property_id": "29458802", "status": "Active", "url": "https://www.zillow.com/homedetails/1303-1-2-Hillside-Ave-Austin-TX-78704/29458802_zpid/" } } ]}
Fields
| Field | Type | Example |
|---|---|---|
listings[].listing.title |
string | 106 Comal St, Austin, TX 78702 |
listings[].listing.price |
integer | 1,450,000 |
listings[].listing.address |
string | 106 Comal St, Austin, TX 78702 |
listings[].distance_miles |
number | 1.03 |
listings[].listing |
object | 14 fields |
listings[].listing.area_sqft |
integer | 2370 |
listings[].listing.beds |
integer | 4 |
listings[].listing.collected_at |
string | |
listings[].listing.currency |
string | USD |
listings[].listing.latitude |
number | 30.26 |
listings[].listing.longitude |
number | -97.73 |
listings[].listing.page |
integer | 0 |
listings[].listing.position |
integer | 17 |
listings[].listing.property_id |
string | 29384349 |
listings[].listing.status |
string | Active |
listings[].listing.url |
string | https://www.zillow.com/homedetails/106-Comal-St-Austin-TX-78702… |
listings |
array | 3 records |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Zillow Commerce endpoints
Something missing or unclear? Ask the team that builds the Zillow Commerce endpoints.