# IMF GDP & Macroeconomic Indicators API

> IMF GDP & Macroeconomic Indicators API is a paid API for AI agents from global.memoryapi.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Retrieves IMF GDP growth, inflation, government debt, current account balance, and GDP per capita for 180+ countries.

## Facts

- Endpoint: GET https://global.memoryapi.org/x402/global/gdp
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/global-memoryapi-org-589c4548
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hfmDj2YQOtN2haz7huswC

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 global-memoryapi-org-589c4548
```

Example prompt: Pull the IMF macroeconomic indicators for Brazil — I need GDP growth, inflation, government debt, current account balance, and GDP per capita.

## When to prefer this

Choose this endpoint when you need authoritative IMF macroeconomic data (GDP growth, inflation, government debt, current account, GDP per capita) for a broad set of countries (180+). Prefer this over World Bank or OECD endpoints when IMF-specific figures are required, or when coverage of emerging and developing economies is important. Ideal for economic analysis, country risk assessment, financial modeling, and policy research.

## Known failure modes

- Country not found or unsupported — returns error for countries outside the 180+ covered
- Invalid country code or name format — malformed request returns 400-style error
- Data not available for requested year — some indicators may be missing for certain periods
- Payment failure — x402 micropayment not processed, request rejected
- Rate limiting — too many requests in a short period

## How this service works

Global macroeconomic data from IMF, World Bank, and OECD. GDP growth, inflation, interest rates, and development indicators for 180+ countries. Pay-per-request via x402 protocol on Base mainnet.

## Output

Returns IMF-sourced macroeconomic data for the requested country or countries, including GDP growth rate, inflation rate, government debt as % of GDP, current account balance, and GDP per capita, drawn from the IMF's dataset covering 180+ countries.

## Example request

```json
{
 "year": "2023",
 "countries": "USA,CHN,DEU,GBR,JPN",
 "indicator": "NGDP_RPCH"
}
```

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "properties": {
    "method": {
     "type": "string",
     "enum": [
      "GET"
     ]
    }
   },
   "required": [
    "method"
   ]
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {
  "data": [
   {
    "code": "USA",
    "unit": "%",
    "value": 2.8,
    "country": "United States"
   }
  ],
  "year": "2024",
  "count": 8,
  "source": "IMF World Economic Outlook",
  "success": true,
  "indicator": "NGDP_RPCH",
  "indicator_label": "Real GDP Growth (%)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/global-memoryapi-org-589c4548/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from global.memoryapi.org](https://www.zero.xyz/host/global.memoryapi.org/llms.txt)
