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

# World Bank

> World Bank Open Data API providing development indicators for 200+ countries — GDP, population, education, health, poverty, and infrastructure metrics.

World Bank Open Data API providing development indicators for 200+ countries — GDP, population, education, health, poverty, and infrastructure metrics. Best for cross-country comparisons, global economic analysis, and development research. The standard source for international development data — unlike U.S.-focused agencies (BEA, BLS), World Bank covers the global economy with standardized indicators.

2 example endpoints available through Lava's AI Gateway. See the [World Bank API docs](https://datahelpdesk.worldbank.org/knowledgebase/articles/889392) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

<Info>This is a **catch-all provider** — any valid URL under `https://api.worldbank.org/v2` is supported. World Bank Open Data API. Construct URL as [https://api.worldbank.org/v2/\&#123;endpoint\&#125](https://api.worldbank.org/v2/\&#123;endpoint\&#125);. Common endpoints: /country/\{code}/indicator/\{indicator}, /country, /indicator. Use ?format=json for JSON responses. The endpoints below are curated examples.</Info>

## Endpoints

### Get indicator data for a country

**GET** `https://api.worldbank.org/v2/country/US/indicator/NY.GDP.MKTP.CD?format=json` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.worldbank.org/v2/country/US/indicator/NY.GDP.MKTP.CD?format=json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.worldbank.org%2Fv2%2Fcountry%2FUS%2Findicator%2FNY.GDP.MKTP.CD%3Fformat%3Djson" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### List all countries

**GET** `https://api.worldbank.org/v2/country?format=json` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.worldbank.org/v2/country?format=json', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.worldbank.org%2Fv2%2Fcountry%3Fformat%3Djson" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
