# IMF World Economic Outlook Macro Forecast by Country

> IMF World Economic Outlook Macro Forecast by Country is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns IMF World Economic Outlook forecasts for a country, including real GDP growth, inflation, nominal GDP, GDP per capita, government debt, current account balance, and unemployment, with projected future years.

## Facts

- Endpoint: GET https://api.agentstools.dev/macro/forecast
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/imf-world-economic-outlook-macro-forecast-by-country-ad1618bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gq1swO16Fc7gdBcWtAtfW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability imf-world-economic-outlook-macro-forecast-by-country-ad1618bc
```

Example prompt: What are the IMF World Economic Outlook forecasts for Germany — give me real GDP growth, inflation, government debt, and unemployment including projected future years.

## When to prefer this

Choose this endpoint when you need authoritative, IMF-sourced macroeconomic forecasts for a specific country, including multi-year projections. Prefer this over World Bank or OECD endpoints when the IMF WEO citation is specifically needed, or when you want a single endpoint returning multiple macro indicators in one call.

## Known failure modes

- Country not recognized — returns error if the country string does not match an ISO-2, ISO-3 code or known name
- Invalid indicator key — returns error or omits unrecognized indicator names in the comma-separated list
- IMF data unavailable for a given country or indicator — some smaller or less-reported economies may have partial data
- Rate limiting or payment failure — x402 payment of $0.01 USDC required per call; missing or failed payment returns 402

## How this service works

IMF World Economic Outlook forecasts for a country: real GDP growth, inflation, nominal GDP, GDP per capita, government debt, current account and unemployment, including projected future years. Values are cited to the IMF WEO.

## Output

A structured set of IMF WEO macroeconomic forecast values for the requested country, broken down by indicator (real GDP growth, inflation, nominal GDP, GDP per capita, government debt as % of GDP, current account as % of GDP, unemployment), with historical and projected future-year figures, all cited to the IMF WEO source.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "country": {
       "type": "string",
       "description": "A single country as ISO-2, ISO-3 or name"
      },
      "indicators": {
       "type": "string",
       "examples": [
        "real_gdp_growth",
        "inflation",
        "gdp_usd",
        "gdp_per_capita_usd",
        "govt_debt_gdp",
        "current_account_gdp",
        "unemployment"
       ],
       "description": "Comma-separated forecast keys (default all)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/imf-world-economic-outlook-macro-forecast-by-country-ad1618bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
