EIA Energy Data Scraper
Pricing
from $6.00 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Share

โก 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.
๐ 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 Audience | Logistics companies, investment firms, gas station operators, manufacturers, policy analysts |
| Primary Use Cases | Fuel 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:
| Field | Type | Description |
|---|---|---|
| Dataset | Select | Choose: Gas Prices by State, Diesel Prices by Region, or Crude Oil Weekly Prices. |
| Max Items | Integer | Free 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
| Field | Type | Description |
|---|---|---|
| location | String | State or region name |
| currentPrice | String | Current price per gallon |
| priceNumeric | Number | Price as a number for calculations |
| previousWeekPrice | Number | Price from the previous week |
| twoWeeksAgoPrice | Number | Price from two weeks ago |
| changeFromYearAgo | Number | Price change compared to one year ago |
| changeFromTwoYearsAgo | Number | Price change compared to two years ago |
| changeFromLastWeek | Number | Week-over-week price change |
| date | String | Date of the price data |
| fuelType | String | Type of fuel (Regular Gasoline or Diesel) |
| scrapedAt | String | Timestamp 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?
| Benefit | Description |
|---|---|
| โก Batch collection | Get all state or regional prices in one run |
| ๐ Three datasets | Gas, diesel, and crude oil in a single tool |
| ๐ Price change tracking | Week, year, and 2-year comparisons included |
| ๐ Structured output | Export to JSON, CSV, or Excel |
| ๐ Automated scheduling | Set up weekly monitoring |
| ๐ข๏ธ Historical crude data | Full weekly history available |
| ๐ฏ No coding required | Point-and-click interface |
๐ How Does It Compare?
| Feature | Our Tool | Manual 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
- Sign Up - Create a free account w/ $5 credit (takes 2 minutes)
- Find the Scraper - Search for "EIA Energy Data Scraper" in the Apify Store
- Set Input - Select the energy dataset you want to collect
- Run It - Click "Start" and let it collect your data
- 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
| Approach | Cost | Coverage | Refresh | Filters | Setup |
|---|---|---|---|---|---|
| โญ EIA Energy Data Scraper (this Actor) | $5 free credit, then pay-per-use | Full source coverage | Live per run | Source-native filters supported | โก 2 min |
| Build your own scraper | Engineering hours | Full once built | Whenever you maintain it | Custom code | ๐ข Days to weeks |
| Paid managed APIs | $$$ monthly | Vendor-defined | Live | Vendor-defined | โณ Hours |
| Third-party data dumps | Varies | Subset, often stale | Periodic | None | ๐ Variable |
Pick this Actor when you want broad coverage, server-side filtering, and no pipeline maintenance.
๐ How to use
- ๐ Sign up. Create a free account with $5 credit (takes 2 minutes).
- ๐ Open the Actor. Go to the EIA Energy Data Scraper page on the Apify Store.
- ๐ฏ Set input. Configure the input fields in the form (or paste a JSON), then set
maxItems. - ๐ Run it. Click Start and let the Actor collect your data.
- ๐ฅ 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
๐ Beyond business use cases
Data like this powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.
๐ค Ask an AI assistant about this scraper
Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:
- ๐ฌ ChatGPT
- ๐ง Claude
- ๐ Perplexity
- ๐ Copilot
๐ฐ How much does it cost?
Apify gives you $5 in free monthly credits on the Apify Free plan, enough to test EIA Energy Data Scraper and pull a real sample dataset. For ongoing usage:
- Starter plan ($49/month) โ Recommended for individuals running EIA Energy Data Scraper regularly. Includes higher concurrency and larger datasets.
- Scale plan ($499/month) โ Recommended for teams running EIA Energy Data Scraper at production scale.
Pay-Per-Event pricing means you only pay for what you actually use. Failed runs are never charged. See the Pricing tab on this Actor's page for exact event prices.
๐ก Tips for using EIA Energy Data Scraper
- Start with a small
maxItems(3-10) to validate output format before running larger jobs. - Use Apify Schedules to run EIA Energy Data Scraper on a recurring basis and keep your dataset fresh.
- Export via Integrations: Apify connects to Google Sheets, Airbyte, Make, Zapier, and direct webhooks โ pipe your data anywhere.
- Monitor with webhooks: trigger downstream workflows the moment a run finishes.
- Re-run failed items: if any individual records error out, re-run with their inputs only. Failed events are not charged.
โ๏ธ Is it legal to use EIA Energy Data Scraper?
Yes. EIA Energy Data Scraper only collects publicly available data. Web scraping public data has been confirmed as legal by US courts (see hiQ Labs v. LinkedIn) and is widely used for research, market analysis, and business intelligence.
However, you are responsible for:
- Respecting the source website's Terms of Service.
- Complying with GDPR, CCPA, and other applicable data-protection laws when personal data is involved.
- Not republishing copyrighted content without permission.
If you have specific compliance concerns, consult your legal team. See the Apify legal docs for more.
โ 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.
๐ Recommended Actors
Looking for more data collection tools? Check out these related actors:
| Actor | Description | Link |
|---|---|---|
| GSA eLibrary Scraper | Collect government contract data from GSA | https://apify.com/parseforge/gsa-elibrary-scraper |
| FINRA BrokerCheck Scraper | Look up broker and advisor registration data | https://apify.com/parseforge/finra-brokercheck-scraper |
| Machinery Trader Scraper | Collect heavy equipment listings and pricing | https://apify.com/parseforge/machinerytrader-scraper |
| Iron Planet Scraper | Extract equipment auction data | https://apify.com/parseforge/iron-planet-scraper |
| Copart Public Search Scraper | Collect vehicle auction listings | https://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?
- Check the FAQ section above for common questions
- Visit the Apify documentation for platform guides
- Contact us at Tally contact form
โ ๏ธ 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.