# World Bank Indicators — Country Data & Revisions (`abdulwhab95/world-bank-country-indicator-monitor`) Actor

Select country and indicator codes plus years. Export annual GDP, population or other World Development Indicators, and detect revised or new country-year values. Includes source attribution.

- **URL**: https://apify.com/abdulwhab95/world-bank-country-indicator-monitor.md
- **Developed by:** [ABDULWAHAB NASER RASHED ALQARAWI](https://apify.com/abdulwhab95) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 country-year indicators

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?

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 — Country Data & Revisions

Select country and indicator codes plus years. Export annual GDP, population or other World Development Indicators, and detect revised or new country-year values. Includes source attribution.

No source API key or external AI subscription is required. Export results as JSON, CSV or Excel; JSON keeps nested fields intact.

### Start with a working example

```json
{
  "countries": [
    "SA",
    "KW"
  ],
  "indicators": [
    "NY.GDP.MKTP.CD"
  ],
  "startYear": 2020,
  "endYear": 2025,
  "maxResults": 3,
  "maxPages": 1
}
```

### Supported scope

World Development Indicators (source 2) annual observations only; not market quotes or forecasts. Up to 20 country codes, 10 indicators and 10 pages per indicator. Missing values are skipped unless includeMissing is enabled; zero is preserved. Units can be null; the indicator title gives context. No invented units, currencies or growth rates. Data source: World Bank WDI, CC BY 4.0; retain attribution and consult source metadata for exceptions.

Source documentation: https://datahelpdesk.worldbank.org/knowledgebase/articles/889392-about-the-indicators-api-documentation

### Real output example

The following values came from a real test run; values may change.

| country | indicator | year | value | unit | sourceUrl |
| --- | --- | --- | --- | --- | --- |
| Kuwait | GDP (current US$) | 2025 | 157209026926.418 | null | https://data.worldbank.org/indicator/NY.GDP.MKTP.CD?locations=KW |
| Kuwait | GDP (current US$) | 2024 | 160903106639.233 | null | https://data.worldbank.org/indicator/NY.GDP.MKTP.CD?locations=KW |

### Pricing

**$1 per 1,000 delivered country-year indicator records**, plus **$0.001 per run start** at 512 MB–1 GB. Native Apify pay-per-event; one result event per successfully delivered row, with no separate automatic dataset-row event. Empty runs still have a start charge. Platform terms and the pricing tab apply. Set Maximum cost per run as well as maxResults. Failed sources do not produce billed error rows.

### Monitoring and limits

Set `onlyChanges: true` and a `stateStoreName` such as `worldbank-monitor-state`. First run emits NEW; later runs skip unchanged records and emit UPDATED for changes. Use a distinct store for each monitor, and do not overlap runs sharing the same state. State retains up to 10,000 recent fingerprints; evicted records can appear NEW again. No deletions are inferred from incomplete pages. Only successfully delivered results update state.

`maxResults` caps delivered rows; unchanged rows can still require source requests. `maxPages`, source list limits, `maxRequests` (up to 300), a 240-second processing deadline, and a 40 MB download budget bound work. `RUN_REPORT` shows counts, errors, unchanged skips and truncation warnings. PARTIAL means some sources failed; successful empty searches and unchanged monitors can return zero rows. Access restrictions and rate limits are reported, not bypassed.

This Actor only reads public data. It does not install packages, execute external code, send customer messages or create schedules. You can save an Apify Task and schedule it yourself. Not affiliated with or endorsed by the source platform.

### عربي

أدخل المصادر أو الكلمات المطلوبة، وحدد عدد النتائج وحد الصرف. تحصل على بيانات فعلية قابلة للتصدير. خيار «التغييرات فقط» يقارن بالتشغيل السابق ضمن سجل تسميه أنت. المعلومات غير المتاحة تبقى فارغة؛ ما نختلق بيانات. لا يوجد ضمان دخل أو نتائج بحث شاملة.

# Actor input Schema

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

Country codes (ISO 2 or 3 letters). See the README for source coverage and limits.

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

WDI indicator codes. See the README for source coverage and limits.

## `startYear` (type: `integer`):

First year. See the README for source coverage and limits.

## `endYear` (type: `integer`):

Last year. See the README for source coverage and limits.

## `includeMissing` (type: `boolean`):

Include missing observations. See the README for source coverage and limits.

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

Maximum delivered results. See the README for source coverage and limits.

## `maxRequests` (type: `integer`):

Maximum HTTP requests. See the README for source coverage and limits.

## `maxPages` (type: `integer`):

Maximum pages per source. See the README for source coverage and limits.

## `onlyChanges` (type: `boolean`):

First run returns NEW. Later runs with the same named store skip unchanged rows. Keep separate store names for separate monitors; do not overlap runs.

## `stateStoreName` (type: `string`):

Optional named key-value store, required with onlyChanges. Use 3–61 letters, digits or hyphens, starting with a letter or digit. Keep separate monitors in separate stores.

## Actor input object example

```json
{
  "countries": [
    "SA",
    "KW"
  ],
  "indicators": [
    "NY.GDP.MKTP.CD"
  ],
  "startYear": 2020,
  "endYear": 2025,
  "includeMissing": false,
  "maxResults": 100,
  "maxRequests": 100,
  "maxPages": 2,
  "onlyChanges": false
}
```

# Actor output Schema

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

No description

## `runReport` (type: `string`):

No description

# 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 = {
    "countries": [
        "SA",
        "KW"
    ],
    "indicators": [
        "NY.GDP.MKTP.CD"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("abdulwhab95/world-bank-country-indicator-monitor").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 = {
    "countries": [
        "SA",
        "KW",
    ],
    "indicators": ["NY.GDP.MKTP.CD"],
}

# Run the Actor and wait for it to finish
run = client.actor("abdulwhab95/world-bank-country-indicator-monitor").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 '{
  "countries": [
    "SA",
    "KW"
  ],
  "indicators": [
    "NY.GDP.MKTP.CD"
  ]
}' |
apify call abdulwhab95/world-bank-country-indicator-monitor --silent --output-dataset

```

## MCP server setup

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

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/gF2bzCribqEDwj9gN/builds/WWoX75YjOXGm61mhF/openapi.json
