How to Use IEA country codes in Perplexity
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.
Prompts to try with IEA country codes in Perplexity
Copy an example into Perplexity, or ask in your own words.
Use IEA country codes to find France, Germany, and Japan and show their IEA names and three-letter country codes.
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 Perplexity
Pick the way that suits you. Each takes about two minutes.
Use the Perplexity connector
- Add a remote connector
In Perplexity, open Plugins in the sidebar (or Customize › Connectors if you don't see Plugins yet). Choose Add custom › Add MCP connector, then Remote. Name it Spiral and paste this MCP server URL:
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Select the Spiral card on the Plugins page to start sign-in. Spiral opens: sign in, pick the organization and click Authorize. No API key.
Use the Spiral skill
- Send Perplexity this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run IEA country codes
One request; the result comes back by polling or a webhook.
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: Perplexity finds IEA country codes on Spiral, shows the price and runs it.
IEA country codes providers and prices
Spiral runs IEA country codes through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Perplexity for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Page size | 1 to 1000 | 20 | page_size |
| Include aggregates | on or off | include_aggregates |
Every API field of IEA · Countries is on its tool page: open its card above.
What can you do with IEA country codes in Perplexity?
Create an energy comparison brief for countries such as France and Germany from IEA data. Explain the reporting window and units alongside the figures so the comparison is easy to assess.
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.
More on IEA country codes and Perplexity
Overview
IEA country codes in other agents
Questions about IEA country codes in Perplexity
Can Perplexity use IEA country codes?
Yes. Add Spiral to Perplexity as an MCP server, and Perplexity can find and run IEA country codes like any built-in tool.
How much does IEA country codes cost in Perplexity?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Perplexity plan is separate.
Do I need an Alexandria account to use IEA country codes in Perplexity?
No. Spiral runs IEA country codes on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up IEA country codes in Perplexity?
About two minutes: add a remote connector, then sign in to Spiral and approve.
Does Perplexity wait while IEA country codes runs?
IEA country codes runs in the background. Perplexity 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.
Start using IEA country codes in Perplexity
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Perplexity:
set up https://spiral.ai/SKILL.md


