[Integrations](https://spiral.ai/integrations) › [Instinct](https://spiral.ai/integrations/instinct) › [EIA energy observations](https://spiral.ai/integrations/instinct/eia-energy-observations)

# How to Use EIA energy observations in Instinct

Fetch dated EIA measurements, such as electricity sales, generation, demand, or natural gas storage. Use it for comparisons and calculations once you have identified the dataset and filter codes.

|  |  |
| --- | --- |
| Model | EIA energy observations |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with EIA energy observations in Instinct

- Every Monday, use EIA energy observations to check U.S. weekly working natural gas in underground storage. Report any newly available week and compare it with the corresponding week a year earlier.
- Each month, use EIA energy observations to check California residential electricity sales. When a new month appears, compare it with the same month a year earlier.
- Each morning, use EIA energy observations to compare PJM's reported demand and demand forecasts for the latest complete day available. Report the three largest absolute hourly differences.
- Every Monday at 9am: use EIA energy observations to look this up and give me the result as a table.
- Pull the latest numbers from EIA energy observations and tell me what changed since last week.

## How to set up EIA energy observations in Instinct

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

### Use the Spiral skill

1. **Send Instinct 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 Instinct. Copy it.

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

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

3. **Give Instinct the key**: When Instinct asks for the key, add it where Instinct 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 EIA energy observations**: 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": "eia-gov/energy-data/data",
    "input": {
      "route": "<route>",
      "frequency": "<frequency>"
    }
  }'
```

Then paste one of the prompts above: Instinct finds EIA energy observations on Spiral, shows the price and runs it.

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

## EIA energy observations tools and prices

- [US Energy Information Administration · Data](https://spiral.ai/tools/alexandria/eia-gov/energy-data/data) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| end |  | — | Inclusive last period in the frequency's format. |
| sort |  | — | Sort keys applied by the API. Defaults to newest period first. |
| start |  | — | Inclusive first period in the frequency's format. |
| cursor |  | — | `next_cursor` from the previous page (a row offset). Omit for the first page. Pattern: ^[0-9]{1,12}$. |
| facets |  | — | Facet filters: facet id to list of codes, e.g. {"series": ["RWTC"]} or {"stateid": ["CA"], "sectorid": ["RES"]}. |
| api_key |  | — | Registered EIA API key. Omitted, the public data-browser key is discovered live (see `routes`). Pattern: ^[A-Za-z0-9_]+$. |

## What can you do with EIA energy observations in Instinct?

Maintain a recurring briefing on electricity use or natural gas storage with EIA data. The agent can check dataset coverage and category labels, then compare newly available observations with earlier periods.

### Compare state electricity consumption

Find the retail sales dataset, resolve state and customer-sector codes, and compare monthly residential electricity sales in California, Texas, and Florida over the same period.

### Compare commercial and industrial demand for electricity

Identify the retail sales measurements and sector labels, then compare commercial and industrial electricity sales in Ohio. Calculate each sector's year-over-year change.

### Measure changes in a state's generation mix

Locate monthly generation by state and fuel, resolve the fuel categories, and calculate how Texas generation shares changed between 2023 and 2024.

### Review power plant operating history

Find the plant generation dataset and the code for Palo Verde, then compare monthly generation across 2023 and 2024 to identify seasonal changes.

### Check grid demand forecasts against reported demand

Locate hourly balancing-authority measurements and resolve PJM's reporting code. Compare reported demand with demand forecasts for a completed week and calculate the largest hourly differences.

### Compare seasonal natural gas storage

Find weekly underground storage data and its regional categories, then compare working gas levels for the same weeks in successive years.

## Overview

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

## EIA energy observations in other agents

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

## More Instinct guides

- [EIA dataset filter codes](https://spiral.ai/integrations/instinct/eia-dataset-filter-codes)
- [EODHD IPO calendar](https://spiral.ai/integrations/instinct/eodhd-ipo-calendar)
- [EIA dataset directory](https://spiral.ai/integrations/instinct/eia-dataset-directory)
- [EODHD company fundamentals](https://spiral.ai/integrations/instinct/eodhd-company-fundamentals)
- [ECB exchange rates](https://spiral.ai/integrations/instinct/ecb-exchange-rates)
- [EODHD dividend history](https://spiral.ai/integrations/instinct/eodhd-dividend-history)

## Questions about EIA energy observations in Instinct

**Can Instinct use EIA energy observations?**

Yes. Add Spiral to Instinct as an MCP server, and Instinct can find and run EIA energy observations like any built-in tool.

**How much does EIA energy observations cost in Instinct?**

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

**Do I need an Alexandria account to use EIA energy observations in Instinct?**

You need no Alexandria account. Instinct uses one Spiral API key for every tool, and Spiral runs EIA energy observations on its own Alexandria account.

**How long does it take to set up EIA energy observations in Instinct?**

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

**Does Instinct wait while EIA energy observations runs?**

EIA energy observations runs in the background. Instinct starts the run, checks on it and gives you the json when it's ready.

**What detail does EIA provide for electricity customers?**

EIA's retail sales dataset includes monthly customer counts, electricity sales, revenue, and average prices by state and customer sector.

**Does EIA update every dataset on the same schedule?**

No. EIA says its API accesses public-facing databases directly and updates constantly rather than at regular intervals.

**Can one response contain every matching observation?**

EIA caps observation responses at 5,000 rows. The total count can exceed the returned count, so larger requests need pagination or narrower filters.

**How far back does the hourly grid API go?**

EIA says historical EIA-930 submissions through the API begin January 1, 2019. This collection covers grid operations reported by balancing authorities in the Lower 48 states.

**Does hourly generation include rooftop solar?**

Hourly generation captures generators managed by, or visible to, balancing authorities. Those authorities typically do not meter distribution-system generators, so rooftop solar is often excluded.

