The playground

Try any of 1042 endpoints — live.

Pick an endpoint, load a working example, tweak the params, and send — no signup to try. Results render the way the data deserves; raw JSON, headers & code are one tab away.

Playground demo key · api.reefapi.com
post/worldbank/v1/indicator2 credits

time-series for one+ indicators (code or shortcut) across one+ countries/all; date/mrv/mrnev, rank

Working example
Parameters

One or more ISO country codes (2- or 3-letter), separated by ; , or space, or 'all' for every economy (e.g. 'US' or 'US;CN;DE'). Discover codes via action=country / reference.

One or more World Bank indicator codes OR friendly shortcut aliases (e.g. 'gdp', 'inflation'), separated by ; , or space. Real codes are case-sensitive; shortcut aliases are not. See action=shortcuts.

Year or year range (e.g. '2020' or '2015:2022'). Omit for all years; combine with mrv/mrnev for recent-values windows instead.

Most-Recent-Values: return only the latest N data points per series. (1–500)

Most-Recent-Non-Empty-Values: latest N NON-null data points per series. (1–500)

Drop observations whose value is null from each series.

Rank countries by latest value (only when a SINGLE indicator is queried); adds a 'rank' field to each series.

World Bank API page size for paging through observations. (1–20000)

Maximum number of observation pages to fetch (caps very large pulls). (1–50)

Data frequency for indicators that publish sub-annual series (most WDI indicators are yearly).

Carry the last observed value forward to fill gaps (used with mrv).

request preview
curl -X POST https://api.reefapi.com/worldbank/v1/indicator \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"country":"US","indicator":"NY.GDP.MKTP.CD","date":"2015:2022"}'

Hit Send to run this endpoint live.