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
Technical Details
Authentication
None
Response Formats
JSON
Availability
global
Status
Published
Rate Limits

unlimited

Supported Languages
JavaScriptPython
Use Cases
travel apps
data visualization
https://restcountries.com/

Related APIs

Discover similar APIs that might interest you

APIfreemium

Agify.io

Agify.io is a free API that predicts the...

Category
Geolocation & Mapping
Endpoints
1
demographicsprediction
APIfreemium

IP Geolocation

ip-api.com offers a fast and reliable IP...

Category
Geolocation & Mapping
Endpoints
1
geolocationnetworking
APIfreemium

Google Geocoding API

Google Geocoding API allows developers t...

Category
Geolocation & Mapping
Endpoints
1
geolocationmaps