GET countries
dhsprogram.com:dhs-program-api
Summary: Get list of countries
Operation ID: getCountries
Auth: unknown
Operation ID: getCountries
Auth: unknown
Description
Returns a list of countries with DHS survey data, including country codes used by various international organizations (ISO2, ISO3, DHS, WHO, UNICEF, etc.).
Parameters (3)
f
(string, query, optional, default: json)
Output format.
Constraints: {'enum': ['json', 'xml', 'html']}
page
(integer, query, optional, default: 1)
Page number.
perpage
(integer, query, optional, default: 100)
Number of entries per page.
Examples (4)
| Title | Type | URL | Action |
|---|---|---|---|
| List all countries with defaults | curl |
https://www.dhsprogram.com/countries |
|
| List countries with pagination | curl |
https://www.dhsprogram.com/countries?page=2&perPage=50 |
|
| List countries with explicit JSON format | curl |
https://www.dhsprogram.com/countries?f=json&page=1&perPage=100 |
|
| Get list of countries | probe-gate |
https://api.dhsprogram.com/rest/dhs/countries?f=json&perpage=100&page=1 |
Probe History
Status Codes
| Time | Status | Latency | Size |
|---|---|---|---|
| 2026-03-23 10:51:03.123596 | 200 | 987ms | |
| 2026-03-23 10:25:13.427070 | 200 | 926ms | |
| 2026-03-23 09:24:24.227106 | 200 | 792ms | |
| 2026-03-23 09:08:24.249392 | 200 | 452ms |
Response Changes
| When | Old | New |
|---|---|---|
| 2026-03-23 09:24:24.227106 | 320e59b8647c |
4218f0d2a2bd |
| 2026-03-23 10:25:13.427070 | 4218f0d2a2bd |
688a305ad0f8 |
| 2026-03-23 10:51:03.123596 | 688a305ad0f8 |
9c6b48843041 |