U.S. Energy Information Administration API
eia.gov
US Energy Information Administration - petroleum, natural gas, electricity, coal, and energy forecasts.
- Actions
- 10
- Category
- Finance
- Login
- Not required
- Output
- JSON
Call the U.S. Energy Information Administration API
Submit a task, then poll the job until it settles. This example runs eia_coal.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "eia_coal",
"params": {
"sector": "<sector>",
"limit": 10
}
}'10 actions on eia.gov
Read
Coal Data
eia_coalread2 credits / callReturns quarterly US coal consumption, sulfur, ash, and heat content by sector.
- sector
- string
- limit
- integer
- api_key
- string
Crude Oil Imports
eia_crude_oil_importsread3 credits / callReturns monthly US crude oil imports by country of origin.
- origin
- string
- limit
- integer
- api_key
- string
Electricity Generation
eia_electricity_generationread3 credits / callReturns monthly US electricity generation by fuel type including coal, gas, nuclear, wind, and solar.
- fuel
- string
- limit
- integer
- api_key
- string
Electricity Prices
eia_electricity_pricesread2 credits / callReturns monthly US electricity retail prices, revenue, sales, and customers by state and sector.
- state
- string
- sector
- string
- limit
- integer
- api_key
- string
Energy Prices
eia_energy_pricesread2 credits / callReturns commodity prices for WTI crude, natural gas, gasoline, diesel, heating oil, and jet fuel.
- commodity
- string
- limit
- integer
- api_key
- string
Natural Gas Storage
eia_natural_gas_storageread2 credits / callReturns monthly US natural gas underground storage by region.
- region
- string
- limit
- integer
- api_key
- string
Nuclear Outages
eia_nuclear_outagesread2 credits / callReturns daily US nuclear fleet capacity and outage levels.
- limit
- integer
- api_key
- string
Petroleum Stocks
eia_petroleum_stocksread2 credits / callReturns weekly US petroleum inventories including crude, SPR, gasoline, distillate, and propane.
- product
- string
- limit
- integer
- api_key
- string
Short Term Outlook
eia_steoread2 credits / callReturns the Short-Term Energy Outlook with 18-month forecasts for oil prices, production, and GDP.
- indicator
- string
- limit
- integer
- api_key
- string
Total Energy
eia_total_energyread3 credits / callReturns monthly US energy production, consumption, imports, and exports from the Monthly Energy Review.
- indicator
- string
- limit
- integer
- api_key
- string
U.S. Energy Information Administration API questions
- Is there an API for U.S. Energy Information Administration?
- U.S. Energy Information Administration does not offer a public data API for this, but Anakin Wire provides 10 maintained endpoints for eia.gov. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape U.S. Energy Information Administration data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when eia.gov changes its markup, Anakin updates the action.
- Do I need a U.S. Energy Information Administration account?
- No. Every U.S. Energy Information Administration action listed here runs anonymously — no account and no credentials required.
- What does the U.S. Energy Information Administration API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Finance APIs
AAII (American Association of Individual Investors)
Individual investors association - stock screener, sentiment surveys, ETF data, and research.
Affirm
Affirm partner directory - store listings, merchant guides, and merchant detail APIs.
Alphavantage.Co
Alpha Vantage public market data APIs for stock quotes, intraday and daily time series, fundamentals, FX, crypto, and technical indicators.
AnnualReports
Public-company profiles and annual reports - by exchange or industry, with filing links.
Artemis
Blockchain metrics dashboards - chain comparisons, active-user trends, and price time-series.
Asian Development Bank
Asian Development Bank data portal - publications, project documents, economic indicators, and financing datasets.