Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaFinanceAvailable now

US Energy Information Administration · Routes

eia-gov/energy-data/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.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
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

FieldKindDefaultDescription
pathtext—

Route path such as electricity/retail-sales. Omit or null for the top-level route list. Pattern: ^/?[a-z0-9_-]+(/[a-z0-9_-]+)*/?$|^/?$.

cursortext—

next_cursor from a previous page of child routes. Pattern: ^[0-9]{1,12}$.

api_keytext—

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_sizenumber
1 to 1000
500

Child routes per page (the API returns all children at once; pages are cut here).

Same request in code

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>"
    }
  }'

Frequently asked questions

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.