# World Bank API

> 2 public methods for World Bank (worldbank.org), each 1 credit per completed run.

Unofficial. Not affiliated with or endorsed by World Bank.

- Page: https://fous.com/methods/worldbank.org

## Methods

### [Get country statistic](https://fous.com/methods/data.worldbank.org/get-country-statistic.md)

`data.worldbank.org/get_country_statistic`, read. 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

### [Compare countries by a statistic](https://fous.com/methods/worldbank.org/compare-countries.md)

`worldbank.org/compare_countries`, read. 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
