[Integrations](https://spiral.ai/integrations) › [dots](https://spiral.ai/integrations/dots) › [IEA country codes](https://spiral.ai/integrations/dots/iea-country-codes)

# How to Use IEA country codes in dots

Returns country names and code mappings used by IEA energy datasets, with regional aggregates identified. Use it to match countries across datasets and check coverage before comparing energy figures.

|  |  |
| --- | --- |
| Model | IEA country codes |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with IEA country codes in dots

- Each month, use IEA country codes to check whether France, Germany, Norway, and Japan appear in Monthly Electricity Statistics coverage and report changes from the previous check.
- Every Monday at 9am: use IEA country codes to look this up and give me the result as a table.
- Pull the latest numbers from IEA country codes and tell me what changed since last week.
- Check IEA country codes and summarize what you find in three bullet points.
- Pull the newest data from IEA country codes and give me the result as a table.

## How to set up IEA country codes in dots

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

### Use the Spiral skill

1. **Send dots 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 Spiral's MCP server

1. **Create an API key**: In the console, open API keys and create a key for your dot. Copy it.

2. **Send your dot this message**: Your dot reads Spiral's skill and asks for your API key.

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

3. **Give your dot the key**: When your dot asks for the key, add it where your dot keeps secrets, never in the chat itself.

### 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 IEA country codes**: 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": "iea-org/energy/countries",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: dots finds IEA country codes on Spiral, shows the price and runs it.

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

## IEA country codes tools and prices

- [IEA · Countries](https://spiral.ai/tools/alexandria/iea-org/energy/countries) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| query |  | — | Case-insensitive substring over aliases (names, ISO codes, stats codes). |
| cursor |  | — | cursor |
| page_size | 1 to 1000 | 20 | page_size |
| dataset_id |  | — | Restrict to countries covered by this dataset (MES and prices have narrower coverage). Pattern: ^[a-z0-9-]+$. |
| include_aggregates |  | — | include_aggregates |

## What can you do with IEA country codes in dots?

Maintain a recurring electricity briefing for a country watchlist using IEA's monthly series. Check available reporting periods before refreshing the comparison and summarize newly available observations.

### Compare national electricity mixes

Find an electricity dataset, check its available years, resolve France and Germany, and compare generation by source over a shared reporting window.

### Build an energy consumption benchmark

Identify the relevant energy balance series, verify country coverage and history, and compare total final consumption for Japan, Germany, and France using the returned units.

### Prepare a monthly electricity briefing

Resolve the countries in a European market watchlist, confirm the latest available period, and summarize changes in wind, solar, hydro, and nuclear generation.

### Compare fuel combustion emissions

Find the emissions dataset and its reporting window, match France and Germany to IEA country codes, and compare reported emissions by sector.

### Check a hydro generation shortfall

Check Norway's monthly electricity coverage, retrieve hydro generation for matching months across two years, and calculate the change in reported output.

### Scope an energy research project

Find datasets relevant to electricity and consumption, then compare their frequencies, available years, units, and country coverage before choosing the analysis period.

## Overview

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

## IEA country codes in other agents

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

## More dots guides

- [Grants.gov opportunity filter counts](https://spiral.ai/integrations/dots/grants-gov-opportunity-filter-counts)
- [IEA energy dataset catalog](https://spiral.ai/integrations/dots/iea-energy-dataset-catalog)
- [Grants.gov opportunity details](https://spiral.ai/integrations/dots/grants-gov-opportunity-details)
- [IEA energy dataset details](https://spiral.ai/integrations/dots/iea-energy-dataset-details)
- [Grants.gov funding opportunity search](https://spiral.ai/integrations/dots/grants-gov-funding-opportunity-search)
- [IEA energy statistics](https://spiral.ai/integrations/dots/iea-energy-statistics)

## Questions about IEA country codes in dots

**Can dots use IEA country codes?**

Yes. Add Spiral to dots as an MCP server, and dots can find and run IEA country codes like any built-in tool.

**How much does IEA country codes cost in dots?**

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

**Do I need an Alexandria account to use IEA country codes in dots?**

You need no Alexandria account. dots uses one Spiral API key for every tool, and Spiral runs IEA country codes on its own Alexandria account.

**How long does it take to set up IEA country codes in dots?**

About two minutes: create an API key, then send your dot this message, then give your dot the key.

**Does dots wait while IEA country codes runs?**

IEA country codes runs in the background. dots starts the run, checks on it and gives you the json when it's ready.

**Does every IEA dataset cover the same countries?**

No. The Energy Statistics Data Browser covers over 170 countries and regions, while Monthly Electricity Statistics advertises 47 countries. Check coverage for the dataset you intend to use.

**How often does IEA monthly electricity data change?**

Monthly Electricity Statistics is updated monthly. Use the dataset details lookup to check current availability, since the catalog's update date is not populated.

**How far back does monthly electricity history go?**

Coverage generally starts in January 2010 for OECD countries and January 2015 for non-OECD countries. Confirm the available years for the specific dataset before choosing a comparison period.

**Can I retrieve a large historical table in one extraction?**

Observation pagination stops at an offset of 200,000. Divide broad requests into smaller country or year ranges before reaching that boundary.

