# World Bank Indicators Export

> World Bank data download for GDP, population and other WDI indicators. Pick countries and years. Get long or wide tables with sources. No API key.

URL: https://cliqtomedia.com/actors/world-bank-indicators-export/

Category: Government & open data · Status: coming soon · Apify profile: https://apify.com/cliqtomedia?fpr=cliqto

Export yearly World Bank data for the countries and indicators you pick. Choose a long table or a wide table. Missing values stay empty, so nothing is guessed.

## How to use it: 3 steps

1. **Follow us on Apify.** The tool is built and waits in the queue for the Apify Store. Apify is the cloud platform where our tools run.
2. **Paste your input and press Start.** No code needed: you fill in a form (the input). It already has a working example. For example: `US` in Countries and regional aggregates. Each start is one run.
3. **Download the results.** When the run ends, the results are in a table (the dataset). Open Output, press Export and pick Excel or CSV. JSON and the API are there too.

## What it does

Export annual World Bank data for the countries, indicators and years you choose. Get a long or wide table with values, missing data and source details from World Development Indicators (WDI). No API key is needed.

- Gets annual data from the official World Bank API, source 2 (WDI).
- Supports country codes and regional aggregate codes, such as `US`, `BRA`, `WLD` and `EAS`.
- Returns long tables or wide country-year tables.
- Keeps missing values as `null`, or filters them out.
- Gets the latest annual periods with `mostRecentValues`.
- Adds indicator descriptions, data providers, source links and the database update date.



## Price

Prices will be shown after release.

## Questions

### Is this an official World Bank tool?

No. It uses the official World Bank API, but it is not a World Bank product.

### How many countries can I add?

Up to 20 countries and 20 indicators per run, for up to 30 years.

### Can I get only the latest values?

Yes. Use the most recent values setting to get the latest years.

### Do I need an API key?

No. The World Bank data is free to access.

## Data fields

- `recordType` (string): long or wide row
- `country` (object): World Bank ISO3 code, ISO2 code, name, isAggregate flag
- `indicator` (object): Long only: code, name, unit (may be empty), sourceNote and sourceOrganization
- `year` (integer): Calendar year
- `value` (number): Long only: provider value or explicit missing null
- `decimal` (integer): Long only: provider display precision, not value rounding
- `obsStatus` (string): Long only: provider observation status; empty means no flag
- `values` (object): Wide only: indicator codes mapped to numeric or null values; absent means series was not returned
- `metadata` (object): Wide only: per-indicator metadata, decimal, obsStatus, source, update date, sourceUrl
- `provider` (string): World Bank
- `source` (object): Source 2 World Development Indicators
- `lastUpdated` (string): Provider database update date; not an observation release date
- `sourceUpdatedAt` (string): Same provider date as lastUpdated
- `fetchedAt` (string): UTC retrieval timestamp
- `sourceUrl` (string): Long only: exact official API response URL
- `license` (string): Default CC BY 4.0 with exceptions and additional terms; check indicator data providers
- `licenseUrl` (string): Official World Bank dataset terms

## Input settings

- `countries` (array, required): 1–20 ISO2 or ISO3 country codes or World Bank aggregate codes, for example US, BRA, WLD or EAS. All-country export is not supported. Duplicate aliases resolve to one country.
- `indicators` (array, required): 1–20 annual World Development Indicators codes, source 2. For example NY.GDP.MKTP.CD and SP.POP.TOTL. Other World Bank databases are outside this Actor.
- `startYear` (integer): First year, inclusive. 1960–current year. At most 30 years together with endYear. Ignored when mostRecentValues is above zero.
- `endYear` (integer): Last year, inclusive, at most current year. Must follow startYear. Ignored when mostRecentValues is above zero.
- `format` (string): Long: one country × indicator × year per row. Wide: one country × year per row, with values and per-indicator metadata objects. Price counts observations in both formats.
- `mostRecentValues` (integer): 0 uses the year range. 1–30 asks World Bank for the latest N annual periods (MRV), including null observations. This is not the latest N non-empty values.
- `includeNullValues` (boolean): Keep explicit provider null observations. False drops them. Null is never replaced with zero. Filtered observations are not billed.
- `maxObservations` (integer): Stop at 1–12000 retained observations across all series, including nulls when kept. Wide rows can contain several observations. A truncated export reports partial.

## Step by step on Apify

1. Keep the example input in the form: five countries, GDP and population, 2015–2024.
2. Click Start. Use the default 256 MB and 300-second timeout.
3. Open the Dataset. The example returns 100 observations.
4. Download JSON, CSV, Excel or a table from Apify. For wide data, JSON keeps the nested values and metadata most clearly.

## Use cases

- Compare GDP and population across countries.
- Build a country or regional dashboard.
- Download a clear data table for a report or class project.
- Feed annual WDI observations into a spreadsheet or data warehouse.

## Tips

- Find indicator codes on the World Bank indicator list first.
- Use region codes like WLD or EAS for world and regional totals.
- Use wide format for one row per country and year.

## Limits



- Maximum 20 countries/aggregates × 20 indicators × 30 annual years, up to 12,000 retained observations.
- Annual WDI data only, from 1960 to the current year. No other World Bank source databases.
- All-country downloads, monthly/quarterly series and historical data vintages are outside this Actor.
- Regional codes give provider aggregates; they do not expand to their member countries.
- Latest periods can contain nulls. New annual figures can arrive with a delay. Data is not real-time.
- A typo in some codes, `maxObservations` or Maximum cost per run gives `partial`, and the run still succeeds. With the cost limit, `statusReason` is `CHARGE_LIMIT`; saved rows are complete observations and are charged.
- A source outage or changed response format is an error, not a successful empty export. The run is marked failed. Long format saves rows after each source page, so rows saved before the failure stay in the Dataset; the summary shows `partial` with `statusReason` `SOURCE_ERROR`. Wide format saves rows after the source scan, so a failure leaves no wide rows.
- If Apify moves or reboots the run, the run continues on the new server and skips observations that are already saved. While the run is moving, `RUN_SUMMARY` shows `partial` with `statusReason` `MIGRATING`; the continued run replaces it. Each charge is recorded before its rows are saved and settled once after a restart. If it cannot be confirmed whether a charge went through, the Actor does not charge it again, so in rare cases saved observations may be left uncharged.

## Sample result

```json
{
  "recordType":"long",
  "country":{"code":"BRA","iso2":"BR","name":"Brazil","isAggregate":false},
  "indicator":{"code":"SP.POP.TOTL","name":"Population, total","unit":""},
  "year":2024,
  "value":211998573,
  "decimal":0,
  "obsStatus":"",
  "source":{"id":"2","name":"World Development Indicators"},
  "provider":"World Bank",
  "lastUpdated":"2026-10-08",
  "sourceUpdatedAt":"2026-10-08"
}
```

## Similar tools

- [EU TED Tenders Scraper & Monitor](https://cliqtomedia.com/actors/eu-ted-tenders-scraper/)
- [UK Bank Holidays & Business Day Calculator](https://cliqtomedia.com/actors/uk-bank-holidays-business-days/)
- [UK Postcode Lookup](https://cliqtomedia.com/actors/gb-postcode-lookup/)
- [USAspending Federal Awards & Recipient Monitor](https://cliqtomedia.com/actors/usaspending-federal-awards-monitor/)
- [VIN Decoder & Vehicle Recalls](https://cliqtomedia.com/actors/vin-decoder-vehicle-recalls/)
- [FDA Recalls & Enforcement Monitor](https://cliqtomedia.com/actors/fda-recalls-enforcement-monitor/)
