REST Countries API
REST Countries API (via restcountries.com) is a free, no-key-required RESTful service offering detailed country information—names, capitals, population, languages, currencies, timezones, flags, and more. It is actively maintained under APIlayer, serving JSON endpoints like /v3.1/all and /v3.1/name/{country}. Reliable and fast for developers needing accurate global country data. Fully active and open-use listed on Free API Hub.
1
Endpoints
0
Views
Jul 20, 2025
Last Checked
Unlimited
Rate Limit
API Endpoints
Get detailed country information by ISO 3166-1 2-letter or 3-letter country code
Full URL
https://restcountries.com/v3.1/alpha/{code}
Code Examples
curl -X GET 'https://restcountries.com/v3.1/alpha/{code}'
Parameters
{ "fields": "name,capital,currencies,languages,population" }
Example Response
{
"name": {
"common": "Japan",
"official": "Japan"
},
"capital": [
"Tokyo"
],
"languages": {
"jpn": "Japanese"
},
"currencies": {
"JPY": {
"name": "Japanese yen",
"symbol": "¥"
}
},
"population": 125836021
}
Version
v3.1
Tags
countriesdatageography
Related APIs
Discover similar APIs that might interest you