Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

REST Countries Independent API

Lookup countries filtered by ISO 3166-1 independence status.

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

This API exposes 2 JSON Schema definitions.

Tagged areas include Independent. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a GitHub repository, a JSON-LD context, rate-limit docs, and 2 JSON Schemas.

This API exposes 1 operation across 1 path, and defines 12 schemas. It is described by OpenAPI 3.1.0, at version 3.1.

Requests are made against a single base URL, https://restcountries.com/v3.1.

1 operations 1 paths 12 schemas 1 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
3.1
Base URL
https://restcountries.com/v3.1
Resource Areas
1

Paths & Operations 1

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

Independent 1

Lookup countries filtered by ISO 3166-1 independence status.

GET
/independent
List Independent Countries
listIndependentCountries 2 params → 200400

Schemas 12

The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are Country (35 properties), Name (3 properties), Flags (3 properties), Car (2 properties). Each schema is shown below with its type and property counts.

Car
object
Vehicular registration data.
2 properties
CapitalInfo
object
Capital city metadata.
1 property
Country
object
A country resource as returned by the REST Countries API.
35 properties
Maps
object
Links to external mapping services.
2 properties
InternationalDirectDialing
object
International calling code descriptor.
2 properties
Currency
object
Currency descriptor keyed by ISO 4217 code.
2 properties
Demonyms
object
Demonyms keyed by language code with gendered variants.
Flags
object
Flag image references.
3 properties
PostalCode
object
Postal code format descriptor.
2 properties
CoatOfArms
object
Coat of arms image references.
2 properties
Name
object
Country name, including official and common forms plus per-language native names.
3 properties
Error
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

rest-countries-independent-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 Language API
REST Countries Name API
REST Countries Region API
REST Countries Subregion API
REST Countries Translation API