World Bank Indicators Scraper — $0.0005/Row · Cheapest avatar

World Bank Indicators Scraper — $0.0005/Row · Cheapest

Pricing

from $0.50 / 1,000 observation scrapeds

Go to Apify Store
World Bank Indicators Scraper — $0.0005/Row · Cheapest

World Bank Indicators Scraper — $0.0005/Row · Cheapest

Pull any of 1,500+ World Bank indicators (GDP, population, inflation, literacy, CO2, health) for 200+ countries back to 1960. No API key, no login. $0.0005 per observation, the lowest price among World Bank actors on the Store.

Pricing

from $0.50 / 1,000 observation scrapeds

Rating

0.0

(0)

Developer

Gio

Gio

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

12 days ago

Last modified

Features

Limited permissions

Share

Pull any of the 1,500+ indicators published by the World Bank (GDP, population, inflation, literacy, life expectancy, CO2 emissions, education, health and more) for 200+ countries, with time series going back to 1960. No API key, no login, no rate-limit headaches: point it at an indicator code and get clean structured JSON back.

Why use this scraper

The World Bank publishes this data for free through its own API, but that API has its own quirks (pagination, XML-by-default responses, inconsistent null handling for missing years) that most teams end up writing custom glue code around every time they need a dataset. This Actor:

  • Wraps the full World Bank Open Data catalog in one call: one indicator code, any set of countries, any year range.
  • Returns flat, ready-to-use JSON (one row per country/year/indicator), not XML or a nested API response you have to reshape yourself.
  • Needs no API key, no account, no login — the World Bank catalog is public data, and this Actor stays public too.
  • Is priced at $0.0005 per observation, the cheapest of any World Bank indicators Actor on the Apify Store.

Overview

For a given indicator code (e.g. SP.POP.TOTL for population), the Actor queries the World Bank Open Data API for the requested countries and year range, and writes one dataset row per country-per-year observation. A single run covering 50 countries over 10 years for one indicator returns up to 500 rows in well under a minute. Countries with no reported value for a given year are skipped rather than returned as a fabricated zero.

Supported inputs

FieldTypeDescription
indicatorstring (required)World Bank indicator code. Examples: SP.POP.TOTL (population), NY.GDP.MKTP.CD (GDP, current US$), FP.CPI.TOTL (CPI inflation), SE.ADT.LITR.ZS (adult literacy %). Full catalog at data.worldbank.org.
countriesstringSemicolon-separated ISO3 codes (e.g. BRA;USA;CHN;DEU), or all for every country the World Bank tracks. Default all.
startYear / endYearintegerTime window for the series. Default 2010–2024.
maxItemsintegerSafety cap on rows returned (1–50,000). Default 5,000.
debugbooleanVerbose logging for troubleshooting. Default off.

Use cases

  1. Economics and policy research — pull a clean GDP, inflation or unemployment series for a group of countries to feed directly into a notebook or statistical model, no manual CSV wrangling.
  2. Comparative country dashboards — build a dashboard that ranks countries by literacy rate, CO2 emissions per capita, or life expectancy, refreshed on a schedule.
  3. Academic studies — grab decades of a single indicator (e.g. population 1960–2024) for every country in one call instead of paginating the raw World Bank API by hand.
  4. Market-entry and macro analysis — compare GDP, inflation and population trends across candidate markets before an expansion decision.
  5. Journalism and content research — pull the exact year-by-year numbers behind a statement like "inflation in Argentina tripled since 2018" straight from the primary source, with a timestamp, instead of re-quoting a secondary article.

How it works

  1. The Actor takes the indicator code and resolves the country list: either the explicit ISO3 codes in countries, or every country the World Bank tracks when countries is all.
  2. It queries the World Bank Open Data catalog for that indicator across the requested countries and the startYear–endYear window.
  3. Each country/year pair with a reported value becomes one dataset row (country, countryCode, indicator, indicatorName, year, value, unit, decimal, obsStatus); years with no reported value for that country are not fabricated as zero and are simply skipped.
  4. Rows are capped at maxItems; for all countries with a wide year range, raise maxItems accordingly.

Input configuration — 3 examples

Mode 1 — single indicator, specific countries:

{
"indicator": "NY.GDP.MKTP.CD",
"countries": "BRA;USA;CHN;DEU",
"startYear": 2018,
"endYear": 2023
}

Mode 2 — single indicator, every country:

{
"indicator": "SP.POP.TOTL",
"countries": "all",
"startYear": 2020,
"endYear": 2024,
"maxItems": 2000
}

Mode 3 — long time series for one country:

{
"indicator": "SE.ADT.LITR.ZS",
"countries": "BRA",
"startYear": 1960,
"endYear": 2024,
"maxItems": 100
}

Output sample

Real output from a production run (indicator NY.GDP.MKTP.CD, Germany), unedited:

{
"country": "Germany",
"countryCode": "DEU",
"indicator": "NY.GDP.MKTP.CD",
"indicatorName": "GDP (current US$)",
"year": 2022,
"value": 4201021706478.62,
"unit": "",
"decimal": 0,
"obsStatus": ""
}
{
"country": "Germany",
"countryCode": "DEU",
"indicator": "NY.GDP.MKTP.CD",
"indicatorName": "GDP (current US$)",
"year": 2021,
"value": 4355251953410.78,
"unit": "",
"decimal": 0,
"obsStatus": ""
}
{
"country": "Germany",
"countryCode": "DEU",
"indicator": "NY.GDP.MKTP.CD",
"indicatorName": "GDP (current US$)",
"year": 2020,
"value": 3941398957073.94,
"unit": "",
"decimal": 0,
"obsStatus": ""
}

Key output fields

FieldTypeDescription
countrystringCountry name
countryCodestringISO3 country code
indicatorstringThe indicator code requested
indicatorNamestringHuman-readable name of the indicator
yearintegerObservation year
valuenumberThe reported value for that country/indicator/year
unitstringUnit of measure, when the World Bank publishes one for that indicator (often empty)
decimalintegerDecimal precision flag from the source data
obsStatusstringObservation status flag from the source data (usually empty)

Pricing

$0.0005 per observation (per dataset row). A run returning 1,000 rows costs $0.50. No actor-start fee, no subscription.

What makes this richer than the competition

Compared with the two closest listings for the same target on the Apify Store:

  • vs. World Bank Indicators Scraper (thirdwatch, $0.004/result on the Free tier, down to $0.002 on Diamond): this Actor charges a flat $0.0005/row regardless of plan tier, roughly 4 to 8 times cheaper for the same country/year/indicator data.
  • vs. World Bank Indicators Scraper (devilscrapes, $0.002/result on Free, $0.00176 on paid tiers): still 4 times cheaper here, with no tiered pricing to track.

Notes & limitations

  • Only one indicator code per run. To compare several indicators (e.g. GDP and population together), run the Actor once per indicator.
  • unit, decimal and obsStatus are frequently empty strings because the World Bank itself leaves them blank for most indicators — this is the source data, not a parsing gap.
  • A country/year combination with no reported value is omitted from the output rather than returned as 0 or null; absence of a row for a given year means the World Bank has no data point for it.
  • countries: "all" combined with a wide year range can produce tens of thousands of rows; raise maxItems accordingly or you will be cut off mid-series.
  • Indicator availability varies by country: smaller or newer countries can have shorter or sparser series than major economies, which is a gap in what the World Bank itself has collected, not in this Actor's extraction.

FAQ

Do I need a World Bank account or API key? No. The World Bank catalog is public data and this Actor needs no key, login or account.

Where do I find an indicator code? Browse or search at data.worldbank.org — every indicator has a short code like SP.POP.TOTL shown on its page.

Can I pull several indicators in one run? Not in a single call; run the Actor once per indicator code and combine the datasets downstream.

What happens for a country with no data for a given indicator/year? That country/year pair is simply not included in the output — no fabricated zeros or nulls.

How far back does the data go? Back to 1960 for most indicators, subject to what the World Bank itself has published for that series.

Is this the same data as the official World Bank API? Yes — it is the same underlying catalog, just flattened into one JSON row per country/year/indicator instead of the paginated, XML-by-default response the raw API returns.

Can I run this on a schedule to keep a dashboard updated? Yes. World Bank indicators are typically updated a few times a year as countries report new figures, so a weekly or monthly schedule is enough to stay current without re-paying for unchanged years.

For AI Agents & LLM Apps

This Actor is Apify MCP-compatible and can be called directly from an LLM agent:

  • Via Apify MCP (mcp.apify.com): add gio21/worldbank-scraper as a tool and pass {"indicator": "SP.POP.TOTL", "countries": "BRA;USA", "startYear": 2020, "endYear": 2024} as the call arguments.
  • Via API (no MCP needed):
curl -X POST "https://api.apify.com/v2/acts/gio21~worldbank-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"indicator": "NY.GDP.MKTP.CD", "countries": "BRA;USA;CHN", "startYear": 2020, "endYear": 2024}'

Disclaimer

This Actor reads publicly published statistics from the World Bank Open Data catalog (CC-BY 4.0 licensed). It is an independent tool and is not affiliated with, endorsed by, or sponsored by the World Bank Group.

SEO Keywords

world bank scraper, world bank api, world bank indicators data, gdp data api, population data by country, world bank open data scraper, economic indicators api, country statistics scraper, world bank data extraction, macroeconomic data api