[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [IMF World Economic Outlook forecasts](https://spiral.ai/integrations/codex/imf-world-economic-outlook-forecasts)

# How to Use IMF World Economic Outlook forecasts in Codex

Returns historical figures and projections from a selected World Economic Outlook edition. Use it for annual country comparisons or forecast revisions, keeping each edition separate.

|  |  |
| --- | --- |
| Model | IMF World Economic Outlook forecasts |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with IMF World Economic Outlook forecasts in Codex

- Use IMF World Economic Outlook forecasts to compare US and German real GDP growth for 2024 through 2027 in the April 2025 edition, and build a table in this project.
- Use IMF World Economic Outlook forecasts to compare Japan's 2026 growth projection between the April 2025 and October 2025 editions, and add the calculation to this project's report.
- Use IMF World Economic Outlook forecasts to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from IMF World Economic Outlook forecasts and tell me what changed since last week.
- Check IMF World Economic Outlook forecasts and summarize what you find in three bullet points.

## How to set up IMF World Economic Outlook forecasts in Codex

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run IMF World Economic Outlook forecasts**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "data-imf-org/datasets/weo",
    "input": {
      "edition": "<edition>",
      "country_codes": [
        "<country_codes>"
      ],
      "subject_codes": [
        "<subject_codes>"
      ]
    }
  }'
```

Then paste one of the prompts above: Codex finds IMF World Economic Outlook forecasts on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## IMF World Economic Outlook forecasts tools and prices

- [IMF Data · Weo](https://spiral.ai/tools/alexandria/data-imf-org/datasets/weo) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cursor |  | — | cursor |
| year_to | 1980 to 2100 | — | year_to |
| page_size | 1 to 1000 | 100 | page_size |
| year_from | 1980 to 2100 | — | year_from |

## What can you do with IMF World Economic Outlook forecasts in Codex?

Build a country comparison table with IMF series definitions beside the figures. A coding agent can turn dataset discovery, metadata, observations, or WEO projections into documented inputs for your project's analysis.

### Country growth comparison

Find the relevant IMF datasets, inspect their series definitions, and compare annual growth figures for the United States, Germany, and Japan. Add WEO projections from a single edition to extend the comparison.

### Inflation research brief

Identify IMF inflation datasets and their available series, retrieve historical observations, and add WEO inflation projections for Brazil and Mexico. Label the historical measures and projected measures separately.

### Fiscal comparison for a budget review

Locate fiscal datasets and inspect definitions before comparing government indicators for France, Italy, and Spain. Retrieve historical values and WEO projections for the measures available across all three countries.

### External balance briefing

Find balance-of-payments datasets, check current-account series definitions, and retrieve historical observations for India and Indonesia. Add WEO current-account projections to show the outlook alongside the history.

### WEO forecast revision review

Locate WEO releases, inspect indicator definitions, and compare US and German growth projections between the April 2025 and October 2025 editions. Show the change for the same forecast year.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Codex guides](https://spiral.ai/integrations/codex)

## IMF World Economic Outlook forecasts in other agents

- [Amp](https://spiral.ai/integrations/amp/imf-world-economic-outlook-forecasts)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/imf-world-economic-outlook-forecasts)
- [Claude](https://spiral.ai/integrations/claude-desktop/imf-world-economic-outlook-forecasts)
- [Claude Code](https://spiral.ai/integrations/claude-code/imf-world-economic-outlook-forecasts)
- [Cline](https://spiral.ai/integrations/cline/imf-world-economic-outlook-forecasts)
- [Cursor](https://spiral.ai/integrations/cursor/imf-world-economic-outlook-forecasts)
- [Devin](https://spiral.ai/integrations/devin/imf-world-economic-outlook-forecasts)
- [dots](https://spiral.ai/integrations/dots/imf-world-economic-outlook-forecasts)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/imf-world-economic-outlook-forecasts)
- [Gemini](https://spiral.ai/integrations/gemini/imf-world-economic-outlook-forecasts)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/imf-world-economic-outlook-forecasts)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/imf-world-economic-outlook-forecasts)
- [goose](https://spiral.ai/integrations/goose/imf-world-economic-outlook-forecasts)
- [Grok](https://spiral.ai/integrations/grok/imf-world-economic-outlook-forecasts)
- [Grok Build](https://spiral.ai/integrations/grok-build/imf-world-economic-outlook-forecasts)
- [Hermes](https://spiral.ai/integrations/hermes/imf-world-economic-outlook-forecasts)
- [Instinct](https://spiral.ai/integrations/instinct/imf-world-economic-outlook-forecasts)
- [Manus](https://spiral.ai/integrations/manus/imf-world-economic-outlook-forecasts)
- [Muse](https://spiral.ai/integrations/muse/imf-world-economic-outlook-forecasts)
- [Muse Code](https://spiral.ai/integrations/muse-code/imf-world-economic-outlook-forecasts)
- [n8n](https://spiral.ai/integrations/n8n/imf-world-economic-outlook-forecasts)
- [Notion](https://spiral.ai/integrations/notion/imf-world-economic-outlook-forecasts)
- [OpenClaw](https://spiral.ai/integrations/openclaw/imf-world-economic-outlook-forecasts)
- [opencode](https://spiral.ai/integrations/opencode/imf-world-economic-outlook-forecasts)
- [Perplexity](https://spiral.ai/integrations/perplexity/imf-world-economic-outlook-forecasts)
- [Raycast](https://spiral.ai/integrations/raycast/imf-world-economic-outlook-forecasts)
- [VS Code](https://spiral.ai/integrations/vscode/imf-world-economic-outlook-forecasts)
- [Windsurf](https://spiral.ai/integrations/windsurf/imf-world-economic-outlook-forecasts)
- [Zapier](https://spiral.ai/integrations/zapier/imf-world-economic-outlook-forecasts)

## More Codex guides

- [IBGE statistical table search](https://spiral.ai/integrations/codex/ibge-statistical-table-search)
- [IMF dataset search](https://spiral.ai/integrations/codex/imf-dataset-search)
- [IBGE statistical table metadata](https://spiral.ai/integrations/codex/ibge-statistical-table-metadata)
- [IMF dataset structure](https://spiral.ai/integrations/codex/imf-dataset-structure)
- [IBGE statistical table data](https://spiral.ai/integrations/codex/ibge-statistical-table-data)
- [IMF economic observations](https://spiral.ai/integrations/codex/imf-economic-observations)

## Questions about IMF World Economic Outlook forecasts in Codex

**Can Codex use IMF World Economic Outlook forecasts?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run IMF World Economic Outlook forecasts like any built-in tool.

**How much does IMF World Economic Outlook forecasts cost in Codex?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need an Alexandria account to use IMF World Economic Outlook forecasts in Codex?**

No. Spiral runs IMF World Economic Outlook forecasts on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up IMF World Economic Outlook forecasts in Codex?**

About two minutes: add the hosted server, then sign in.

**Does Codex wait while IMF World Economic Outlook forecasts runs?**

IMF World Economic Outlook forecasts runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**How often does IMF update WEO?**

The full WEO database is published twice a year, in April and October. Use its edition to identify the forecast exercise behind the figures.

**How far back does WEO go, and how far ahead does it forecast?**

WEO history starts in 1980. Many indicators and country groups have five-year forecasts, while some have only two forecast years.

**Does every country have a complete WEO history?**

No. Some countries have incomplete or unavailable observations for certain years, so a country comparison may have gaps even within WEO's coverage period.

**What economic subjects does WEO cover?**

WEO includes national accounts, inflation, unemployment, balance of payments, fiscal indicators, and trade. It provides country figures and country-group aggregates.

**Why can valid IMF codes still return no observations?**

SDMX datasets need not contain every possible combination of dimension codes. Availability constraints identify which combinations are present, so valid country and indicator codes alone do not establish coverage.

