# World Bank Indicator (`worldbank.indicator`)

Yearly values of a World Bank development indicator for a country: GDP, population, inflation, unemployment and 1,400 more.

- **Route:** `POST /v1/run/worldbank.indicator`
- **Price:** $0.0008 per request ($0.80 per 1,000) · `cost_usd` on every response
- **Source:** World Bank Open Data (`worldbank`) · failover: no
- **Measured latency:** not enough calls measured yet
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `country` | string | yes |  | ISO country code (US, DEU) or WLD for the world |
| `indicator` | string | no | "NY.GDP.MKTP.CD" | Indicator code: NY.GDP.MKTP.CD (GDP), SP.POP.TOTL (population), FP.CPI.TOTL.ZG (inflation) |
| `years` | integer | no | 10 | Most recent years to return |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `indicator_name` | Indicator label. |
| `series` | year and value, newest first (years without data are dropped). |
| `latest` | Most recent value. |
| `country` | Country name. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/worldbank.indicator \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country":"DE","indicator":"NY.GDP.MKTP.CD","years":5}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('worldbank.indicator', {'country': 'DE', 'indicator': 'NY.GDP.MKTP.CD', 'years': 5})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run worldbank.indicator '{"country":"DE","indicator":"NY.GDP.MKTP.CD","years":5}'
```

Quote first (free, validates input): `POST /v1/quote/worldbank.indicator` with the same body.
