Skip to content

World Bank API

World Bank (worldbank.org) has 2 public methods: get country statistic and compare countries by a statistic. Each costs 1 credit per completed run (1¢ with pay as you go); failed runs are free.

Unofficial. Not affiliated with or endorsed by World Bank.

Methods

2
  • Looks up a World Bank statistic for a country and returns its annual values and latest value for the selected years.

    Returns country, statistic, unit, latest value and year, annual values, source, data page link

    Readdata.worldbank.org/get_country_statistic
  • Ranks countries by a World Development Indicators statistic for a given year, or for the latest year with broad country coverage. Regional aggregates and countries without data for that year are left out.

    Returns statistic name, unit, year, indicator code, ranked countries with values and chart links

    Readworldbank.org/compare_countries