Query Power Generation
query_power_generation_v1Query verified U.S. monthly net electricity generation (MWh) from EIA-923.
Use this for "how much was generated" questions by state, source-reported balancing
authority code, fuel, prime mover, sector, plant, or generator, for a given month.
For a fuel total or a fuel mix (e.g. "coal generation", "top fuels"), filter or group
by fuel_group — it sums the several energy_source_code values a fuel spans (coal
alone is 6 codes), so a total is correct-by-construction; use the raw energy_source_code
only when you want one exact as-reported code, since it splits coal/biomass across
sub-codes. Select one atom: by_fuel (default — the complete plant total) or
by_generator (generator-level, joinable to EIA-860M); never sum across atoms. History
runs monthly from 2014-01 onward and is served by default: a bare data_month anywhere
in that window answers from the newest promoted vintage covering it, and the response
as_of is that knowledge cut (pin as_of to any date to reproduce what was served
then — it resolves to the newest vintage at or before it; an empty result names the
served window in an empty_scope note).
balancing_authority_code is reported by EIA only from 2018 onward — a BA-filtered
query cannot see earlier months. Pass
filters inside the params object. Returns JSON aggregates with citations down to the
exact source month-cell. Does not determine installed capacity (MW — use power.capacity),
demand/load, wholesale prices, fuel cost, heat rate, capacity factor, or
real-time/hourly dispatch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||