Zippopotam.us API
Overview
Zippopotam.us is a completely free, no-auth-required API that returns place information for postal codes from dozens of countries including the US, UK, Canada, and many European nations. Simply pass a country code and zip code in the URL and get back city, state, and coordinates. It is one of the easiest APIs for beginners to start with.
Beginner Tip
No API key is needed. Format the URL as /country-code/postal-code, for example /us/90210. For non-US countries use ISO 3166-1 alpha-2 country codes.
Available Data
Example Response
{
"name": "Japan",
"capital": "Tokyo",
"population": 125800000,
"region": "Asia",
"languages": [
"Japanese"
],
"flag": "https://flagcdn.com/jp.svg",
"currencies": [
{
"code": "JPY",
"name": "Japanese yen"
}
]
} Field Reference
country Full country name for the queried postal code. country abbreviation Two-letter ISO country code. post code The postal code that was looked up. places[].place name City or locality name associated with this postal code. places[].state Full state or region name. places[].latitude Latitude coordinate of the place as a string. Implementation Example
const url = "http://www.zippopotam.us/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →administrative-divisons-db
⭐ Beginner's PickThe Administrative Divisions DB API provides a structured list of all administrative divisions (states, provinces, regions, cities) for countries around the world.
adresse.data.gouv.fr
adresse.data.gouv.fr provides programmatic access to address database of france, geocoding and reverse via REST API.
Airtel IP
⭐ Beginner's PickAirtel IP is a free, no-auth IP geolocation API that aggregates data from multiple sources to return the country associated with any given IP address.
bng2latlong
⭐ Beginner's Pickbng2latlong is a simple, free API that converts British National Grid (OSGB36) easting and northing coordinates into standard WGS84 latitude and longitude.
Cartes.io
⭐ Beginner's PickCartes.io is a free API that lets you create maps and add custom markers without signing up.