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

World Bank Countries API

The Countries API from World Bank — 2 operation(s) for countries.

World Bank Countries API is one of 10 APIs that World Bank 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 and API documentation.

This API exposes 2 operations across 2 paths, and defines 4 schemas. It is described by OpenAPI 3.0.0, at version 2.0.0.

Requests are made against a single base URL, https://api.worldbank.org/v2.

2 operations 2 paths 4 schemas 2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
2.0.0
Base URL
https://api.worldbank.org/v2
Resource Areas
1

Paths & Operations 2

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

Countries 2
GET
/country
List countries
listCountries 6 params → 200
GET
/country/{country_code}
Get country details
getCountry 2 params → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are Country (10 properties), PaginationData (7 properties), ClassificationRef (3 properties). Each schema is shown below with its type and property counts.

CountryDetail
PaginationData
object
Pagination metadata returned as the first element of the response array
7 properties
Country
object
World Bank country classification data
10 properties
ClassificationRef
object
Reference to a World Bank classification category
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

worldbank-countries-api-openapi.yml Raw ↑

Other APIs World Bank publishes across the network.

World Bank Data Catalog API
World Bank Projects API
World Bank Finances API
World Bank SDMX API
World Bank Classifications API
World Bank Indicators API
World Bank Regions API
World Bank Sources API
World Bank Topics API