Location Info by ZIP Code
View all Redfin Property Data endpoints →Resolve a US ZIP code to its place information. Pass a five-digit ZIP (e.g. 10001) and receive the corresponding city/state context. Use it to autofill city and state in signup and search forms, validate ZIPs before running location-based listing searches, and build ZIP-to-region mapping tables for batch coverage jobs.
API Features
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
/api/project/redfin/get-location-infomation-by-zipcode API Response (JSON)
{} curl -X GET 'https://api.opendata-api.com/api/project/redfin/get-location-infomation-by-zipcode?key=<API_KEY>&zipcode=<zipcode>'
Query Result
Use Cases
- Autofill city and state when a user enters a ZIP in a signup or search form.
- Validate and normalize ZIP codes before running location-based listing searches.
- Build a ZIP-to-region mapping table to batch large geographic coverage jobs.
- Tag inbound leads with metro context derived from their ZIP.
Frequently asked questions
Can I validate ZIP codes in bulk?
Call once per ZIP; in bulk scenarios enumerate the full set first with the city or county ZIP endpoints, then validate as needed.
What happens on a wrong ZIP?
An invalid ZIP may return empty or wrong context; run a five-digit format check before calling.
Can the result be used directly as a region ID?
No — resolve region IDs with the autocomplete endpoint; this endpoint returns city and state context.