US EIA Electricity Prices, Grid Load & Capacity Scraper
Pricing
from $2.10 / 1,000 records
US EIA Electricity Prices, Grid Load & Capacity Scraper
Scrapes US Energy Information Administration (EIA) Open Data v2 for retail electricity prices, RTO grid load and fuel mix, and operating power plant capacity.
Pricing
from $2.10 / 1,000 records
Rating
0.0
(0)
Developer
Groundplane Labs
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
21 days ago
Last modified
Categories
Features
Share
Extracts official retail electricity prices, revenues, sales, regional grid load (RTO), and power plant operating capacity from the US Energy Information Administration (EIA) Open Data API v2 (https://api.eia.gov/v2).
What It Does
The US EIA Electricity Prices, Grid Load & Capacity Scraper connects directly to the official EIA API v2. It provides programmatic access to benchmark US energy metrics across five core electricity routes:
- Retail Sales & Prices (
electricity/retail-sales/data): Monthly and annual retail electricity prices (¢/kWh), revenues ($M), megawatt-hour sales, and customer counts by state and sector (residential, commercial, industrial). - RTO Fuel Type Generation (
electricity/rto/fuel-type-data/data): Hourly electricity generation by fuel type (wind, solar, natural gas, coal, nuclear, hydro) across balancing authorities (ERCOT, CAISO, PJM, NYISO, MISO, ISO-NE, SPP). - RTO Region Grid Load (
electricity/rto/region-data/data): Hourly grid demand, net generation, and interchange. - Operating Generator Capacity (
electricity/operating-generator-capacity/data): Nameplate and summer capacity metrics for operational power plants. - State Electricity Profiles (
electricity/state-electricity-profiles/summary/data): Annual state-level summary profiles.
Key Architectural Strengths
- Dynamic Metadata & Column Discovery: Fetches parent route metadata at startup to dynamically discover valid frequencies, facets, and available metric columns.
- Strict Pagination & Count Reconciliation: Loops through pages with
offset += 5000, reconciling delivered rows against the API's reportedtotalcount to guarantee no silent truncation at page boundaries. - Data Sentinel Integrity: Asserts the presence of core time periods and requested metric columns on first data response, preventing hollow emissions.
- Throttling & Backoff: Throttles calls to 3 requests per second with jittered exponential backoff and HTTP date Retry-After handling.
Target Audience
- Energy Analysts & Traders: Track wholesale and retail electricity price movements, spark spreads, and regional basis shifts.
- Renewable Energy Developers: Analyze grid capacity, hourly curtailment patterns, and generation mix by RTO.
- Commercial & Industrial Energy Buyers: Benchmark corporate utility tariffs, power purchasing agreements (PPAs), and state-level power costs.
- Climate & Policy Researchers: Ingest longitudinal federal electricity data into decarbonization and grid transition models.
Source & Data Cadence
- Source: US Energy Information Administration (EIA) Open Data API v2 (
https://api.eia.gov/v2). - Cadence:
- Retail sales & revenues: Monthly (typically 2-3 months lag) and Annual.
- RTO grid load & fuel mix: Hourly (updated continuously).
- Operating generator capacity: Monthly updates from Form EIA-860M.
- Authentication: Requires a personal EIA Open Data API key (free of charge). See API Key Setup.
API Key Setup
EIA requires a registered API key to access Open Data v2 endpoints:
- Register for a free API key at https://www.eia.gov/opendata/register.php.
- You will receive an alphanumeric key via email immediately.
- Supply the key in the
eiaApiKeysecret input when running this actor. - Security Notice: The key is marked secret (
isSecret: true) and is a required input with no default. It is sent only in theX-Api-Keyheader directly toapi.eia.gov, never as a URL query parameter, and is never saved to console storage, shared, or logged.
Input Parameters
| Field | Type | Default | Description |
|---|---|---|---|
eiaApiKey | String (Secret) | Required | Your free US EIA API key. |
routeEndpoint | String Enum | "electricity/retail-sales/data" | The target EIA route. Supported: electricity/retail-sales/data, electricity/rto/fuel-type-data/data, electricity/rto/region-data/data, electricity/operating-generator-capacity/data, electricity/state-electricity-profiles/summary/data. |
frequency | String Enum | "monthly" | Reporting frequency (monthly, hourly, local-hourly, annual). Must match route capabilities. |
stateIds | Array of Strings | ["TX", "CA", "NY", "FL", "VA"] | 2-letter US state postal codes to filter (e.g. ["TX", "CA"]). |
sectorIds | Array of Strings | ["RES", "COM", "IND"] | Sector codes: RES (Residential), COM (Commercial), IND (Industrial), TRA (Transportation), OTH (Other), ALL (All Sectors). |
startPeriod | String | "2025-01" | Starting time period (YYYY-MM for monthly, YYYY for annual, YYYY-MM-DDTHH for hourly). |
maxItems | Integer | 5000 | Maximum number of rows to retrieve across pages. |
Labeled Canary Input
{"eiaApiKey": "YOUR_EIA_API_KEY","routeEndpoint": "electricity/retail-sales/data","frequency": "monthly","stateIds": ["TX", "CA"],"sectorIds": ["RES"],"startPeriod": "2025-01","maxItems": 100}
Output Dataset Schema
| Field | Type | Description |
|---|---|---|
period | String | Reporting time period (e.g. "2025-01", "2024", or "2025-01-01T00"). |
routeSource | String | EIA v2 route path that published the record. |
stateId | String or Null | 2-letter US state code (e.g. "TX"). Null for RTO/balancing authority routes. |
stateDescription | String or Null | Full state name (e.g. "Texas"). |
sectorId | String or Null | Electricity consumer sector code (e.g. "RES"). |
sectorName | String or Null | Full sector description (e.g. "residential"). |
respondentId | String or Null | Balancing authority code (e.g. "ERCO", "CISO"). Populated on RTO routes. |
respondentName | String or Null | Full balancing authority name. |
fuelType | String or Null | Generation fuel code (e.g. "WND", "SUN", "NG"). |
priceCentsPerKwh | Number or Null | Retail price in cents per kilowatt-hour. |
revenueMillionUsd | Number or Null | Total revenue in millions of dollars. |
salesMegawattHours | Number or Null | Total retail electricity sales in MWh. |
customersCount | Integer or Null | Number of customer accounts. |
value | Number or Null | Numeric metric value for generic/RTO routes. |
valueUnits | String or Null | Metric unit of measure (e.g. "megawatthours"). |
metrics | Object | Every metric column the route metadata publishes for the selected route, keyed by the EIA column name (for example capacity-mw on the operating generator capacity route), with numeric values or null. Route-dependent metrics are carried here, so no published metric is silently dropped. |
Troubleshooting & Status Messages
- Missing or Rejected Key: If
eiaApiKeyis omitted or invalid, the actor terminates immediately with HTTP 403 details and registration instructions. - Route / Frequency Mismatch: Specifying an unsupported frequency (such as
hourlyon retail sales) fails fast before data pagination starts. - Zero Matches: If a combination of filters yields no rows, the run returns
Complete: 0 rows pushed. - Truncation: When matching records exceed
maxItems, the run concludes withPARTIAL: ... (stopped at maxItems limit ({maxItems}); {total} total available). - Start period format:
startPeriodmust match the selected frequency:YYYY-MMfor monthly,YYYYfor annual,YYYY-MM-DDTHHfor hourly and local-hourly. A mismatched format fails fast as invalid input. Hourly RTO runs are bounded bystartPeriodandmaxItemsonly; pick a recent start hour for a small run, and expect aPARTIALmaxItems status on a long window. - Filters that do not apply:
stateIdsandsectorIdsapply only where the route metadata exposes the matching facet. On a route without that facet (for example the RTO routes) the filter is ignored and the run log says so. - Skipped rows: Rows whose period or metric values no longer parse are skipped and counted; the run ends
PARTIALnaming the skipped count, or fails when more than 20% of rows are affected.
If this keeps happening, please open an issue on this actor's Issues tab and we'll fix it fast.
Changelog
- v0.1.2 (2026-11-02):
- Red Team fix round: a row with any present-but-unparseable metric value is now counted as skipped (disclosed as
PARTIAL, or a failure above 20%) instead of shipping that value as a silent null; genuinely absent (null) values still ship null by disclosure. A data response missing theresponseobject, thedataarray, or thetotalfield now fails loudly as a source shape change instead of endingComplete: 0or inventing a total; a well-formed empty response (total: 0,data: []) still endsComplete: 0. Period patterns are fully anchored and period components are validated as real calendar values for bothstartPeriodand emitted rows. The pagination-ended-early reason now accounts for skipped rows, counts wording no longer claims an ordering the actor does not establish, the RTO fuel type route is described as hourly, and the input table lists all accepted sector codes (RES,COM,IND,TRA,OTH,ALL).
- Red Team fix round: a row with any present-but-unparseable metric value is now counted as skipped (disclosed as
- v0.1.1 (2026-11-01):
- Review fixes: the EIA key now travels only in the
X-Api-Keyheader (never in a URL) and is a required secret input with no default; metadata and data calls use the 6-try retry standard with jittered backoff and Retry-After handling; pagination advances by a full 5,000-row page and terminates on the API reported total; period and metric value-format drift is counted as skipped rows (disclosed asPARTIAL, or a failure above 20%);sectorNameis read from the sourcesectorDescriptioncolumn; route-dependent metrics are preserved in ametricsobject; state, sector, frequency, and start period inputs are validated before any data call.
- Review fixes: the EIA key now travels only in the
- v0.1.0 (2026-11-01):
- Initial release targeting EIA Open Data v2.
- Multi-route support for retail sales, RTO grid load, fuel type generation, and generator capacity.
- Dynamic metadata introspection for facet mapping and column selection.
- Total count reconciliation and schema validation sentinels.