Country data for everycorner of the globe
One simple REST API for names, codes, currencies, languages, capitals and flags of every nation. Built on the reliable country lookup API — drop it in and ship global features in minutes.
Everything you need to go global
Stop maintaining country datasets by hand. Get accurate, up-to-date reference data through a single, well-documented endpoint.
Flags & names
Official names, common names and flag URLs for every country, ready to render anywhere.
Languages
Native language names and ISO codes so your UI can localize itself automatically.
Currencies
Currency codes, symbols and names to format prices correctly for any market.
Capitals & regions
Capital cities, subregions and continent data to power maps and filters.
Blazing fast
Edge-cached responses with a median latency under 50ms, globally.
Reliable & secure
99.9% uptime SLA, HTTPS everywhere and simple API keys for access control.
See the response in real time
Type any country name or code and watch the API return rich, structured data instantly.
{
"name": "Japan",
"alpha2Code": "JP",
"alpha3Code": "JPN",
"capital": "Tokyo",
"region": "Asia",
"subregion": "Eastern Asia",
"population": 125836021,
"currencies": [
{
"code": "JPY",
"name": "Japanese yen",
"symbol": "¥"
}
],
"languages": [
{
"name": "Japanese"
}
],
"flag": "🇯🇵"
}Simple, predictable routes
Every endpoint returns clean JSON you can trust. No pagination headaches, no undocumented fields.
List every country with full details in one call.
Search by common or official name, with fuzzy matching.
Look up by ISO 3166-1 alpha-2 or alpha-3 code.
Find all countries that use a given currency.
Search by capital city name.
Filter countries by continent or region.
const res = await fetch( "https://api.countrylayer.com/v2/name/japan?access_key=YOUR_KEY" ); const country = await res.json(); console.log(country[0].capital); // "Tokyo" console.log(country[0].currencies[0].code); // "JPY"
Start free, scale when you're ready
Transparent plans with no hidden fees. Upgrade or downgrade anytime.
Free
For side projects and trying things out.
- 100 requests / month
- All country endpoints
- Community support
- HTTPS access
Pro
For growing products that need reliability.
- 50,000 requests / month
- All country endpoints
- Priority support
- 99.9% uptime SLA
- No rate limiting
Business
For teams and high-traffic applications.
- 500,000 requests / month
- All country endpoints
- Dedicated support
- Custom SLAs
- Volume discounts
Ready to build something global?
Join thousands of developers shipping country-aware features with the country lookup API. Get your free key in under a minute.
Get your free API key