# World Bank Development Indicators (`wakey7dev/world-bank-normalizer`) Actor

Extract World Bank data — GDP, population, poverty, education for all countries. Free API, no key. NGOs, academia, policy research.

- **URL**: https://apify.com/wakey7dev/world-bank-normalizer.md
- **Developed by:** [Chris Wakefield](https://apify.com/wakey7dev) (community)
- **Categories:** Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

![Chris The Dev](https://raw.githubusercontent.com/chriswakefield87/appstore-screenshot-translator/main/assets/actor-banner.png)

## World Bank Data Normalizer

Fetch, normalize, and export **1,600+ World Bank development indicators** across **200+ countries** — with human-readable labels, country names, and regional metadata. No API key required.

Raw World Bank API responses use cryptic indicator codes (`NY.GDP.MKTP.CD`) and ISO country codes (`GBR`). This Actor converts everything into clean, labeled records ready for analysis, dashboards, or AI pipelines.

### Features

- **1,600+ indicators** mapped to human-readable names (GDP, population, poverty, education, health, environment, etc.)
- **200+ countries and regions** — ISO codes expanded to full names
- **Regional classification** — every record tagged with its World Bank region
- **Flexible filtering** — choose indicators, countries, year ranges
- **Three output formats** — Dataset (full data), OUTPUT (summary table), STATS (machine-readable)
- **Free API** — no authentication, no rate limits in normal use

### Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `indicatorCodes` | string\[] | Yes | — | World Bank indicator codes. See examples below. |
| `countryCodes` | string\[] | No | All countries | ISO 3166-1 alpha-3 codes (e.g., USA, GBR, DEU) |
| `yearRange` | select | No | `latest` | `latest`, `last5`, `last10`, `last20`, `all` |
| `maxResults` | integer | No | 500 | Max data points to return (1–5000) |

### Example Input

```json
{
  "indicatorCodes": ["NY.GDP.MKTP.CD", "SP.POP.TOTL", "SI.POV.GINI"],
  "countryCodes": ["USA", "GBR", "DEU", "JPN", "CHN", "IND"],
  "yearRange": "last5",
  "maxResults": 200
}
```

### Example Output

```json
{
  "countryCode": "GBR",
  "countryName": "United Kingdom",
  "region": "Europe & Central Asia",
  "indicatorCode": "NY.GDP.MKTP.CD",
  "indicatorName": "GDP (current US$)",
  "year": "2023",
  "value": 3340227800000,
  "unit": "",
  "decimal": 0,
  "obsStatus": ""
}
```

### Commonly Used Indicators

| Code | Description |
|---|---|
| `NY.GDP.MKTP.CD` | GDP (current US$) |
| `NY.GDP.PCAP.CD` | GDP per capita (current US$) |
| `NY.GDP.MKTP.KD.ZG` | GDP growth (annual %) |
| `SP.POP.TOTL` | Population, total |
| `SP.DYN.LE00.IN` | Life expectancy at birth (years) |
| `SI.POV.GINI` | Gini index |
| `SI.POV.DDAY` | Poverty headcount at $2.15/day |
| `SE.ADT.LITR.ZS` | Literacy rate, adult total (%) |
| `IT.NET.USER.ZS` | Individuals using the Internet (%) |
| `SL.UEM.TOTL.ZS` | Unemployment rate (%) |
| `FP.CPI.TOTL.ZG` | Inflation, consumer prices (annual %) |
| `SH.XPD.CHEX.GD.ZS` | Health expenditure (% of GDP) |
| `EN.ATM.CO2E.PC` | CO2 emissions (metric tons per capita) |
| `SP.URB.TOTL.IN.ZS` | Urban population (% of total) |

Find more indicators at [data.worldbank.org/indicator](https://data.worldbank.org/indicator).

### Use Cases

- **Economic research** — Compare GDP, inflation, trade across countries
- **NGO reporting** — Track poverty, education, health indicators for grant proposals
- **Market analysis** — Screen countries by population, internet penetration, GDP per capita
- **AI/ML pipelines** — Feed clean, labeled development data into models
- **Dashboards** — Power Tableau, Power BI, or custom analytics with structured data

### Output Schema

Three outputs are produced:

1. **Dataset** — Complete normalized records (one per observation)
2. **OUTPUT** (Key-Value Store) — Human-readable summary table
3. **STATS** (Key-Value Store) — Machine-readable run statistics

### Data Source

All data comes from the [World Bank Data API](https://data.worldbank.org/), which is freely available under the [Creative Commons Attribution 4.0 International License (CC BY 4.0)](https://datacatalog.worldbank.org/public-licenses#cc-by). No API key or authentication is required.

***

Built with ❤️ by [Chris The Dev](https://apify.com/wakey7dev)

# Actor input Schema

## `indicatorCodes` (type: `array`):

World Bank indicator codes to fetch. Common codes: NY.GDP.MKTP.CD (GDP), SP.POP.TOTL (Population), SI.POV.GINI (Gini index), SE.ADT.LITR.ZS (Literacy rate), IT.NET.USER.ZS (Internet users). Find more at https://data.worldbank.org/indicator

## `countryCodes` (type: `array`):

ISO 3166-1 alpha-3 country codes. Use 'all' for all countries. Examples: USA, GBR, DEU, JPN, CHN, IND, BRA, NGA. Leave empty for all countries.

## `yearRange` (type: `string`):

How many years of data to fetch per indicator

## `maxResults` (type: `integer`):

Maximum number of data points to return (across all indicators and countries)

## Actor input object example

```json
{
  "indicatorCodes": [
    "NY.GDP.MKTP.CD",
    "SP.POP.TOTL",
    "SI.POV.GINI"
  ],
  "countryCodes": [],
  "yearRange": "latest",
  "maxResults": 500
}
```

# Actor output Schema

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

Complete dataset with all normalized data points.

## `summary` (type: `string`):

Human-readable summary table of fetched indicators.

## `stats` (type: `string`):

Machine-readable run statistics.

# 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 = {
    "indicatorCodes": [
        "NY.GDP.MKTP.CD",
        "SP.POP.TOTL",
        "SI.POV.GINI"
    ],
    "countryCodes": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("wakey7dev/world-bank-normalizer").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 = {
    "indicatorCodes": [
        "NY.GDP.MKTP.CD",
        "SP.POP.TOTL",
        "SI.POV.GINI",
    ],
    "countryCodes": [],
}

# Run the Actor and wait for it to finish
run = client.actor("wakey7dev/world-bank-normalizer").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 '{
  "indicatorCodes": [
    "NY.GDP.MKTP.CD",
    "SP.POP.TOTL",
    "SI.POV.GINI"
  ],
  "countryCodes": []
}' |
apify call wakey7dev/world-bank-normalizer --silent --output-dataset

```

## MCP server setup

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

```

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/twvu1tuBdNcxh68AB/builds/2gBYy3ZxIErFw5pDL/openapi.json
