A postal or ZIP, city, state, coordinates, population. Readable names plus native siblings when they differ.
Look up a postal or ZIP code. Country is required. Place, coordinates, population, timezone, elevation in feet and meters, and a short list of neighboring ZIPs come back in core. city, state_name, and district_name read in English or an official romanization when a trusted source has one. Native siblings (city_local, state_name_local, district_name_local) ship when they differ.
curl "https://api.parseapi.com/postal/33139?country=US" \
-H "X-API-Key: YOUR_API_KEY"{
"postal": "33139",
"city": "Miami Beach",
"city_local": null,
"district": "12086",
"district_name": "Miami-Dade",
"district_name_local": null,
"state": "FL",
"state_name": "Florida",
"state_name_local": null,
"country": "US",
"latitude": 25.7823,
"longitude": -80.1375,
"elevation": 1,
"elevation_ft": 3,
"population": 38000,
"timezone": "America/New_York",
"currency": "USD",
"neighbors": [
"33140",
"33141",
"33154",
"33160",
"33109"
]
}Response fields
How far is one ZIP from another? Pass two codes and get straight-line miles and km back. Handy for shipping estimates, store radius checks, and "is this close enough?"
curl "https://api.parseapi.com/postal/28202/distance/10001?country=US" \
-H "X-API-Key: YOUR_API_KEY"{
"country": "US",
"from": {
"postal": "28202",
"city": "Charlotte"
},
"to": {
"postal": "10001",
"city": "New York"
},
"distance": 875.8,
"distance_mi": 544.2
}Response fields
Find other postal codes within a radius, with km and miles. The core lookup already includes a short neighbors list. Use this when you need a search radius and distances. Default unit=km (radius 40); pass unit=mi for miles.
curl "https://api.parseapi.com/postal/28202/nearby?country=US&radius=40" \
-H "X-API-Key: YOUR_API_KEY"{
"postal": "28202",
"country": "US",
"radius": 40,
"unit": "km",
"nearby": [
{
"postal": "28203",
"city": "Charlotte",
"state": "NC",
"country": "US",
"distance": 2.3,
"distance_mi": 1.4
},
{
"postal": "28204",
"city": "Charlotte",
"state": "NC",
"country": "US",
"distance": 3.4,
"distance_mi": 2.1
},
{
"postal": "28205",
"city": "Charlotte",
"state": "NC",
"country": "US",
"distance": 4.8,
"distance_mi": 3
},
// ... 64 more
]
}Response fields
Questions? Email