Look up Zillow places and addresses API
Zillow places and addresses matching a query, with region ids and zpids.
GET /v1/zillow/locationsBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/zillow/locations?query=Austin",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "results": [ { "display": "Austin, TX", "resultType": "Region", "metaData": { "regionId": 10221, "regionType": "city", "lat": 30.28244966294375, "lng": -97.79675774321844, "city": "Austin", "county": "Travis County", "state": "TX", "country": "United States" } }, { "display": "Austin, MN", "resultType": "Region", "metaData": { "regionId": 23555, "regionType": "city", "lat": 43.64884677333361, "lng": -93.01725558601386, "city": "Austin", "county": "Mower County", "state": "MN", "country": "United States" } }, "… 8 more" ], "pagination": { "next_cursor": "eyJxIjoiQXVzdGluIiwibyI6MTB9" }}Parameters
| Name | Type | Description |
|---|---|---|
queryquery | string | Place or address text. Example: austin. |
typequery | "regions" | "addresses" | One of regions, addresses. |
limitquery | integer | |
afterquery | string | Cursor: the previous page’s pagination.next_cursor. |
Response fields
200 with a ZillowLocationsResponse, in Zillow’s own JSON.
| Field | Type | Description |
|---|---|---|
results | ZillowLocation[] | |
pagination | object |
Status codes
| Status | Meaning |
|---|---|
200 | Matching places and addresses. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Zillow property or place by that id or name. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Zillow is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Zillow is a trademark of its owner. We are not affiliated with or endorsed by it.