GET country/{country_code}/indicator/{indicator_code}
Summary: Get indicator data for a country
Operation ID: getCountryIndicatorData
Auth: unknown
Operation ID: getCountryIndicatorData
Auth: unknown
Description
Returns time-series data for a specific indicator and country or aggregate. This is the primary endpoint for retrieving actual data values.
Parameters (7)
country_code
(string, path, required)
ISO 3166-1 alpha-3 country code or aggregate code (e.g., USA, WLD, all)
date
(string, query, optional)
Date range in format YYYY:YYYY or single year YYYY (e.g., 2020:2023, 2010)
format
(string, query, optional)
Response format
Constraints: {'enum': ['json', 'xml']}
indicator_code
(string, path, required)
Indicator code (e.g., NY.GDP.MKTP.CD, SP.POP.TOTL)
page
(integer, query, optional)
Page number for pagination
per_page
(integer, query, optional)
Number of results per page
Constraints: {'maximum': 299}
source
(string, query, optional)
Filter by data source ID
Examples (23)
| Title | Type | URL | Action |
|---|---|---|---|
| Get indicator data for a country | openapi-spec |
https://api.worldbank.org/v2/country/USA/indicator/SP.POP.TOTL?date=2020:2023&MRV=5 |
|
| Get total population for all countries | doc_extracted |
https://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL |
|
| Get population data for year 2000 | doc_extracted |
https://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL?date=2000 |
|
| Get indicator data for China and Brazil in specific month | doc_extracted |
https://api.worldbank.org/v2/country/chn;bra/indicator/DPANUSSPB?date=2012M01 |
|
| Get population data for date range 2000-2001 | doc_extracted |
https://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL?date=2000:2001 |
|
| Get indicator data for date range with months | doc_extracted |
https://api.worldbank.org/v2/country/chn;bra/indicator/DPANUSSPB?date=2012M01:2012M08 |
|
| Get quarterly data for Chile | doc_extracted |
https://api.worldbank.org/v2/country/CHL/indicator/DP.DOD.DECD.CR.BC.CD?date=2013Q1:2013Q4 |
|
| Get year-to-date values for China | doc_extracted |
https://api.worldbank.org/v2/country/chn/indicator/DPANUSSPB?date=YTD:2013 |
|
| Get data in XML format | doc_extracted |
https://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL?format=xml |
|
| Get data in JSON format | doc_extracted |
https://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL?format=json |
|
| Get data in JSONP format with prefix | doc_extracted |
https://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL?format=jsonP&prefix=Getdata |
|
| Get data in JSON-stat format | doc_extracted |
https://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL?format=jsonstat |
|
| Download data in CSV format | doc_extracted |
https://api.worldbank.org/v2/country/ind/indicator/SI.POV.DDAY?source=2&downloadformat=csv |
|
| Download data in XML format | doc_extracted |
https://api.worldbank.org/v2/country/ind/indicator/SI.POV.DDAY?source=2&downloadformat=xml |
|
| Download data in Excel format | doc_extracted |
https://api.worldbank.org/v2/country/ind/indicator/SI.POV.DDAY?source=2&downloadformat=excel |
|
| Get page 2 of results | doc_extracted |
https://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL?page=2 |
|
| Get 25 results per page | doc_extracted |
https://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL?per_page=25 |
|
| Get most recent 5 values for China and Angola | doc_extracted |
https://api.worldbank.org/v2/country/chn;ago/indicator/SI.POV.DDAY?mrv=5 |
|
| Get most recent 5 non-empty values | doc_extracted |
https://api.worldbank.org/v2/country/chn;ago/indicator/SI.POV.DDAY?mrnev=5 |
|
| Get data with gap fill enabled | doc_extracted |
https://api.worldbank.org/v2/en/country/ind;chn/indicator/DPANUSSPF?mrv=7&gapfill=Y |
|
| Get monthly frequency data | doc_extracted |
https://api.worldbank.org/v2/en/country/ind;chn/indicator/DPANUSSPF?mrv=7&frequency=M |
|
| Get multiple indicators for multiple countries | doc_extracted |
https://api.worldbank.org/v2/country/chn;ago/indicator/SI.POV.DDAY;SP.POP.TOTL?source=2 |
|
| Get data with footnote details | doc_extracted |
https://api.worldbank.org/v2/country/chn/indicator/SL.AGR.EMPL.ZS?footnote=y |
Probe History
Status Codes
| Time | Status | Latency | Size |
|---|---|---|---|
| 2026-03-23 10:50:54.340598 | 200 | 249ms | |
| 2026-03-23 10:46:46.142687 | 200 | 260ms | |
| 2026-03-23 10:45:31.857650 | 200 | 542ms | |
| 2026-03-23 10:44:28.517656 | 200 | 510ms | |
| 2026-03-23 10:42:23.010155 | 200 | 423ms | |
| 2026-03-23 10:41:21.247013 | 200 | 697ms | |
| 2026-03-23 10:39:09.169533 | 200 | 224ms | |
| 2026-03-23 10:38:05.675201 | 200 | 422ms | |
| 2026-03-23 10:36:46.023298 | 200 | 322ms | |
| 2026-03-23 10:33:17.394624 | 400 | 506ms | |
| 2026-03-23 10:30:34.703089 | 200 | 415ms | |
| 2026-03-23 10:22:42.067170 | 200 | 272ms | |
| 2026-03-23 10:16:50.221402 | 200 | 250ms | |
| 2026-03-23 09:50:42.868164 | 200 | 237ms | |
| 2026-03-23 09:49:41.026633 | 200 | 307ms | |
| 2026-03-23 09:34:19.810726 | 200 | 764ms | |
| 2026-03-23 09:30:12.885368 | 200 | 286ms | |
| 2026-03-23 09:26:06.635312 | 200 | 598ms | |
| 2026-03-23 09:24:37.294469 | 200 | 28421ms | |
| 2026-03-23 09:19:48.619226 | 200 | 382ms | |
| 2026-03-23 09:18:46.408418 | 200 | 585ms | |
| 2026-03-23 09:04:43.644168 | 200 | 719ms | |
| 2026-03-23 09:02:22.243612 | 200 | 602ms |
Response Changes
| When | Old | New |
|---|---|---|
| 2026-03-23 09:04:43.644168 | a1148d85b0fc |
7516909e8f00 |
| 2026-03-23 09:18:46.408418 | 7516909e8f00 |
6b3e12aa3850 |
| 2026-03-23 09:19:48.619226 | 6b3e12aa3850 |
7f7c76769774 |
| 2026-03-23 09:24:37.294469 | 7f7c76769774 |
f52417551310 |
| 2026-03-23 09:26:06.635312 | f52417551310 |
ee1b0a0fdbc9 |
| 2026-03-23 09:30:12.885368 | ee1b0a0fdbc9 |
e8f3cf49073e |
| 2026-03-23 09:34:19.810726 | e8f3cf49073e |
28446353bef1 |
| 2026-03-23 09:49:41.026633 | 28446353bef1 |
740152c8ba0b |
| 2026-03-23 09:50:42.868164 | 740152c8ba0b |
3a81258c1ab0 |
| 2026-03-23 10:16:50.221402 | 3a81258c1ab0 |
8ce3accbdc28 |
| 2026-03-23 10:22:42.067170 | 8ce3accbdc28 |
f2f581dd3186 |
| 2026-03-23 10:30:34.703089 | f2f581dd3186 |
e25e76bc8f80 |
| 2026-03-23 10:33:17.394624 | e25e76bc8f80 |
0d41cf6a8bf9 |
| 2026-03-23 10:36:46.023298 | 0d41cf6a8bf9 |
f2f581dd3186 |
| 2026-03-23 10:38:05.675201 | f2f581dd3186 |
da621b2f240b |
| 2026-03-23 10:39:09.169533 | da621b2f240b |
da6cd59b445b |
| 2026-03-23 10:41:21.247013 | da6cd59b445b |
f321e7d2854b |
| 2026-03-23 10:42:23.010155 | f321e7d2854b |
64f5d1bfd147 |
| 2026-03-23 10:44:28.517656 | 64f5d1bfd147 |
0bab5c50324c |
| 2026-03-23 10:45:31.857650 | 0bab5c50324c |
4fb40dc425b7 |
| 2026-03-23 10:46:46.142687 | 4fb40dc425b7 |
783829c03473 |
| 2026-03-23 10:50:54.340598 | 783829c03473 |
6f41de544787 |