EIA Energy Data Scraper avatar

EIA Energy Data Scraper

Pricing

from $6.00 / 1,000 results

Go to Apify Store
EIA Energy Data Scraper

EIA Energy Data Scraper

Scrape US energy prices from the Energy Information Administration. Get weekly crude oil spot prices, gasoline prices by state, and diesel prices by region. Includes current, historical, and year-over-year price comparisons.

Pricing

from $6.00 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

16 days ago

Last modified

Share

ParseForge Banner

⚡ EIA Energy Data Scraper

Pull structured records from EIA Energy Data — clean fields ready as CSV, JSON, JSONL, Excel, or XML for downstream pipelines.

Copy to your AI assistant

Copy this block into ChatGPT, Claude, Cursor, or any LLM to start using this actor.

parseforge/eia-energy-data-scraper on Apify. Call: ApifyClient("TOKEN").actor("parseforge/eia-energy-data-scraper").call(run_input={...}), then client.dataset(run["defaultDatasetId"]).list_items().items for results. Key inputs: dataset (string, default "gas-prices-by-state"), maxItems (integer, default 10). Full actor spec: fetch build via GET https://api.apify.com/v2/acts/parseforge~eia-energy-data-scraper (Bearer TOKEN). Get token: https://console.apify.com/account/integrations

🚀 Scrape US energy prices from the Energy Information Administration. Get weekly crude oil spot prices, gasoline prices by state, and diesel prices by region. Includes current, historical, and year-over-year price comparisons.

🕒 Last updated: 2026-04-23

Whether you're tracking fuel costs for a logistics fleet, monitoring crude oil trends for investment decisions, or analyzing regional energy prices for market research, this tool makes it easy to collect structured energy data from the U.S. Energy Information Administration.

The EIA Energy Data Scraper collects gas prices by state, diesel prices by region, and weekly crude oil prices. Get current prices, historical trends, and week-over-week changes in structured format ready for analysis.

Target AudienceLogistics companies, investment firms, gas station operators, manufacturers, policy analysts
Primary Use CasesFuel price monitoring, commodity tracking, cost forecasting, market analysis

📋 What Does It Do

This tool collects energy price data from the EIA, supporting three datasets. It delivers:

  • Gas prices by state - current regular gasoline prices for every U.S. state with weekly price comparisons
  • 🚛 Diesel prices by region - diesel fuel prices across U.S. regions with historical price changes
  • 🛢️ Crude oil weekly prices - WTI crude oil spot prices with full weekly historical data
  • 📈 Price change tracking - changes from last week, one year ago, and two years ago
  • 📊 All regions covered - data spans all U.S. states, PADD regions, and national averages

🎬 How to Use the EIA Energy Data Scraper - Full Demo

🚧 Demo video coming soon


⚙️ Input

To start collecting energy price data, simply fill in the input form:

FieldTypeDescription
DatasetSelectChoose: Gas Prices by State, Diesel Prices by Region, or Crude Oil Weekly Prices.
Max ItemsIntegerFree users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.

Example 1: Get gas prices by state

{
"dataset": "gas-prices-by-state",
"maxItems": 50
}

Example 2: Get crude oil weekly prices

{
"dataset": "crude-oil-weekly",
"maxItems": 200
}

⚠️ Free users are limited to 10 items per run. Sign up for a paid plan to collect up to 1,000,000 items.


📊 Output

After the Actor finishes its run, you'll get a dataset with the output. You can download results as Excel, HTML, XML, JSON, or CSV.

🧾 Output Schema

FieldTypeDescription
locationStringState or region name
currentPriceStringCurrent price per gallon
priceNumericNumberPrice as a number for calculations
previousWeekPriceNumberPrice from the previous week
twoWeeksAgoPriceNumberPrice from two weeks ago
changeFromYearAgoNumberPrice change compared to one year ago
changeFromTwoYearsAgoNumberPrice change compared to two years ago
changeFromLastWeekNumberWeek-over-week price change
dateStringDate of the price data
fuelTypeStringType of fuel (Regular Gasoline or Diesel)
scrapedAtStringTimestamp of data collection

📦 Sample Output

Sample 1 (Gas Price):

{
"location": "California",
"currentPrice": "4.589",
"priceNumeric": 4.589,
"previousWeekPrice": 4.601,
"twoWeeksAgoPrice": 4.618,
"changeFromTwoYearsAgo": -0.339,
"changeFromYearAgo": -0.291,
"changeFromLastWeek": -0.012,
"date": "04/07/2026",
"fuelType": "Regular Gasoline",
"scrapedAt": "2026-04-09T12:00:00.000Z"
}

Sample 2 (Diesel Price):

{
"location": "East Coast (PADD 1)",
"currentPrice": "3.812",
"priceNumeric": 3.812,
"previousWeekPrice": 3.825,
"changeFromYearAgo": -0.198,
"changeFromLastWeek": -0.013,
"date": "04/07/2026",
"fuelType": "Diesel",
"scrapedAt": "2026-04-09T12:00:00.000Z"
}

Sample 3 (Crude Oil):

{
"date": "2026-04-04",
"price": 67.45,
"commodity": "WTI Crude Oil",
"unit": "$/barrel",
"scrapedAt": "2026-04-09T12:00:00.000Z"
}

✨ Why Choose the EIA Energy Data Scraper?

BenefitDescription
Batch collectionGet all state or regional prices in one run
📊 Three datasetsGas, diesel, and crude oil in a single tool
📈 Price change trackingWeek, year, and 2-year comparisons included
📁 Structured outputExport to JSON, CSV, or Excel
🔄 Automated schedulingSet up weekly monitoring
🛢️ Historical crude dataFull weekly history available
🎯 No coding requiredPoint-and-click interface

📈 How Does It Compare?

FeatureOur ToolManual EIA Website
Batch collection✅ Up to 1M records❌ View one table at a time
Multiple datasets✅ Gas, diesel, crude oil❌ Navigate each separately
Price change tracking✅ Week, year, 2-year changes⚠️ Calculate manually
Structured output✅ JSON, CSV, Excel❌ HTML tables only
Automated scheduling✅ Weekly monitoring❌ Manual visits

🚀 How to Use

  1. Sign Up - Create a free account w/ $5 credit (takes 2 minutes)
  2. Find the Scraper - Search for "EIA Energy Data Scraper" in the Apify Store
  3. Set Input - Select the energy dataset you want to collect
  4. Run It - Click "Start" and let it collect your data
  5. Download Data - Get your results in the "Dataset" tab as CSV, Excel, or JSON

Total Time: Results in seconds No Technical Skills Required: Everything is point-and-click


💼 Business Use Cases

Logistics and Manufacturing:

  • Monitor fuel prices across states to optimize routing and forecast transportation costs
  • Forecast energy input costs by tracking diesel and crude oil price movements
  • Compare pricing against state and regional averages

Investment and Policy:

  • Track crude oil price trends for commodity trading and energy sector analysis
  • Analyze regional fuel price disparities and seasonal pricing patterns
  • Study energy price trends for economic impact assessments


✨ Why choose this Actor

Capability
🎯Built for the job. Scoped specifically to this data source so you skip the parser engineering entirely.
🔖Structured output. Clean, typed fields ready for analysis, dashboards, or downstream pipelines.
Fast. Optimized request patterns return results in seconds, not minutes.
🔁Always fresh. Every run pulls live data, so the dataset reflects the source as of run time.
🌐No infra to manage. Apify handles proxies, retries, scaling, scheduling, and storage.
🛡️Reliable. Battle-tested across many runs and edge cases, with graceful error handling.
🚫No code required. Configure in the UI, run from CLI, schedule via cron, or call from any language with the Apify SDK.

📊 Production-grade structured data without the engineering overhead of building and maintaining your own scraper.


📈 How it compares to alternatives

ApproachCostCoverageRefreshFiltersSetup
⭐ EIA Energy Data Scraper (this Actor)$5 free credit, then pay-per-useFull source coverageLive per runSource-native filters supported⚡ 2 min
Build your own scraperEngineering hoursFull once builtWhenever you maintain itCustom code🐢 Days to weeks
Paid managed APIs$$$ monthlyVendor-definedLiveVendor-defined⏳ Hours
Third-party data dumpsVariesSubset, often stalePeriodicNone🕒 Variable

Pick this Actor when you want broad coverage, server-side filtering, and no pipeline maintenance.


🚀 How to use

  1. 📝 Sign up. Create a free account with $5 credit (takes 2 minutes).
  2. 🌐 Open the Actor. Go to the EIA Energy Data Scraper page on the Apify Store.
  3. 🎯 Set input. Configure the input fields in the form (or paste a JSON), then set maxItems.
  4. 🚀 Run it. Click Start and let the Actor collect your data.
  5. 📥 Download. Grab your results in the Dataset tab as CSV, Excel, JSON, or XML.

⏱️ Total time from signup to downloaded dataset: 3-5 minutes. No coding required.


💼 Business use cases

📊 Data & Analytics

  • Build trend reports and dashboards from live source data
  • Feed BI tools, warehouses, and ML pipelines with structured records
  • Run periodic snapshots to track changes over time
  • Compare segments, regions, or categories with consistent fields

🏢 Operations & Strategy

  • Monitor competitor moves, pricing, and inventory shifts
  • Build internal directories and lookup tools backed by current data
  • Power workflows that depend on fresh source records
  • Cut manual data-gathering time from hours to minutes

🎯 Marketing & Growth

  • Identify market opportunities and trending topics
  • Research target audiences and customer personas at scale
  • Power lead-generation pipelines with verified records
  • Track sentiment, reviews, or social signals over time

🛠️ Engineering & Product

  • Prototype features that need real-world data without owning a crawler
  • Replace fragile in-house scrapers with a managed Actor
  • Wire datasets into your apps via the Apify API or webhooks
  • Skip the proxy, retry, and parsing maintenance entirely

🌟 Beyond business use cases

Data like this powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.

🎓 Research and academia

  • Empirical datasets for papers, thesis work, and coursework
  • Longitudinal studies tracking changes across snapshots
  • Reproducible research with cited, versioned data pulls
  • Classroom exercises on data analysis and ethical scraping

🎨 Personal and creative

  • Side projects, portfolio demos, and indie app launches
  • Data visualizations, dashboards, and infographics
  • Content research for bloggers, YouTubers, and podcasters
  • Hobbyist collections and personal trackers

🤝 Non-profit and civic

  • Transparency reporting and accountability projects
  • Advocacy campaigns backed by public-interest data
  • Community-run databases for local issues
  • Investigative journalism on public records

🧪 Experimentation

  • Prototype AI and machine-learning pipelines with real data
  • Validate product-market hypotheses before engineering spend
  • Train small domain-specific models on niche corpora
  • Test dashboard concepts with live input

🤖 Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:

❓ Frequently Asked Questions

🔌 Automating Your Workflows

For advanced users who want to automate this process, you can control the scraper programmatically with the Apify API.

  • Node.js: Install the apify-client NPM package
  • Python: Use the apify-client PyPI package
  • See the Apify API reference for full details

🔌 Integrate EIA Energy Data Scraper with any app

Last but not least, EIA Energy Data Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform.

These include:

  • Make - Automate energy price monitoring workflows
  • Zapier - Get alerts when fuel prices change significantly
  • Slack - Get notified in your team channel
  • Airbyte - Build data pipelines
  • GitHub - Version control integration
  • Google Drive - Export energy data to spreadsheets

Alternatively, you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever EIA Energy Data Scraper successfully finishes a run.


🔌 Integrate with any app

EIA Energy Data Scraper connects to any cloud service via Apify integrations:

  • Make - Automate multi-step workflows
  • Zapier - Connect with 5,000+ apps
  • Slack - Get run notifications in your channels
  • Airbyte - Pipe results into your warehouse
  • GitHub - Trigger runs from commits and releases
  • Google Drive - Export datasets straight to Sheets

You can also use webhooks to trigger downstream actions when a run finishes. Push fresh data into your product backend, or alert your team in Slack.


Looking for more data collection tools? Check out these related actors:

ActorDescriptionLink
GSA eLibrary ScraperCollect government contract data from GSAhttps://apify.com/parseforge/gsa-elibrary-scraper
FINRA BrokerCheck ScraperLook up broker and advisor registration datahttps://apify.com/parseforge/finra-brokercheck-scraper
Machinery Trader ScraperCollect heavy equipment listings and pricinghttps://apify.com/parseforge/machinerytrader-scraper
Iron Planet ScraperExtract equipment auction datahttps://apify.com/parseforge/iron-planet-scraper
Copart Public Search ScraperCollect vehicle auction listingshttps://apify.com/parseforge/copart-public-search-scraper

Pro Tip: 💡 Browse our complete collection of data collection actors to find the perfect tool for your business needs.


🆘 Need Help?


⚠️ Disclaimer: This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by the U.S. Energy Information Administration (EIA), the U.S. Department of Energy, or any government agency. All trademarks mentioned are the property of their respective owners.