World Bank Indicators API Scraper - GDP, Inflation by Country avatar

World Bank Indicators API Scraper - GDP, Inflation by Country

Pricing

$1.00 / 1,000 data points

Go to Apify Store
World Bank Indicators API Scraper - GDP, Inflation by Country

World Bank Indicators API Scraper - GDP, Inflation by Country

Scrape World Bank development indicators (GDP, inflation, unemployment, trade, population + 1,400 more) for any country and year as clean JSON or CSV. No API key. Works in Claude, ChatGPT and any MCP agent for economic data analysis.

Pricing

$1.00 / 1,000 data points

Rating

0.0

(0)

Developer

The Mine Works

The Mine Works

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Share

World Bank Indicators — GDP, Inflation, Trade & More by Country

Pull World Bank development indicators — GDP, GDP per capita, inflation, unemployment, exports/imports, population, and 1,400+ more — for any country and year range, as clean structured JSON. The authoritative source for macro and development data, with no API key. Built for economics, finance, market research, and data pipelines.

Keywords: World Bank API, economic indicators, GDP by country, inflation data, development indicators, macro data, country statistics API.


Why this actor

The World Bank publishes the World Development Indicators — the standard reference for cross-country macro and development data. Its API is open but returns a [metadata, data] envelope with paged results and null-padded years. This actor handles paging and null-filtering and gives you one clean record per data point. It pairs with our Global Trade Data actor (World Bank WITS) for a complete macro + trade picture.

  • 1,400+ indicators — anything in the World Development Indicators.
  • Any country, any year range — single country, a list, or all.
  • Clean output — country, ISO3, indicator id + name, year, value.
  • No API key — official World Bank API.

Common indicator codes

IndicatorCode
GDP (current US$)NY.GDP.MKTP.CD
GDP per capita (current US$)NY.GDP.PCAP.CD
GDP growth (annual %)NY.GDP.MKTP.KD.ZG
Inflation, consumer prices (annual %)FP.CPI.TOTL.ZG
Unemployment (% of labor force)SL.UEM.TOTL.ZS
Exports of goods & services (current US$)NE.EXP.GNFS.CD
Imports of goods & services (current US$)NE.IMP.GNFS.CD
Population, totalSP.POP.TOTL
Foreign direct investment, net inflowsBX.KLT.DINV.CD.WD

(Browse all at data.worldbank.org.)


Input

FieldTypeDefaultDescription
countriesstring[]["IN","US","CN"]ISO country codes, or all.
indicatorsstring[]["NY.GDP.MKTP.CD"]World Bank indicator codes.
yearFrom / yearTointeger2015 / 2023Year range.
maxResultsinteger1000Max data points.

Example

{ "countries": ["IN","US","CN","BR"], "indicators": ["NY.GDP.MKTP.CD","FP.CPI.TOTL.ZG"], "yearFrom": 2010, "yearTo": 2023, "maxResults": 2000 }

Output

{
"country": "China",
"country_iso3": "CHN",
"indicator_id": "NY.GDP.MKTP.CD",
"indicator": "GDP (current US$)",
"year": "2022",
"value": 18316765021690.2,
"scraped_at": "2026-06-12T00:00:00.000Z"
}

A final {"_type":"summary"} record reports how many data points were returned.


Pricing

First 25 data points free per account, then $0.001 per point ($1 per 1,000). Zero charge on empty runs. No monthly rental, no API key.


FAQ

Do I need a key? No — the World Bank API is fully open.

How many indicators? 1,400+ in the World Development Indicators.

Where do I find indicator codes? Browse data.worldbank.org, or use the common ones in the table above.

Multiple countries/indicators at once? Yes — pass lists of each; the actor fetches every combination over your year range.

How far back does the data go? Most indicators are available from 1960. Set yearFrom to any year from 1960 onward. Earlier years may have gaps for developing economies but are included where the World Bank has reported data.

Can I automate regular refreshes? Yes — schedule the actor on Apify to run monthly or quarterly and you will get an up-to-date dataset automatically. Pairs well with our Global Trade Data actor for a full macro picture.

Use in Claude, ChatGPT & any MCP agent

This actor is also a Model Context Protocol (MCP) server tool — call it directly from Claude, ChatGPT, Cursor, Windsurf, or any MCP-compatible AI agent. The agent only pays for results delivered (same pay-per-result model).

  • Per-actor MCP endpoint: https://mcp.apify.com/?tools=themineworks/worldbank-indicators
  • Full Mine Works MCP server (all tools): https://the-mine-works-mcp.hatchable.site/api/mcp
// Call this actor as a tool via apify-client (Node)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('themineworks/worldbank-indicators').call({ /* input from the table above */ });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);