Zipcodebase is a postal-code API, but it requires an API key and a monthly quota. countries.dev resolves postal and ZIP codes across 121 countries with no key at all.
Resolve a code
curl https://countries.dev/postal/US/10001[
{ "placeName": "New York", "admin1": { "name": "New York", "code": "NY" }, "latitude": 40.7484, "longitude": -73.9967, "accuracy": 4 }
]No key, and it runs from the browser. You get the place name, administrative region and district where available, coordinates and an accuracy level — backed by GeoNames, ~1.8M codes across 121 countries.
Switching over
Zipcodebase takes an apikey parameter and returns results keyed by code; countries.dev is GET /postal/{country}/{code} and returns an array. Drop the key and map the fields across.
Browse and search every code on the postal code API page, read the docs, or compare the Zippopotam alternative.
Written by
Dov Azencot
At
Fri Jun 26 2026