# Economic Indicators: GDP, Inflation & IMF Forecasts (`hydrocore/economic-indicators-lookup`) Actor

Get GDP, growth, inflation, unemployment, population, debt and any World Bank indicator for any country, with IMF World Economic Outlook forecasts: one clean row per country and indicator with latest value, change, history and source link. Names or ISO codes. No API key.

- **URL**: https://apify.com/hydrocore/economic-indicators-lookup.md
- **Developed by:** [Hydrocore Data](https://apify.com/hydrocore) (community)
- **Categories:** AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 indicator rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Economic Indicators: GDP, Inflation & IMF Forecasts

Get **GDP, GDP growth, inflation, unemployment, population, government debt** and any other **World Bank** indicator for any country or group, with the **IMF World Economic Outlook** estimate for this year and forecast for next year, in one clean row per country and indicator: latest value and year, previous value, change, a yearly series, the source and a link. Type country names ("South Korea", "Ivory Coast") or ISO codes ("DE", "KOR"). No API keys needed.

### ✅ What you get

- Country name, ISO3 and ISO2 codes, World Bank region and income level
- Indicator key, full name and unit
- Latest year and value, previous year and value, change and change %
- IMF estimate (this year) and forecast (next year) with the IMF edition
- Yearly series \[{year, value}] and the number of years with data
- Source, indicator code, source update date, link, summaryText, input and status

### 🏆 Why this Actor

- **One question, one row:** history (World Bank WDI) and the outlook (IMF WEO) side by side, so you do not have to merge two APIs with different units yourself (IMF billions and millions are converted to the World Bank unit).
- **Gaps filled:** where the World Bank has no value (for example Taiwan, or government debt) the IMF series is used and dataSource says so.
- **Forgiving input:** country names, aliases, ISO2 or ISO3 codes and groups (World, European Union, Euro area); presets like "inflation" or "debt to gdp", or any World Bank code.
- **Built for AI agents:** a one-sentence summaryText per row with units in words ("US$5.05 trillion"), stable camelCase fields and nulls for missing values.
- **Reliable:** if the classic World Bank API is slow, the Actor switches to the World Bank Data360 API automatically.
- **Fair billing:** unknown countries or indicators, duplicates, no-data pairs and filtered rows are free.

### 💡 Use cases

**Apify Store use cases:** Market research · Feed AI agents & RAG · Company due diligence

- AI agents and chatbots (ChatGPT, Claude, n8n, MCP): answer "what is inflation in Brazil and where is it heading?" with cited numbers
- Market research and investor memos: compare GDP, growth and debt across a country list in one table
- Sales and expansion planning: rank target markets by GDP per capita, internet users or growth
- Dashboards and Google Sheets: schedule a monthly refresh of the same indicators
- Teachers, students and journalists: quick, sourced country facts with links

### 🚀 How to use

1. Enter countries (names or ISO codes) and indicators (presets or World Bank codes), one per line.
2. Optional: change years of history, turn the series or IMF projections off, set a minimum latest year, a sort order or Max rows.
3. Run, then open **Overview**, **Summary for AI** or **History**, or export.

### ⚙️ Input

| Field | What it does |
|---|---|
| `countries` | Countries or groups: names, ISO2/ISO3 codes, "World", "European Union", "Euro area". Duplicates are returned once. |
| `indicators` | Presets: gdp, gdpGrowth, gdpPerCapita, inflation, unemployment, population, governmentDebt, currentAccount, exports, fdiInflows, lendingRate, lifeExpectancy, internetUsers, gini. Or any World Bank code such as SP.DYN.TFRT.IN. |
| `years` | Years of history to read (1-70, default 10). |
| `includeSeries` | Add the yearly series (default on). |
| `includeImfProjections` | Add the IMF estimate and forecast where the IMF publishes the indicator (default on). |
| `minLatestYear` | Keep only rows whose latest value is from this year or later. Others are free. |
| `sortBy` | input, latestValueDesc, changeDesc (both per indicator) or country. |
| `maxResults` | Most indicator rows to save and charge (default 100). Applied after sorting. |

Example input:

```json
{
  "countries": [
    "United States",
    "Germany",
    "India"
  ],
  "indicators": [
    "gdp",
    "inflation",
    "unemployment"
  ]
}
```

### ⬆️ Output

One row per country and indicator. `recordType` is `indicator` or `status` (a free row for an unknown country or indicator, or a pair with no data). Every row has the same 30 keys in the same order; missing values are `null`. The example is a real row from a test run of the current build (series shortened to 3 years here).

Overview fields:

| Field | Type | Example | Description |
|---|---|---|---|
| `countryName` | string | "Germany" | Country or group name as published by the World Bank. |
| `indicatorName` | string | "GDP (current US$)" | Full indicator name. |
| `latestYear` | integer | 2025 | Newest year with a value in the window. |
| `latestValue` | number | 5050922925047 | Value for the latest year (rounded; whole numbers above one million). |
| `unit` | string | "US$" | Unit of the values (US$, %, % of GDP, people, years, index). |
| `change` | number | 365330347242 | latestValue minus previousValue (percentage points for % indicators). |
| `changePercent` | number | 7.8 | Percent change vs the previous year; null for indicators already in % (use change). |
| `imfForecastYear` | integer | 2027 | Next year, when the IMF publishes a forecast. |
| `imfForecastValue` | number | 5661302000000 | IMF World Economic Outlook forecast for next year, in the same unit. |
| `dataSource` | string | "World Bank WDI" | World Bank WDI, or the IMF edition when the World Bank has no value (for example Taiwan or government debt). |
| `status` | string | "ok" | ok, or why there is no data. |

All 30 fields (in order): `recordType`, `countryName`, `countryCode`, `iso2Code`, `region`, `incomeLevel`, `indicatorKey`, `indicatorName`, `unit`, `latestYear`, `latestValue`, `previousYear`, `previousValue`, `change`, `changePercent`, `imfEstimateYear`, `imfEstimateValue`, `imfForecastYear`, `imfForecastValue`, `imfSource`, `yearsCount`, `series`, `dataSource`, `indicatorCode`, `sourceUpdatedDate`, `sourceUrl`, `summaryText`, `inputValue`, `status`, `scrapedAt`.

Real row from a test run of the current build:

```json
{
  "recordType": "indicator",
  "countryName": "Germany",
  "countryCode": "DEU",
  "iso2Code": "DE",
  "region": "Europe & Central Asia",
  "incomeLevel": "High income",
  "indicatorKey": "gdp",
  "indicatorName": "GDP (current US$)",
  "unit": "US$",
  "latestYear": 2025,
  "latestValue": 5050922925047,
  "previousYear": 2024,
  "previousValue": 4685592577805,
  "change": 365330347242,
  "changePercent": 7.8,
  "imfEstimateYear": 2026,
  "imfEstimateValue": 5471299000000,
  "imfForecastYear": 2027,
  "imfForecastValue": 5661302000000,
  "imfSource": "IMF World Economic Outlook (October 2026)",
  "yearsCount": 10,
  "series": [
    {
      "year": 2023,
      "value": 4562207532490
    },
    {
      "year": 2024,
      "value": 4685592577805
    },
    {
      "year": 2025,
      "value": 5050922925047
    }
  ],
  "dataSource": "World Bank WDI",
  "indicatorCode": "NY.GDP.MKTP.CD",
  "sourceUpdatedDate": "2026-11-11",
  "sourceUrl": "https://data.worldbank.org/indicator/NY.GDP.MKTP.CD?locations=DE",
  "summaryText": "Germany GDP (current US$): US$5.05 trillion in 2025, up from US$4.69 trillion in 2024 (World Bank WDI). IMF projection: US$5.47 trillion in 2026, US$5.66 trillion in 2027 (IMF World Economic Outlook (October 2026)).",
  "inputValue": "Germany / gdp",
  "status": "ok",
  "scrapedAt": "2026-11-12T22:13:54.660Z"
}
```

Views: **Overview**, **Summary for AI**, **History**, **Detailed (all fields)**. Export as JSON, CSV, Excel, XML or HTML from the Storage tab or the API (`/datasets/{id}/items?format=csv&view=overview`). The run summary (`OUTPUT` record in the key-value store) counts countries and indicators requested, rows saved, no-data rows, unknown inputs, duplicates, filtered rows, rows over the cap, source errors and the IMF edition used.

### 💰 Pricing

Competitive pricing, pay per result: **$0.002 per indicator row** on the Free plan, less on higher plans, plus the $0.0005 Actor start. The default example (3 countries x 3 indicators = 9 rows) costs about $0.02; 1,000 rows cost about $2 on Free. Status, duplicate, no-data and filtered rows are free.

| Event | What it is | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|---|
| Indicator row | One country + indicator row saved (latest value, change, IMF projection, series, source link). Status, duplicate, filtered and no-data rows are free. | $0.002 | $0.0018 | $0.0016 | $0.0015 |
| Actor start | Once per run (Apify standard start event, per GB of memory; the default 256 MB = one fee) | $0.0005 | $0.0005 | $0.0005 | $0.0005 |

### 🔁 Integrations

Works with the Apify API, MCP (AI agents), Make, n8n, Zapier, Google Sheets and webhooks. Field names are stable camelCase, so mappings do not break between runs.

### ❓ FAQ

**Where does the data come from?**

The World Bank World Development Indicators (classic API, with the Data360 API as a fallback) and the IMF World Economic Outlook DataMapper API. Both are free public sources; dataSource and sourceUrl show which one each row used.

**How fresh is it?**

Each run reads the live APIs. The World Bank updates WDI several times a year; the IMF publishes the World Economic Outlook in April and October. sourceUpdatedDate and imfSource show the edition.

**Why is the latest year not this year?**

Official annual statistics lag by about a year. That is why the IMF estimate (this year) and forecast (next year) are added next to the latest actual value.

**Which indicators have IMF projections?**

gdp, gdpGrowth, gdpPerCapita, inflation, unemployment, population, governmentDebt and currentAccount. Other indicators have null IMF fields.

**Can I use any World Bank indicator?**

Yes. Enter its code, for example SP.DYN.TFRT.IN (fertility rate). Unknown codes return free status rows (never charged).

**How do I type countries?**

Names ("Germany", "South Korea", "Ivory Coast"), 2-letter or 3-letter ISO codes ("DE", "DEU") or groups ("World", "European Union", "Euro area"). Unknown names return a free status row.

**Why does Taiwan use IMF data?**

The World Bank does not publish Taiwan separately, so the IMF series is used where the IMF has it. Indicators only the World Bank has return a free no-data row.

**What does change mean for % indicators?**

For indicators already in % (inflation, growth, unemployment, debt to GDP) change is in percentage points and changePercent is null, so you do not get a misleading "% of a %".

**What am I charged for?**

One event per indicator row saved, plus the standard $0.0005 start. Unknown inputs, duplicates, no-data pairs, filtered rows and rows over Max rows are never charged. A max-charge limit stops the run cleanly.

**Can AI agents call it?**

Yes. Through the Apify MCP server or API, an agent sends countries and indicators and gets back short rows with summaryText sentences and source links it can cite.

### Ready-made examples

- [G7 GDP, inflation and unemployment with IMF forecasts](https://apify.com/hydrocore/economic-indicators-lookup/examples/g7-economies-gdp-inflation-unemployment-imf-forecast)

### 🛟 Support

Found a problem or need a field? Open an issue on the Issues tab; we read every issue.

### Changelog

- 1.0 (2026-11-12): first release.

# Actor input Schema

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

Countries or groups, one per line: a name ("Germany", "South Korea"), a 2-letter or 3-letter ISO code ("DE", "KOR") or a group like "World", "European Union" or "Euro area". Duplicates are returned once.

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

Indicators, one per line. Presets: gdp, gdpGrowth, gdpPerCapita, inflation, unemployment, population, governmentDebt, currentAccount, exports, fdiInflows, lendingRate, lifeExpectancy, internetUsers, gini. Or any World Bank indicator code, for example "SP.DYN.TFRT.IN" (fertility rate). You get one row per country and indicator.

## `years` (type: `integer`):

How many past years to read (1-70). The latest value is the newest year with data in this window. Default 10.

## `includeSeries` (type: `boolean`):

Add the yearly values as a series list \[{year, value}] (oldest first). Turn off for latest values only.

## `includeImfProjections` (type: `boolean`):

Add the IMF World Economic Outlook estimate for this year and the forecast for next year, where the IMF publishes the indicator (gdp, gdpGrowth, gdpPerCapita, inflation, unemployment, population, governmentDebt, currentAccount).

## `minLatestYear` (type: `integer`):

Keep only rows whose latest value is from this year or later, for example 2023. Older rows are free and counted in the run summary. Empty = keep all.

## `sortBy` (type: `string`):

Row order. Sorting happens before Max rows is applied.

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

Most indicator rows to save (and charge). Status rows for unknown inputs are extra and free. Default 100.

## Actor input object example

```json
{
  "countries": [
    "United States",
    "Germany",
    "India"
  ],
  "indicators": [
    "gdp",
    "inflation",
    "unemployment"
  ],
  "years": 10,
  "includeSeries": true,
  "includeImfProjections": true,
  "sortBy": "input",
  "maxResults": 100
}
```

# Actor output Schema

## `overview` (type: `string`):

Country, indicator, latest value, change and IMF forecast.

## `text` (type: `string`):

One sentence per row with source link.

## `history` (type: `string`):

Yearly series and source details.

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

Every field for each row.

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

Run summary: countries and indicators requested, rows saved, no-data rows, unknown inputs, duplicates, filtered out, rows over the cap, source errors and the IMF edition used.

# 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": [
        "United States",
        "Germany",
        "India"
    ],
    "indicators": [
        "gdp",
        "inflation",
        "unemployment"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydrocore/economic-indicators-lookup").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": [
        "United States",
        "Germany",
        "India",
    ],
    "indicators": [
        "gdp",
        "inflation",
        "unemployment",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("hydrocore/economic-indicators-lookup").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": [
    "United States",
    "Germany",
    "India"
  ],
  "indicators": [
    "gdp",
    "inflation",
    "unemployment"
  ]
}' |
apify call hydrocore/economic-indicators-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hydrocore/economic-indicators-lookup"
        }
    }
}
```

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/iMIxa2qSCGDDd4opY/builds/BbKhjrJtUos9vADIm/openapi.json
