US Energy Data (EIA) is a no-code web scraper that collects public open data data: dataset, period, period start, frequency and area and more. Enter dataset, eia api route and frequency, start a run and download the results as Excel, CSV or JSON. It costs 1 credit per run plus 0.01 credits per result, so 100 results cost about 2 credits.
Category: Open data · Price: 1 credits per run + 0.01 per result.
US Energy Data (EIA)
Official U.S. energy statistics from the Energy Information Administration (EIA): electricity prices and sales by state and sector, hourly grid demand by balancing authority, generator capacity at every power plant, weekly gasoline and diesel prices, natural gas prices, and crude oil spot prices. You can also read any other dataset in the EIA API v2 by entering its route. Each row is one value for one period, with its units, the series it belongs to, every descriptive facet (state, sector, fuel, plant, operator…) and EIA's requested source line.
Typical uses
- Solar and battery sales: the average residential electricity price in each state, month by month.
- Energy analysts and newsletters: a weekly pull of gasoline and diesel prices, or WTI and Brent spot prices.
- Grid research: hourly demand and forecasts for ERCOT, CAISO or PJM.
- Market mapping: generator lists by state, fuel and status, with owner and plant names and capacity in MW.
Input
| Field |
What to enter |
| Dataset |
One of the six curated datasets, or Other EIA API route. |
| EIA API route |
For "Other" only, e.g. electricity/state-electricity-profiles/emissions-by-state-by-fuel. Browse routes at eia.gov/opendata/browser. If you enter a group such as electricity, the run lists the datasets inside it. |
| Frequency |
The dataset default, or annual, quarterly, monthly, weekly, daily or hourly where the dataset has it. Unsupported choices fall back to the default and the log says so. |
| Metrics |
Data columns. Each one becomes its own row. Electricity sales: price, sales, revenue, customers. Generators: nameplate-capacity-mw, net-summer-capacity-mw, net-winter-capacity-mw. Other datasets: value. |
| States |
Two-letter codes, or US for the national total. They are translated to the dataset's codes (CO or SCO). Fuel prices exist only for some states. |
| Regions or areas |
Raw EIA area codes: balancing authorities for grid demand (ERCO, CISO, PJM, MISO, US48), duoarea codes for fuel prices (NUS, R10, Y35NY), census divisions for electricity sales (MTN, PACC). |
| Other filters |
facet=value per line, e.g. sectorid=RES, type=D (demand), product=EPMR (regular gasoline), product=EPCWTI (WTI crude), process=PRS (residential gas), energy_source_code=SUN. |
| From / To period |
Matches the frequency: 2024, 2024-01, 2024-Q1, 2024-01-15 or 2024-01-15T00. |
| Order |
Newest or oldest first. |
| Maximum rows |
Stops after this many rows. |
Output example
{
"dataset": "retail-sales",
"period": "2026-07",
"periodStart": "2026-07-01T00:00:00Z",
"frequency": "monthly",
"area": "Colorado",
"seriesDescription": "Average retail price of electricity – Colorado – commercial",
"metric": "price",
"metricName": "Average retail price of electricity",
"value": 13.81,
"units": "cents per kilowatt-hour",
"seriesId": null,
"facets": { "stateid": "CO", "stateDescription": "Colorado", "sectorid": "COM", "sectorName": "commercial" },
"route": "electricity/retail-sales",
"attribution": "Source: U.S. Energy Information Administration (Oct 2026)",
"licence": "Public domain (U.S. government work)"
}
Output fields
dataset, route, period, periodStart, frequency, area, seriesId, seriesDescription, metric, metricName, value, units, facets, attribution, licence.
How it fetches data
The crawler calls api.eia.gov/v2/{route}/data/ with the chosen frequency, data columns, facet filters and period range, sorted by period. EIA returns at most 5,000 rows per call, so larger runs are read page by page with offset and length. If EIA takes longer than 25 seconds, the page size is halved and the request tried again. For a route you enter yourself, the crawler first reads its metadata (frequencies, facets, data columns) and caches it for a day. Petroleum and natural gas rows carry EIA's own series ID and description. For other datasets the description is built from the metric name and the facet labels.
Good to know
- API key: EIA requires a free key. Register at eia.gov/opendata/register.php with only an email address and acceptance of the terms; the key is emailed automatically, with no card and no approval step. An administrator adds it in Admin → Integrations. EIA's API runs on api.data.gov, so a saved api.data.gov key is tried when no EIA key is set. With neither, a run makes a single request with the shared
DEMO_KEY (a few requests an hour per server) and says so.
- Licence and attribution: EIA data is U.S. government work in the public domain. EIA asks you to credit it as the source, with a date, and not to use its name to suggest endorsement. Every row carries
attribution (for example "Source: U.S. Energy Information Administration (Oct 2026)") and licence.
- Limits: EIA does not publish a fixed rate limit but may throttle heavy use. The crawler waits briefly between pages and retries after a 429.
- Values are numbers. Withheld or not-available entries (
W, NA) come back as null.
periodStart converts the period to a UTC timestamp. Local-time hourly periods (2026-10-22T01-05) are converted to UTC.
- Generator capacity is published monthly, one row per generator, so a single month for a large state holds thousands of rows. Narrow it with a period range or filters such as
status=OP or energy_source_code=SUN.