> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# World Bank Indicators API

> World Bank development indicators (GDP, population, poverty, health, education...) for every country and aggregate, by year.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/worldbank.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=fa0180cd9996b62cc8d6ee083bdbf75d)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

No key needed

Endpoints

7

Auth

None

[Vendor docs](https://datahelpdesk.worldbank.org/knowledgebase/topics/125589)

## Notes

* Free and keyless. Every call here carries format=json; without it the API answers in XML.
* A JSON answer is a two-item array: paging metadata (page, pages, per\_page, total), then the rows. Page with page and per\_page (default 50).
* Join several countries or indicators with ';' (up to 60 indicators; several indicators need source). Results cannot be sorted.
* Limits: 1,500 characters between slashes and 4,000 per URL.
* The paging metadata of a data call carries lastupdated, the date the source was last refreshed.

## Endpoints

GET

Get indicator values for countries

Values of one or more indicators for one or more countries, by year (or month/quarter).

[Open](#worldbank-indicator-data)

GET

List indicators

Every indicator with its code, name, source, topics and definition; filter by topic or source.

[Open](#worldbank-indicators-list)

GET

Get an indicator

Name, unit, source, topics and definition of one indicator code.

[Open](#worldbank-indicator-get)

GET

List countries

Countries and aggregates with region, income level and lending type.

[Open](#worldbank-countries-list)

GET

Get a country

One country (or several joined with ';') by ISO code.

[Open](#worldbank-country-get)

GET

List topics

The topics (Education, Health, ...) indicators are grouped under, with ids.

[Open](#worldbank-topics-list)

GET

List a topic's indicators

Indicators under one topic id.

[Open](#worldbank-topic-indicators)

### Get indicator values for countries

GET

`/country/{country}/indicator/{indicator}`

`worldbank.indicator.data`

Values of one or more indicators for one or more countries, by year (or month/quarter).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`country` required</td><td>string</td><td>path</td><td>ISO2 or ISO3 country code, an aggregate code, 'all', or several joined with ';'. Example `br`</td></tr>
    <tr><td>`indicator` required</td><td>string</td><td>path</td><td>Indicator code, or up to 60 joined with ';' (then source is required). Example `NY.GDP.MKTP.CD`</td></tr>
    <tr><td>`date`</td><td>string</td><td>query</td><td>A year, or a range with ':' (2000:2010); monthly 2012M01:2012M08, quarterly and YTD:2013 forms also work. Example `2000:2010`</td></tr>

    <tr>
      <td>
        `mrv`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only the N most recent values.
      </td>
    </tr>

    <tr>
      <td>
        `mrnev`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only the N most recent non-empty values.
      </td>
    </tr>

    <tr><td>`gapfill`</td><td>string</td><td>query</td><td>With mrv, back-fill missing values. One of `Y`, `N`</td></tr>
    <tr><td>`frequency`</td><td>string</td><td>query</td><td>Quarterly, monthly or yearly; works with mrv. One of `Q`, `M`, `Y`</td></tr>
    <tr><td>`source`</td><td>string</td><td>query</td><td>Source (database) id; required when asking for several indicators. Example `2`</td></tr>
    <tr><td>`footnote`</td><td>string</td><td>query</td><td>y adds footnote details. One of `y`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 50.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://datahelpdesk.worldbank.org/knowledgebase/articles/898581-api-basic-call-structures) · Same job: [US Bureau of Labor Statistics](https://docs.webrouter.net/data-apis/bls.md#bls-series-get), [US Energy Information Administration](https://docs.webrouter.net/data-apis/eia.md#eia-data-get), [IBGE](https://docs.webrouter.net/data-apis/ibge.md#ibge-aggregates-values)

```python Python theme={null}
router.call_data_api("worldbank.indicator.data", {'country': 'br', 'indicator': 'NY.GDP.MKTP.CD', 'date': '2000:2010', 'source': '2'})
```

```text MCP theme={null}
call_data_api(endpoint="worldbank.indicator.data", params={"country": "br", "indicator": "NY.GDP.MKTP.CD", "date": "2000:2010", "source": "2"})
```

> [!NOTE]
>
> * Example: country br, indicator NY.GDP.MKTP.CD, date 2006 gives Brazil's 2006 GDP in current US\$.

### List indicators

GET

`/indicator`

`worldbank.indicators.list`

Every indicator with its code, name, source, topics and definition; filter by topic or source.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`topic`</td><td>integer</td><td>query</td><td>Only indicators under this topic id. Example `5`</td></tr>

    <tr>
      <td>
        `source`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only indicators in this source id.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 50.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://datahelpdesk.worldbank.org/knowledgebase/articles/898599-indicator-api-queries) · Same job: [US Bureau of Labor Statistics](https://docs.webrouter.net/data-apis/bls.md#bls-series-popular)

```python Python theme={null}
router.call_data_api("worldbank.indicators.list", {'topic': 5})
```

```text MCP theme={null}
call_data_api(endpoint="worldbank.indicators.list", params={"topic": 5})
```

### Get an indicator

GET

`/indicator/{indicator}`

`worldbank.indicator.get`

Name, unit, source, topics and definition of one indicator code.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`indicator` required</td><td>string</td><td>path</td><td>Indicator code. Example `NY.GDP.MKTP.CD`</td></tr>
    <tr><td>`source`</td><td>string</td><td>query</td><td>Source id, when the code exists in several. Example `11`</td></tr>
  </tbody>
</table>

[Vendor docs](https://datahelpdesk.worldbank.org/knowledgebase/articles/898599-indicator-api-queries) · Same job: [IBGE](https://docs.webrouter.net/data-apis/ibge.md#ibge-aggregates-metadata)

```python Python theme={null}
router.call_data_api("worldbank.indicator.get", {'indicator': 'NY.GDP.MKTP.CD', 'source': '11'})
```

```text MCP theme={null}
call_data_api(endpoint="worldbank.indicator.get", params={"indicator": "NY.GDP.MKTP.CD", "source": "11"})
```

### List countries

GET

`/country`

`worldbank.countries.list`

Countries and aggregates with region, income level and lending type.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`incomeLevel`</td><td>string</td><td>query</td><td>Only countries at this income level id. Example `LIC`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 50.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://datahelpdesk.worldbank.org/knowledgebase/articles/898581-api-basic-call-structures) · Same job: [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-geocoder-search), [CNPJá](https://docs.webrouter.net/data-apis/cnpja.md#cnpja-zip-get), [CompanyEnrich](https://docs.webrouter.net/data-apis/companyenrich.md#companyenrich-geo-regions), [Duffel](https://docs.webrouter.net/data-apis/duffel.md#duffel-places-suggestions), [Forager](https://docs.webrouter.net/data-apis/forager.md#forager-reference-locations), [IBGE](https://docs.webrouter.net/data-apis/ibge.md#ibge-aggregates-places)

```python Python theme={null}
router.call_data_api("worldbank.countries.list", {'incomeLevel': 'LIC'})
```

```text MCP theme={null}
call_data_api(endpoint="worldbank.countries.list", params={"incomeLevel": "LIC"})
```

### Get a country

GET

`/country/{country}`

`worldbank.country.get`

One country (or several joined with ';') by ISO code.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`country` required</td><td>string</td><td>path</td><td>ISO2 or ISO3 code. Example `br`</td></tr>
  </tbody>
</table>

[Vendor docs](https://datahelpdesk.worldbank.org/knowledgebase/articles/898590-country-api-queries) · Same job: [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-geocoder-search), [CNPJá](https://docs.webrouter.net/data-apis/cnpja.md#cnpja-zip-get), [CompanyEnrich](https://docs.webrouter.net/data-apis/companyenrich.md#companyenrich-geo-regions), [Duffel](https://docs.webrouter.net/data-apis/duffel.md#duffel-places-suggestions), [Forager](https://docs.webrouter.net/data-apis/forager.md#forager-reference-locations), [IBGE](https://docs.webrouter.net/data-apis/ibge.md#ibge-aggregates-places)

```python Python theme={null}
router.call_data_api("worldbank.country.get", {'country': 'br'})
```

```text MCP theme={null}
call_data_api(endpoint="worldbank.country.get", params={"country": "br"})
```

### List topics

GET

`/topic`

`worldbank.topics.list`

The topics (Education, Health, ...) indicators are grouped under, with ids.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 50.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://datahelpdesk.worldbank.org/knowledgebase/articles/898611-topic-api-queries) · Same job: [US Bureau of Labor Statistics](https://docs.webrouter.net/data-apis/bls.md#bls-surveys-list), [US Energy Information Administration](https://docs.webrouter.net/data-apis/eia.md#eia-routes-list), [IBGE](https://docs.webrouter.net/data-apis/ibge.md#ibge-aggregates-list)

```python Python theme={null}
router.call_data_api("worldbank.topics.list")
```

```text MCP theme={null}
call_data_api(endpoint="worldbank.topics.list")
```

### List a topic's indicators

GET

`/topic/{topic_id}/indicator`

`worldbank.topic.indicators`

Indicators under one topic id.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`topic_id` required</td><td>string</td><td>path</td><td>Topic id. Example `5`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page; default 50.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://datahelpdesk.worldbank.org/knowledgebase/articles/898611-topic-api-queries) · Same job: [US Bureau of Labor Statistics](https://docs.webrouter.net/data-apis/bls.md#bls-series-popular)

```python Python theme={null}
router.call_data_api("worldbank.topic.indicators", {'topic_id': '5'})
```

```text MCP theme={null}
call_data_api(endpoint="worldbank.topic.indicators", params={"topic_id": "5"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.