World Countries API

Get detailed information and interesting facts about every country.

7 subscribers
23 endpoints
The in-depth APIMemo review for this API hasn't been published yet — the data below comes straight from the public marketplace listing.

World Countries API endpoints

MethodEndpointDescription
GET Get country by id
/v1/id/{id}
Retrieve a specific country by its unique ID. Parameters: id: Unique identifier for the country fields: Comma-separated list of fields to include in the response Returns: Country…
GET Get countries by population
/v1/population
Filter countries by population range. Parameters: min: Minimum population max: Maximum population region: Region name to further filter results fields: Comma-separated list of…
GET Get country by capital
/v1/capital/{capital}
Find countries by their capital city. Parameters: capital: Name of the capital city fields: Comma-separated list of fields to include in the response Returns: List of countries…
GET Get landlocked countries
/v1/landlocked
Get all landlocked countries. Parameters: fields: Comma-separated list of fields to include in the response Returns: List of landlocked countries
GET Get all countries
/v1/all
Retrieve a list of all countries with optional filtering and sorting. **Parameters:** fields: Comma-separated list of fields to include in the response sort: Field to sort by…
GET Get sorted countries by density
/v1/density
Get countries sorted by population density. Parameters: sort: Sort direction, "asc" (default) or "desc" fields: Comma-separated list of fields to include in the response Returns:…
GET Get meta languages
/v1/meta/languages
Get a list of all available language codes. Returns: Array of ISO639-1 language codes
GET Country by name
/v1/name/{countryName}
Find a country by its exact name. Parameters: countryName: Exact country name fields: Comma-separated list of fields to include in the response Returns: Country object matching…
GET Countries by area
/v1/area
Filter countries by area range. Parameters: min: Minimum area in square kilometers max: Maximum area in square kilometers region: Region name to further filter results fields:…
GET Counties by demonym
/v1/demonym/{name}
Find countries by their demonym (name for citizens/inhabitants). Parameters: name: Demonym name pattern to search for fields: Comma-separated list of fields to include in the…
GET countries_by_translation_v1_translation__translation__get
/v1/translation/{translation}
Find countries that have a translation in a specific language. Parameters: translation: Translation language key fields: Comma-separated list of fields to include in the response…
GET meta_subregions_v1_meta_subregions_get
/v1/meta/subregions
Get a list of all available subregions. Returns: Array of subregion names
GET countries_by_language_v1_lang__language__get
/v1/lang/{language}
Find countries that use a specific language. Parameters: language: ISO639-1 language code fields: Comma-separated list of fields to include in the response Returns: List of…
GET countries_by_currency_v1_currency__currency__get
/v1/currency/{currency}
Find countries that use a specific currency. Parameters: currency: Currency code fields: Comma-separated list of fields to include in the response Returns: List of countries…
GET countries_search_v1_search_get
/v1/search
Search countries by name. Parameters: q: Partial or full country name to search for fields: Comma-separated list of fields to include in the response Returns: List of countries…
GET meta_regions_v1_meta_regions_get
/v1/meta/regions
Get a list of all available regions. Returns: Array of region names
GET meta_currencies_v1_meta_currencies_get
/v1/meta/currencies
Get a list of all available currency codes. Returns: Array of currency codes
GET countries_by_subregion_v1_subregion__subregion__get
/v1/subregion/{subregion}
Filter countries by geographical subregion. _**(Case sensitive)**_ Parameters: subregion: Subregion name fields: Comma-separated list of fields to include in the response…
GET compare_v1_compare_get
/v1/compare
Compare multiple countries. Parameters: codes: Comma-separated list of alpha-3 country codes to compare fields: Comma-separated list of fields to include in the response Returns:…
GET random_country_v1_countries_random_get
/v1/countries/random
Get random countries. Parameters: count: Number of random countries to return (1-100, default: 1) fields: Comma-separated list of fields to include in the response Returns: List…
GET country_by_code_v1_alpha__code__get
/v1/alpha/{code}
Retrieve a specific country by its alpha code (2 or 3 letters). Parameters: code: Alpha-2 or Alpha-3 country code fields: Comma-separated list of fields to include in the…
GET countries_by_region_v1_region__region__get
/v1/region/{region}
Filter countries by geographical region. Parameters: region: Region name fields: Comma-separated list of fields to include in the response Returns: List of countries in the…
GET countries_bordering_v1_bordering__code__get
/v1/bordering/{code}
Get all countries that share a border with the specified country. Parameters: code: Alpha-3 code of the country fields: Comma-separated list of fields to include in the response…

World Countries API pricing

PlanPriceRate limitQuotas
BASIC Free
  • Requests: 500,000 / monthly

More Education APIs

View all →
  • Free API to the Kanji alive web application with CC-BY licensed language data on Japanese kanji, radicals…

    EducationFree2.3k subscribers
  • Bhagavad Gita API is an open-source REST API that lets anyone use the text from Srimad Bhagavad Gita in…

    EducationFree3.1k subscribers
  • A Plagiarism Checker and Auto Citation Machine powered by Smodin (https://smodin.io) which works in 50…

    EducationFreemium1.5k subscribers
  • The Uncovered Treasure API has more than 25,000 revealed truths from every Book and chapter in the Bible as…

    EducationFree919 subscribers
  • Convert numbers to their Arabic text representation تحويل الأعداد إلى كلمات

    EducationFreemium385 subscribers
  • Get the list of paid udemy courses that are free for limited period of time

    EducationFreemium412 subscribers