Questions you can ask
- “Weekly U.S. crude oil inventories for the last 8 weeks.”
- “Henry Hub spot price by month this year.”
- “Which gas-fired generators in Texas are scheduled to retire by 2030?”
| Week ending | Crude stocks (MMbbl) | Change |
|---|---|---|
| Sep 5 | 421.4 | -1.2 |
| Sep 12 | 419.9 | -1.5 |
| Sep 19 | 422.3 | +2.4 |
Illustrative values showing the shape of an answer, not live data.
About this source
U.S. Energy Information Administration (EIA) API. Datasets: electricity, natural gas, coal, petroleum, STEO/AEO/SEDS, plus plant-level Form 860 generator capacity and Form 923 monthly net generation. RULES: 1. API key required (eia.gov/opendata). 2. getRoutes/getFacets discover datasets and filter values. 3. Plant-level: searchGenerators / searchPlants / getPlantGeneration / getRetirementSchedule / getFuelMix / getServiceInfo. 4. Form 860 facets: stateid, energy_source_code, prime_mover_code, balancing_authority_code, sector, status (OP/SB/OS/OA). 5. Form 923 facility-fuel facets are camelCase: plantCode, fuel2002, primeMover, state. 6. Dates: YYYY-MM (Form 860/923) or YYYY-MM-DD; pagination capped at 5000 rows/JSON response.
Connector ID eia
Provenance
Freshness & coverage
› Methods (22)
Technical detail for developers: parameters, pagination, units, and freshness per method.
getRoutes
readList available EIA routes, optionally within a parent route.
PaginationnonegetData
readQuery any EIA dataset route with filters, date bounds, and paging.
Required paramsroutePaginationoffset (offsetField: offset, limitField: length)getFacets
readGet available filter options (facets) for a dataset
Required paramsroutePaginationnonegetFacetDetails
readGet available values for a specific facet
Required paramsroutefacetIdPaginationnonegetElectricityData
readQuery a curated EIA electricity dataset.
Required paramsdatasetPaginationoffset (offsetField: offset, limitField: length)getNaturalGasData
readQuery EIA natural-gas data by route. Henry Hub spot: route1="pri", route2="fut", series RNGWHHD.
Required paramsroute1EntitiescommodityPaginationoffset (offsetField: offset, limitField: length)getCoalData
readConvenience function for coal datasets
Required paramsdatasetPaginationoffset (offsetField: offset, limitField: length)getPetroleumData
readWeekly or monthly US crude oil inventories (stocks), petroleum prices and production by date range.
Required paramsdatasetEntitiescommodityPaginationoffset (offsetField: offset, limitField: length)stoc/wstk stocks; pnp/wiup refinery; pri/spt spot (RWTC, RBRTE): set frequency.
getSTEOData
readGet Short-Term Energy Outlook (STEO) forecast projections (EIA).
Paginationoffset (offsetField: offset, limitField: length)getAEOData
readGet Annual Energy Outlook (AEO) forecast projections (EIA).
Required paramsroute1Paginationoffset (offsetField: offset, limitField: length)getIEOData
readGet International Energy Outlook (IEO) forecast projections (EIA).
Required paramsroute1Paginationoffset (offsetField: offset, limitField: length)getSEDSData
readGet State Energy Data System (SEDS) data
Paginationoffset (offsetField: offset, limitField: length)getTotalEnergyData
readGet Total Energy data
Paginationoffset (offsetField: offset, limitField: length)getCO2EmissionsData
readGet CO2 Emissions data
Required paramsdatasetPaginationoffset (offsetField: offset, limitField: length)getInternationalData
readGet International energy data
Paginationoffset (offsetField: offset, limitField: length)getNuclearOutagesData
readGet Nuclear Outages data
Required paramsdatasetPaginationoffset (offsetField: offset, limitField: length)searchGenerators
readForm 860 generator-level capacity search with state/fuel/BA/status filters.
Paginationoffset (offsetField: offset, limitField: length)getPlantGeneration
readForm 923 monthly net generation and fuel use for a single plant.
Required paramsplantIdstartendPaginationoffset (offsetField: offset, limitField: length)searchPlants
readOne row per plant from Form 860 generators, sorted by total nameplate MW.
PaginationnonegetRetirementSchedule
readFind planned generator retirements by state, fuel, BA code, and year.
Paginationoffset (offsetField: offset, limitField: length)getFuelMix
readEIA electricity generation fuel mix by fuel type (Form 923), state or national.
Required paramstimePaginationnone14 non-overlapping fuels (COW, NG, NUC, WND, ...) sum to all fuels; 1000 MWh.
getServiceInfo
readForm 860/923 routes, facets, enum values, date format, and pagination cap.
EntitiesmetadataPaginationnone
