# World Bank Indicators API: GDP, Inflation, Population Data (`datacrate/world-bank-indicators-feed`) Actor

Pull World Bank indicators (GDP, inflation, population, unemployment, CO2 and more) for any country, region or income group as clean rows. Latest-value and delta modes. Official free API.

- **URL**: https://apify.com/datacrate/world-bank-indicators-feed.md
- **Developed by:** [Data Crate](https://apify.com/datacrate) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 indicator value returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## World Bank Indicators API: GDP, Inflation, Population Data

**Pull World Bank development indicators (GDP, inflation, population, unemployment, CO2, life expectancy and about 25 curated presets, or any World Development Indicators id) for any country, region or income group as clean flat rows.** Choose the latest value per country or a year-by-year time series, and use delta mode to get only new or revised values on a schedule. Data comes from the official, free World Bank Indicators API and every row carries the CC BY 4.0 attribution.

**First run cost:** the default run returns up to 25 rows for about **$0.013** at **$0.0005 per result** (the first 5 seconds of compute are covered by Apify). The prefilled example (10 rows) costs about **$0.005**. 1,000 rows cost about **$0.50**, less on higher Apify plans.

### Who it is for

- **Analysts, journalists and researchers** who want macro data in a table without hand-writing API calls or paging.
- **Data and BI teams** that need a scheduled, flat feed of country statistics for dashboards and models.
- **Developers and AI agents** that need one reliable call for "latest GDP / inflation / unemployment for these countries".
- **Consultants and market researchers** comparing countries by region or income group.

### What you get per row

`countryIso2`, `countryIso3`, `countryName`, `region`, `incomeLevel`, `isAggregate`, `indicatorId`, `indicatorName`, `topic`, `year`, `value`, `unit`, `observationStatus`, `isLatest`, `changeType` (delta mode), `source`, `sourceLastUpdated`, `url`, `attribution`, `checkedAt`.

### Input

| Field | Meaning |
|---|---|
| `indicators` | preset names (`gdp`, `gdp_per_capita`, `gdp_growth`, `gni_per_capita`, `inflation`, `real_interest_rate`, `exchange_rate`, `population`, `urban_population_pct`, `unemployment`, `life_expectancy`, `fertility_rate`, `poverty`, `gini`, `literacy`, `education_spending`, `health_spending`, `internet_users`, `electricity_access`, `renewable_energy`, `co2_per_capita`, `co2_total`, `exports_pct_gdp`, `fdi_pct_gdp`, `government_debt`, `military_spending`) or any WDI id such as `NY.GDP.MKTP.CD`. Empty = `gdp`. |
| `countries` | ISO3 or ISO2 codes (`USA`, `DE`). Aggregates work too (`WLD`, `EUU`). Empty = all countries. |
| `regions` | region ids added to the list: `EAS`, `ECS`, `LCN`, `MEA`, `NAC`, `SAS`, `SSF` |
| `incomeLevels` | income group ids: `HIC`, `UMC`, `LMC`, `LIC` |
| `mode` | `latest` (most recent available value per country, default) or `series` (year window) |
| `years` / `yearFrom` / `yearTo` | time series window; default is the last 5 years |
| `includeAggregates` | with no countries chosen, also return aggregates such as World or Euro area |
| `includeEmptyValues` | time series only: keep years with no value (off by default) |
| `maxItems` | cap on rows and cost (default 25) |
| `onlyNewSinceLastRun`, `stateKey` | delta mode, one watchlist per state name |

Default (prefill) input:

```json
{ "indicators": ["gdp", "inflation"], "countries": ["USA", "DEU", "JPN", "BRA", "IND"], "maxItems": 10 }
```

Five years of unemployment for all high-income countries:

```json
{ "indicators": ["unemployment"], "incomeLevels": ["HIC"], "mode": "series", "years": 5, "maxItems": 1000 }
```

Daily or monthly change feed (only new or revised values after the first run):

```json
{ "indicators": ["gdp_growth", "inflation"], "regions": ["LCN"], "onlyNewSinceLastRun": true, "stateKey": "latam", "maxItems": 2000 }
```

### Sample output (trimmed)

```json
{
  "countryIso2": "DE",
  "countryIso3": "DEU",
  "countryName": "Germany",
  "region": "Europe & Central Asia",
  "incomeLevel": "High income",
  "isAggregate": false,
  "indicatorId": "NY.GDP.MKTP.CD",
  "indicatorName": "GDP (current US$)",
  "year": 2025,
  "value": 5050922925047.05,
  "unit": "current US$",
  "isLatest": true,
  "source": "World Bank World Development Indicators",
  "attribution": "The World Bank: World Development Indicators (CC BY 4.0, https://datacatalog.worldbank.org/public-licenses#cc)"
}
```

### FAQ

**Which indicators are supported?** Everything in the World Development Indicators database (source 2, over 1,500 series). Use a preset name or paste an id from data.worldbank.org. Indicators from other World Bank databases are skipped with a warning, because only WDI is confirmed as CC BY 4.0 here.

**What does "latest" mean?** The most recent year with a published value for each country (the API's `mrnev` option). Different countries can have different latest years, so check the `year` column.

**Why are some years missing?** National statistics offices report with lags and some series are sparse. Empty years are skipped by default and are never billed.

**Are aggregates included?** Only when you list them (for example `WLD`, `EUU`) or set `includeAggregates` with no country filter.

**How fresh is the data?** WDI is updated by the World Bank on a rolling basis; `sourceLastUpdated` shows the API's last-updated date for each indicator.

**Does it need an API key?** No. It uses the free public World Bank API with a descriptive User-Agent, paces its requests and backs off on 429 or server errors.

**Delta mode?** With `onlyNewSinceLastRun` a value is returned again only if it is new (country, indicator, year) or the number was revised. `changeType` says which.

### Terms and robots evidence (checked 2026-11-22)

- Data comes from the World Bank Indicators API v2 (`https://api.worldbank.org/v2`), no login or key.
- `https://api.worldbank.org/robots.txt` returns 404, so no crawl rules are published for the API; the actor makes only a handful of paced API calls per run.
- License: the World Development Indicators dataset page in the World Bank Data Catalog (https://datacatalog.worldbank.org/search/dataset/0037712/world-development-indicators) states "Creative Commons Attribution 4.0", full text at https://datacatalog.worldbank.org/public-licenses#cc. The World Bank terms (https://www.worldbank.org/en/about/legal/terms-of-use-for-datasets) defer to the dataset-specific terms for Data Catalog datasets. Reuse requires attribution, which every row carries in `attribution`.
- This actor is not affiliated with, endorsed or sponsored by the World Bank Group.

### Integrations

Schedule monthly or quarterly, send new values to Slack, email, Google Sheets, a warehouse or a Notion table through a webhook, or call it from an AI agent through the Apify MCP server. Export JSON, CSV or Excel.

### Pricing

Pay per result: **$0.0005 per indicator value** (volume tiers on higher Apify plans), plus Apify's usual start event. Only rows returned are billed; `maxItems` caps the bill. Skipped empty years and unchanged delta rows are not billed.

### Related actors

- GLEIF LEI Lookup & New LEI Feed for company identifiers.
- US Treasury Data Feed for US rates and debt series.

### Changelog

- 1.0: first release (26 presets or any WDI id, countries, regions and income groups, latest and time-series modes, delta mode, CC BY 4.0 attribution per row).

# Actor input Schema

## `indicators` (type: `array`):

Preset names (gdp, gdp_per_capita, gdp_growth, inflation, population, unemployment, life_expectancy, poverty, internet_users, co2_per_capita, government_debt and more) or any World Development Indicators id such as NY.GDP.MKTP.CD. Empty = gdp.

## `countries` (type: `array`):

ISO3 or ISO2 codes, for example USA, DEU, JP. Aggregates also work (WLD world, EUU European Union). Leave empty for all countries (use Max results to cap).

## `regions` (type: `array`):

Optional region ids added to the country list: EAS East Asia & Pacific, ECS Europe & Central Asia, LCN Latin America & Caribbean, MEA Middle East, North Africa, Afghanistan & Pakistan, NAC North America, SAS South Asia, SSF Sub-Saharan Africa.

## `incomeLevels` (type: `array`):

Optional income group ids: HIC high, UMC upper middle, LMC lower middle, LIC low income.

## `mode` (type: `string`):

Latest = the most recent available value per country (one row per country and indicator). Time series = every year in the window below.

## `years` (type: `integer`):

Time series only: how many years back from this year (the current year usually has no data yet). Ignored if From / To year are set.

## `yearFrom` (type: `integer`):

Optional, 1960 or later.

## `yearTo` (type: `integer`):

Optional. Defaults to the current year.

## `includeAggregates` (type: `boolean`):

When no countries are chosen, also return aggregates such as World, Euro area, OECD members. Aggregates listed in Countries are always included.

## `includeEmptyValues` (type: `boolean`):

Time series only. Off by default; empty years are not billed when skipped.

## `maxItems` (type: `integer`):

Upper bound on rows (and on cost).

## `onlyNewSinceLastRun` (type: `boolean`):

Skip values already returned by an earlier run with the same state name and unchanged since. The first run returns everything and sets the baseline. Each row gets changeType new or revised.

## `stateKey` (type: `string`):

Use different names to keep separate watchlists.

## Actor input object example

```json
{
  "indicators": [
    "gdp",
    "inflation"
  ],
  "countries": [
    "USA",
    "DEU",
    "JPN",
    "BRA",
    "IND"
  ],
  "mode": "latest",
  "includeAggregates": false,
  "includeEmptyValues": false,
  "maxItems": 10,
  "onlyNewSinceLastRun": false,
  "stateKey": "default"
}
```

# Actor output Schema

## `results` (type: `string`):

One row per country, indicator and year with value, unit, region, income level and attribution.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "indicators": [
        "gdp",
        "inflation"
    ],
    "countries": [
        "USA",
        "DEU",
        "JPN",
        "BRA",
        "IND"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacrate/world-bank-indicators-feed").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "indicators": [
        "gdp",
        "inflation",
    ],
    "countries": [
        "USA",
        "DEU",
        "JPN",
        "BRA",
        "IND",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datacrate/world-bank-indicators-feed").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "indicators": [
    "gdp",
    "inflation"
  ],
  "countries": [
    "USA",
    "DEU",
    "JPN",
    "BRA",
    "IND"
  ],
  "maxItems": 10
}' |
apify call datacrate/world-bank-indicators-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacrate/world-bank-indicators-feed"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/OMxbJOiDm5A623NN4/builds/6eIZ4WPKLc5stul5D/openapi.json
