# US Energy Information Administration · Routes

Get market and financial data with US Energy Information Administration · Routes from Alexandria through one Spiral API key. Navigate the EIA API v2 route hierarchy. Given a route path (or none for the root) returns that route's metadata: child routes, frequencies with period formats, facet ids and data columns with units. Use it to find the route, frequency, facets and columns that `data` needs. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Finance
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `eia-gov/energy-data/routes`
- Page: https://spiral.ai/tools/alexandria/eia-gov/energy-data/routes

## Pricing

$0.00873 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `path` | text |  | — | Route path such as `electricity/retail-sales`. Omit or null for the top-level route list. Pattern: ^/?[a-z0-9_-]+(/[a-z0-9_-]+)*/?$\|^/?$. |
| `cursor` | text |  | — | `next_cursor` from a previous page of child routes. Pattern: ^[0-9]{1,12}$. |
| `api_key` | text |  | — | Registered EIA API key (free at https://www.eia.gov/opendata/register.php). Omitted, the workflow discovers live the public client key EIA serves inside its own data browser (two extra requests, shared quota) and falls back to api.data.gov's DEMO_KEY (10 requests/hour/IP) with a warning. Pattern: ^[A-Za-z0-9_]+$. |
| `page_size` | number | 1 to 1000 | 500 | Child routes per page (the API returns all children at once; pages are cut here). |

## Example

```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/routes",
    "input": {
      "path": "<path>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=eia-gov%2Fenergy-data%2Froutes

## Common questions

### US Energy Information Administration · Routes

**How much does US Energy Information Administration · Routes cost?**

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

**How do I use US Energy Information Administration · Routes through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "eia-gov/energy-data/routes"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use US Energy Information Administration · Routes?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use US Energy Information Administration · Routes?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

