How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

REST Countries Countries API

Country lookup and search endpoints

REST Countries Countries API is one of 12 APIs that REST Countries publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Countries. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 4 operations across 4 paths, and defines 22 schemas. It is described by OpenAPI 3.2.0, at version v5.

Requests are made against a single base URL, https://api.restcountries.com/countries/v5.

4 operations 4 paths 22 schemas 4 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
v5
Base URL
https://restcountries.com/v3.1
Authentication
HTTP Bearer, API Key
Terms of Service
Resource Areas
1

Authentication & Security 2

REST Countries Countries API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). An API key is passed in the query as api-key (apiKeyQuery). By default, every request must be authenticated.

  • bearerAuth — Bearer token authentication. Obtain your API key from https://restcountries.com. A demo key rclivedemo is available for testing.
  • apiKeyQuery — API key passed as a query parameter (less secure)

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 4 GET. Each is listed below with its method, path, parameters, and response codes.

Countries 4

Country lookup and search endpoints

GET
/
List all countries
listCountries 6 params → 200400401403500
GET
/{aggregate}
Search within a named property aggregate
searchByAggregate 7 params → 200400401403404500
GET
/{property}/{value}
Exact-match lookup by property value
lookupByProperty 7 params → 200400401403404500
GET
/{property}
Substring search within a single property
searchByProperty 7 params → 200400401403404500

Schemas 22

The contract defines 22 schemas that model the data the API accepts and returns. The most detailed are Country (29 properties), Memberships (14 properties), Capital (8 properties), Classification (7 properties). Each schema is shown below with its type and property counts.

Flag
object
Flag representation in various formats
6 properties
Links
object
External reference links for the country
4 properties
Currency
object
Currency used in the country
2 properties
CountryArea
object
Land area of the country
2 properties
CountriesListEnvelope
object
1 property
Meta
object
Pagination metadata
6 properties
NumberFormat
object
Country-specific number formatting conventions
2 properties
PostalCode
object
Postal code format information
2 properties
Classification
object
Political and international classification of the country
7 properties
DateInfo
object
Country-specific date and calendar conventions
3 properties
CountryNames
object
Country name data in various forms and languages
5 properties
Country
object
Comprehensive country data record
29 properties
Error
object
API error response
1 property
Parent
object
Sovereign parent country for dependencies
2 properties
Economy
object
Economic data for the country
1 property
Capital
object
Capital city information
8 properties
CountriesListData
object
2 properties
CountryCoordinates
object
Geographic center coordinates
2 properties
Memberships
object
International organization memberships
14 properties
Cars
object
Automobile-related country information
2 properties
CountryCodes
object
Standardized country identifier codes
7 properties
Language
object
Language spoken in the country
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

rest-countries-countries-api-openapi.yml Raw ↑

Other APIs REST Countries publishes across the network.

REST Countries All API
REST Countries Alpha API
REST Countries Capital API
REST Countries Currency API
REST Countries Demonym API
REST Countries Independent API
REST Countries Language API
REST Countries Name API
REST Countries Region API
REST Countries Subregion API
REST Countries Translation API
Where this information came from

This is an independent, third-party profile of REST Countries Countries API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.