REST Countries API
type: WebAPI
description: Free REST API providing comprehensive data about world countries including name, capital, currencies, languages, flags, population, and geographic information. Covers 250+ countries and dependencies with 80+ fields per country.
documentation: https://restcountries.com/docs
provider: REST Countries
license: https://www.mozilla.org/en-US/MPL/2.0/
terms of service: https://restcountries.com/terms
available channel: ServiceChannel
  service url: REST Countries API
  service type: REST API
potential action: List All Countries
  type: SearchAction
  description: Retrieve a paginated list of all countries
  target: EntryPoint
    url template: https://api.restcountries.com/countries/v5
    http method: GET
potential action: Search Countries by Name
  type: SearchAction
  description: Search across all country name fields
  target: EntryPoint
    url template: https://api.restcountries.com/countries/v5/name
    http method: GET
  query-input: required name=searchTerm
potential action: Search Countries by Code
  type: SearchAction
  description: Search across all country code fields
  target: EntryPoint
    url template: https://api.restcountries.com/countries/v5/code
    http method: GET
  query-input: required name=code
potential action: Lookup Country by ISO Alpha-2 Code
  type: SearchAction
  description: Exact lookup of a country by ISO 3166-1 alpha-2 code
  target: EntryPoint
    url template: https://api.restcountries.com/countries/v5/alpha_2/{alpha2Code}
    http method: GET
  query-input: required name=alpha2Code
potential action: Lookup Country by ISO Alpha-3 Code
  type: SearchAction
  description: Exact lookup of a country by ISO 3166-1 alpha-3 code
  target: EntryPoint
    url template: https://api.restcountries.com/countries/v5/alpha_3/{alpha3Code}
    http method: GET
  query-input: required name=alpha3Code
potential action: Filter Countries by Region
  type: SearchAction
  description: Retrieve all countries in a specific geographic region
  target: EntryPoint
    url template: https://api.restcountries.com/countries/v5/region/{region}
    http method: GET
  query-input: required name=region
is related to: ISO 3166-1 Country Codes
is related to: UN Member States