country: Get countries by income level

API: worldbank.org:world-bank-api
Endpoint: /incomeLevel/{income_level_code}/country
Response format: application/json
Auth: unknown
Method: GET
Last Status: 200
Latency: 838ms

Description

Returns a paginated list of countries with their ISO codes, region information, capital city, and geographic coordinates. Each country entry includes nested objects showing the region, administrative region, income level, and lending type classifications.

From spec: Retrieve all countries classified under a specific income level.

Usage Tips

- Supports pagination via per_page and page query parameters - Common income levels: LIC (Low income), LMC (Lower middle income), UMC (Upper middle income), HIC (High income) - Response includes country coordinates useful for mapping applications

Parameters (4)

format (string, query, optional, default: json)

Response format

Constraints: {'enum': ['json', 'xml', 'jsonP', 'jsonstat']}

income_level_code (string, path, required)

Income level code (LIC, LMC, UMC, HIC, etc.)

page (integer, query, optional, default: 1)

Page number for pagination

per_page (integer, query, optional, default: 50)

Number of results per page (default 50)

Examples (1)

Get Countries by Low Income Level probe-gate

Demonstrates retrieving the first 3 countries classified as Low Income

curl 'https://api.worldbank.org/v2/incomeLevel/LIC/country?format=json&per_page=3'
import requests

resp = requests.get(
    "https://api.worldbank.org/v2/incomeLevel/LIC/country",
    params={
        'format': 'json',
        'per_page': '3',
    },
)
data = resp.json()
import zingu_apis

api = zingu_apis.api("world-bank")
result = api.fetch("incomeLevel/{income_level_code}/country", format="json", per_page=3)

for item in result:
    print(item)
const resp = await fetch("https://api.worldbank.org/v2/incomeLevel/LIC/country?format=json&per_page=3");
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 00:12:34.683182 200 838ms
2026-04-15 03:35:50.645003 200 6486ms
2026-04-14 03:58:20.012919 200 778ms
2026-04-12 13:24:09.735672 200 806ms
2026-04-10 00:25:03.392642 200 953ms
2026-04-09 01:23:13.548348 200 255ms