[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [World Bank statistical metadata](https://spiral.ai/integrations/codex/world-bank-statistical-metadata)

# How to Use World Bank statistical metadata in Codex

Returns available country or series documentation, including definitions, sources, periodicity, and methodology. Use it to explain how a statistic was produced and whether comparisons need qualification.

|  |  |
| --- | --- |
| Model | World Bank statistical metadata |
| 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 World Bank statistical metadata in Codex

- Use World Bank statistical metadata to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from World Bank statistical metadata and tell me what changed since last week.
- Check World Bank statistical metadata and summarize what you find in three bullet points.
- Pull the newest data from World Bank statistical metadata and give me the result as a table.
- Check World Bank statistical metadata every morning and tell me only when something changed.

## How to set up World Bank statistical metadata 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 World Bank statistical metadata**: 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-worldbank-org/indicators/metadata",
    "input": {
      "id": "<id>",
      "concept": "series",
      "source_id": "<source_id>"
    }
  }'
```

Then paste one of the prompts above: Codex finds World Bank statistical metadata on Spiral, shows the price and runs it.

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

## World Bank statistical metadata tools and prices

- [World Bank Data · Metadata](https://spiral.ai/tools/alexandria/data-worldbank-org/indicators/metadata) (Alexandria): $0.00873 per call.

## What can you do with World Bank statistical metadata in Codex?

Build a country research browser with World Bank classifications, indicator descriptions, and labeled statistical observations. A coding agent can use the returned records to populate selectors and connect each displayed measure to its statistical documentation.

### Check statistics for a published article

Verify Brazil's identity and a population measure's definition, inspect methodological notes, and compare indicator observations with observations labeled by database dimensions.

### Prepare an education comparison

Choose economies and education measures, inspect their definitions and methodology, then discover the database dimensions and values needed to retrieve labeled observations.

### Validate a population data import

Check India's country record and population definition, inspect source notes, and reconcile indicator observations with database observations after resolving their dimension labels.

### Write an annotated research guide

Explain World Bank topic and classification labels alongside the available statistical documentation for measures students will use in a Brazil development report.

## Overview

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

## World Bank statistical metadata in other agents

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

## More Codex guides

- [World Bank indicator observations](https://spiral.ai/integrations/codex/world-bank-indicator-observations)
- [World Bank topics and classifications](https://spiral.ai/integrations/codex/world-bank-topics-and-classifications)
- [World Bank indicator definition](https://spiral.ai/integrations/codex/world-bank-indicator-definition)
- [Xe currency conversion](https://spiral.ai/integrations/codex/xe-currency-conversion)
- [World Bank indicator catalog](https://spiral.ai/integrations/codex/world-bank-indicator-catalog)
- [Xe currency list](https://spiral.ai/integrations/codex/xe-currency-list)

## Questions about World Bank statistical metadata in Codex

**Can Codex use World Bank statistical metadata?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run World Bank statistical metadata like any built-in tool.

**How much does World Bank statistical metadata 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 World Bank statistical metadata in Codex?**

No. Spiral runs World Bank statistical metadata on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up World Bank statistical metadata in Codex?**

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

**Does Codex wait while World Bank statistical metadata runs?**

World Bank statistical metadata runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**How broad is World Bank development data coverage?**

The World Bank's December 2024 selection guide describes World Development Indicators as covering over 1,400 indicators and 217 economies, with history reaching 1960. Those figures describe WDI, rather than every database available through the World Bank.

**Does every country have a value for every year?**

No. Some World Bank indicators come from sporadic surveys and are available only every few years, so country and year coverage varies by measure.

**Can I get regional statistics as well as country statistics?**

Yes. World Bank aggregate observations cover regions, income levels, and lending groups. Their codes can be used in the country position of a data request.

**Does a single response contain all matching results?**

Not necessarily. The upstream World Bank API defaults to 50 results per page, so larger selections require additional pages.

**Where can I check what a statistic actually measures?**

World Bank statistical metadata can include a long definition, sources, periodicity, and methodology. Indicator records also identify the source organization and source database.

