Free APIOpen DataAPI keyOfficial
EIA Open Data API (v2)
US energy: prices, production, electricity, free key
The U.S. Energy Information Administration's Open Data API v2 serves energy statistics: electricity generation and prices, petroleum and natural gas, coal, renewables, CO2 emissions, and international energy data. It is a RESTful, tree-structured API returning JSON. A free API key is required.
Free tier
Free keyRate limits
Not published; responses capped at 5,000 rows per request (paginate with offset/length)Auth
API keyBase URL
https://api.eia.gov/v2What you'd build with it
- Pull electricity or fuel prices into an energy/finance tool
- Track US natural-gas or petroleum production trends
- Build a state-by-state energy dashboard
- Feed renewable-generation data into climate/ESG automations
Key endpoints
- GET
/{route}/data?api_key={KEY}&data[]={metric}Fetch data for a route (e.g. electricity/retail-sales) - GET
/{route}?api_key={KEY}Browse a route's children, facets and metadata - GET
/{route}/facet/{id}?api_key={KEY}List allowed facet (filter) values for a route
Members
Members get the runnable recipe
Sign in free to copy the example request, see a sample response, and read the gotchas.
Tags
energygovernmentfinanceopen-data