REST Countries Capital API
Lookup countries by capital city.
REST Countries Capital 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 Capital. 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.
Metadata
The identity and technical contract details declared by the specification.
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.
Lookup countries by capital city.
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.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from REST Countries 10
Other APIs REST Countries publishes across the network.