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

Related APIs

Discover similar APIs that might interest you

APIfree

Zippopotam.us

The Zippopotam.us API is a lightweight, ...

Category
Geolocation & Mapping
Endpoints
1
addressesgeolocationzip codes
APIfree

Countries Now API

The Countries Now API is a fully open-so...

Category
Geolocation & Mapping
Endpoints
1
countriesdatageography
APIfreemium

OpenCage Geocoding API

The OpenCage Geocoding API provides forw...

Category
Geolocation & Mapping
Endpoints
1
geocodinglocationmaps
REST Countries API – country data REST API | Free API Hub