US Energy Data API avatar

US Energy Data API

Pricing

from $0.68 / 1,000 records

Go to Apify Store
US Energy Data API

US Energy Data API

Fetches energy statistics from the US Energy Information Administration (EIA) Open Data API. Returns electricity sales, generation, and pricing data by state and sector. Zero competition on Apify Store.

Pricing

from $0.68 / 1,000 records

Rating

0.0

(0)

Developer

HE Work

HE Work

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

✅ Checked daily. An automated test runs this Actor on the Apify cloud every day and checks that it still returns real data, so if the website changes and something breaks, it's caught the same day and fixed.

Fetches energy statistics from the US Energy Information Administration (EIA) Open Data API. Returns electricity sales and generation data by state and sector.

Features

  • Electricity sales — Monthly retail sales data by state
  • Electricity generation — Monthly generation data
  • State/sector filters — Filter by state and sector
  • Free API key — Get your key at eia.gov/opendata (DEMO_KEY works for limited use)

Input

FieldTypeDescriptionDefault
apiKeystring (secret, stored encrypted)Your EIA API key; empty = EIA's public DEMO_KEY–
categoriesstringComma-separated: electricity_sales, electricity_genelectricity_sales
statestringTwo-letter state code (empty = all)``
maxRecordsintegerMax records per category100

Example input

{
"maxRecords": 10,
"categories": "electricity_sales",
"state": ""
}

Example output

One item from a real run (long texts shortened):

{
"period": "2026-08",
"category": "electricity_sales",
"source": "us-eia",
"scrapedAt": "2026-11-05T07:36:43.056485+00:00",
"state": "AK",
"stateName": "Alaska",
"sector": "OTH",
"sectorName": "other",
"value": "0",
"unit": "million kilowatt hours"
}

How it compares

This ActorTypical alternative
Fields per result10 (see Example output)Varies by actor
FreshnessRead live from the source when the run startsVaries
ReliabilityTested daily by an automated run on the Apify cloud (see the top of this page)—
Price$0.80 per 1,000 recordsNo comparable Actor on the Apify Store (6 Nov 2026); the alternative is the source's own API or export, or collecting it by hand

Pricing

Pay per result, no monthly fee:

  • $0.80 per 1,000 records: One record delivered to your dataset.
  • $0.0005 per run (start).

Bronze plans pay 5% less, Silver 10% less, Gold and above 15% less.

Examples: 1,000 records = $0.80; 10,000 = $8.00.

FAQ

How do I run it on a schedule? Create a task with your input and add a schedule in Apify Console (e.g. daily at 6 am). Each run writes a fresh dataset.

How do I get the data? Download the dataset as JSON, CSV, Excel, XML or HTML from the run page, or read it with the Apify API / Python and JavaScript clients. Integrations (Google Sheets, Make, Zapier, n8n, webhooks) work out of the box.

Do I need an account or API key? Some data sources need a free API key, entered in the input; everything else (proxies, retries) is handled inside the Actor.

What if a run returns fewer results than expected? Check the run's key-value store OUTPUT record (when present) for a per-request report, then open an issue on the Issues tab with the run link and we'll look into it.

Is it legal? The Actor only collects publicly available data. You are responsible for using it in line with the website's terms, copyright and data-protection rules (GDPR, CCPA) — don't collect personal data you have no legal basis for.