Register for an EIA API key and understand the v2 request structure

domain: www.eia.gov · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Go to the EIA Open Data page and register for a free API key; EIA emails the key to the address provided.
  2. Build requests against the v2 base URL, appending your api_key as a query parameter.
  3. Request a parent route without /data to discover its child routes and available facets/frequency options.
  4. Add /data to the route once you've identified the right dataset, and specify one or more data[] columns to receive values.
  5. Use facets[...] parameters to filter (e.g., by state or sector) and a frequency parameter to set periodicity.

Known gotchas

Related routes

query the EIA API v2 to discover valid facet values (e.g. sectorid, stateid, fueltypeid) for an electricity data route before filtering a request
api.eia.gov · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans