API Directory › 🌍 Geo & Location › Zippopotam.us
No authHTTPSCORS

Zippopotam.us API

Free, no-key lookup of place info by postal/zip code for many countries.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Zippopotam.us docs ↗

What it does

Zippopotam.us is a tiny free API that maps a postal code to its place name(s), state/region and coordinates — and the reverse, mapping a country + state + city to its postal codes. It covers around 60 countries.

Base URL

http://api.zippopotam.us

Authentication

None. No key, no sign-up. Paths are /{country}/{postalcode} or /{country}/{state}/{city}.

Code examples

curl
curl -s http://api.zippopotam.us/us/33162
curl -s http://api.zippopotam.us/de/10115
curl -s http://api.zippopotam.us/us/ma/belmont
Python
import requests

r = requests.get("http://api.zippopotam.us/gb/EC1A", timeout=10)
if r.status_code == 200:
    p = r.json()["places"][0]
    print(p["place name"], p["latitude"], p["longitude"])
else:
    print("postcode not found")

Rate limits & quotas

No published rate limit; it is a static dataset served from cache, so it is fast and light. Coverage and postcode granularity vary by country — the US, Germany and others are complete; some countries only have partial data.

Key response fields

post code / country / country abbreviationEcho of what you asked for
places[]One or more matching localities
places[].place nameCity / town / neighbourhood name
places[].state / state abbreviationRegion
places[].latitude / longitudeCoordinates (strings)

Common errors

404Postal code (or country/state/city combination) not in the dataset.
(country not covered)Only ~60 countries are supported — others 404 for every code.

When to use it (and alternatives)

Perfect for auto-filling a city/state field from a postcode at checkout or sign-up, or validating that a postcode exists. For full street geocoding use OpenCage or Nominatim; for richer worldwide postal data see GeoNames.

FAQ

Which countries are supported?

Roughly 60, including the US, UK, Canada, Germany, France, Netherlands, Spain, India, Brazil and Australia. Data completeness varies; test the codes you care about.

Can I look up postcodes for a city?

Yes — the reverse form /{country}/{state}/{city} returns every postal code registered for that place.

Is HTTPS supported?

The canonical host is HTTP. HTTPS may work but is not guaranteed; for a security-sensitive context, proxy the lookup through your own backend.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

IP LookupDNS Lookup

Related Geo & Location APIs

← Back

More Geo & Location APIs · All 196 APIs