# IMF Forecasts: GDP, Inflation and Debt by Country (`scrapemint/imf-economic-forecasts`) Actor

The IMF's World Economic Outlook figures and projections for around 230 countries and blocs: GDP growth, inflation, government debt, unemployment and more, with each year marked as observed or forecast. Keyless, no browser and no proxy.

- **URL**: https://apify.com/scrapemint/imf-economic-forecasts.md
- **Developed by:** [Ken M](https://apify.com/scrapemint) (community)
- **Categories:** Business, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 data rows

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## IMF Economic Forecasts

The IMF's World Economic Outlook numbers for around 230 countries and blocs: GDP growth, inflation, government debt, unemployment and more, going back to 1980 and forward through the IMF's own projections.

Every row says whether the year is an observed figure or a forecast, so you never have to guess which is which.

No login, no API key, no proxy.

### What you get

One row per indicator per country per year:

```json
{
  "indicator": "NGDP_RPCH",
  "indicatorLabel": "Real GDP growth",
  "unit": "Annual percent change",
  "entity": "United Kingdom",
  "entityCode": "GBR",
  "entityType": "country",
  "year": 2027,
  "value": 1.3,
  "isProjection": true,
  "weoVintage": "World Economic Outlook (April 2026)"
}
```

### Indicators

Over 130 are available. The common ones:

| Code | Indicator | Unit |
| --- | --- | --- |
| `NGDP_RPCH` | Real GDP growth | annual percent change |
| `PCPIPCH` | Inflation, average consumer prices | annual percent change |
| `GGXWDG_NGDP` | General government gross debt | percent of GDP |
| `LUR` | Unemployment rate | percent |
| `BCA_NGDPD` | Current account balance | percent of GDP |

### Input

| Field | Description |
| --- | --- |
| `indicators` | IMF indicator codes |
| `countries` | ISO3 codes such as `USA`, or full names. Empty means every country |
| `fromYear` / `toYear` | Year range. Data starts 1980, projections run to 2031 |
| `includeAggregates` | Include blocs such as World and Advanced economies |
| `maxRows` | Total rows returned (default 300) |

### Examples

Growth and inflation for the G7 through the forecast horizon:

```json
{ "indicators": ["NGDP_RPCH","PCPIPCH"], "countries": ["USA","GBR","DEU","FRA","ITA","JPN","CAN"], "fromYear": "2025" }
```

Government debt for every country, latest projection year:

```json
{ "indicators": ["GGXWDG_NGDP"], "countries": [], "fromYear": "2031", "toYear": "2031", "maxRows": 250 }
```

World and bloc aggregates:

```json
{ "indicators": ["NGDP_RPCH"], "countries": ["WEOWORLD","ADVEC"], "includeAggregates": true }
```

### How the forecast flag works

The API does not mark which years are projections, so it is derived from the release the data came from. The metadata names a vintage such as "World Economic Outlook (April 2026)", and every year from that vintage year onward is the IMF's forecast rather than an observed outcome. The vintage is on every row so you can see exactly which release you are reading.

Because of that, `isProjection` follows the IMF's publishing cycle rather than the calendar. A figure for the current year is a projection even though the year is underway, which is how the IMF itself presents it.

### Things worth knowing

The IMF publishes blocs such as World, Advanced economies and Euro area in the same list as countries. They are excluded by default so an aggregate is never mistaken for a country, and when included they are labelled `group` or `region`.

Units differ between indicators, so a growth rate and a debt ratio are not comparable numbers. Every row carries its own unit.

A year the IMF has not published comes back as `null`, never as a zero.

The World Economic Outlook is released about twice a year, so this data changes far less often than a market feed.

### Who it's for

Analysts and journalists writing country briefs, economists comparing forecasts, fintech dashboards, and anyone who needs the IMF's outlook without scraping the PDF. Complements the World Bank based **World Economic Indicators Scraper**, which is historical rather than forward looking.

### Pricing

Pay per data row. The first 2 rows of every run are free so you can validate the output before you pay.

# Actor input Schema

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

IMF indicator codes. Common ones: NGDP\_RPCH (real GDP growth), PCPIPCH (inflation), GGXWDG\_NGDP (government gross debt, percent of GDP), LUR (unemployment rate), BCA\_NGDPD (current account, percent of GDP). Over 130 exist.

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

ISO3 codes such as USA, GBR, DEU, or full names. Leave empty for every country. Codes match exactly; names match partially.

## `fromYear` (type: `string`):

Earliest year to return, e.g. 2020. Data starts in 1980.

## `toYear` (type: `string`):

Latest year to return. Projections currently run to 2031.

## `includeAggregates` (type: `boolean`):

The IMF publishes aggregates such as Advanced economies and Euro area alongside countries. They are excluded by default so a bloc is never mistaken for a country.

## `maxRows` (type: `integer`):

Total rows to return.

## Actor input object example

```json
{
  "indicators": [
    "NGDP_RPCH",
    "PCPIPCH"
  ],
  "countries": [
    "USA",
    "Brazil"
  ],
  "fromYear": "2024",
  "toYear": "2031",
  "includeAggregates": false,
  "maxRows": 300
}
```

# Actor output Schema

## `rows` (type: `string`):

GDP growth, inflation, government debt, unemployment and more by country and year, each marked as observed or projected and tagged with its WEO vintage.

# 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 = {
    "indicators": [
        "NGDP_RPCH",
        "PCPIPCH",
        "GGXWDG_NGDP",
        "LUR"
    ],
    "countries": [
        "USA",
        "GBR",
        "DEU",
        "CHN",
        "IND"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapemint/imf-economic-forecasts").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 = {
    "indicators": [
        "NGDP_RPCH",
        "PCPIPCH",
        "GGXWDG_NGDP",
        "LUR",
    ],
    "countries": [
        "USA",
        "GBR",
        "DEU",
        "CHN",
        "IND",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapemint/imf-economic-forecasts").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 '{
  "indicators": [
    "NGDP_RPCH",
    "PCPIPCH",
    "GGXWDG_NGDP",
    "LUR"
  ],
  "countries": [
    "USA",
    "GBR",
    "DEU",
    "CHN",
    "IND"
  ]
}' |
apify call scrapemint/imf-economic-forecasts --silent --output-dataset

```

## MCP server setup

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

```

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/albSKZ7Rs8QiiH1Cg/builds/lKrvh7onCODZHNrsf/openapi.json
