Free data sample
Services 01Trajectories 02Difference 03Method 04Cases 05Stack 06Team 07Engagement 08 Questions 09 Web Scraping →Automation →Dashboards →Web systems → Request a Free Data Sample

Atoms / Web Scraping / Finance and energy data / EIA scraper

Energy data · weekly gasoline and diesel prices by region

EIA data for freight, fleets and energy analysts: weekly diesel and gasoline prices by region.

Every week the U.S. Energy Information Administration publishes retail prices for regular gasoline and on-highway diesel: the national figure, the PADD regions and sub-regions, selected states and major cities, each with the last three weekly values and the change from a week, a year and two years ago, plus the next release date. Many fuel surcharge tables in freight contracts are tied to these weekly diesel figures. Carriers and shippers use the data to calculate surcharges on time, fleets to budget by region, and analysts to build official weekly series alongside daily sources. We can collect EIA weekly price tables and related pages you choose and deliver them as files, feeds or a custom API.

  • Weekly gasoline and on-highway diesel prices
  • U.S., PADD regions, states and cities
  • Week, year and two-year changes
  • Release and next-release dates
  • Series aligned with daily fuel sources

Tell us which data you need. We'll confirm the scope and prepare a sample for your review. No prepayment.

EIA dataat a glance
Dataweekly prices, regions, changes
Scopefuels, regions, states, cities
Coveragetables you choose
Freshnesson each weekly release
DeliveryCSV, Excel, JSON, Google Sheets
IntegrationsTMS, ERP, BI, API — scoped
Paymentafter you accept the result
Request → Confirm scope → Free sample1,000+ scrapers built
Who it's for

Who uses EIA fuel price data, and what they get from it.

The weekly EIA diesel figure is written into many freight contracts. These teams need it the moment it is published.

CarriersSurcharges

Carriers and freight brokers

Weekly diesel figures to update fuel surcharges on time.

ShippersInvoice checks

Shippers and logistics teams

The official figure to check surcharges on carrier invoices.

FleetsRegional budgets

Fleet operators

PADD and state prices for budgeting by region.

AnalystsOfficial series

Energy and commodity analysts

Weekly series to sit beside daily and station data.

ResearchRegional spreads

Researchers

Gaps between regions, states and cities over time.

MediaWeekly reports

Newsrooms

Weekly changes ready for coverage.

Data you can get

What EIA fuel price data you can get.

Available data may include what a visitor sees on public EIA pages, for the fuels, regions and tables in the agreed scope. The final field list is confirmed for your project.

DataWhat it isExampleWhat it is used for

Fuel

Regular gasoline or on-highway diesel

On-highway diesel

Fuel segmentation

Area

U.S., PADD region, state or city

Gulf Coast (PADD3)

Geography

Week

Weekly price date

2026-10-19

Time series

Price

Dollars per gallon

4.610

Benchmarks

Week change

Change from a week ago

+0.035

Weekly movement

Year change

Change from a year ago

+0.980

Annual movement

Two-year change

Change from two years ago

+1.150

Longer view

Release date

Date the table was released

2026-10-20

Provenance

Next release

Scheduled next release

2026-10-27

Scheduling

Area level

Nation, region, sub-region, state, city

Sub-region

Grouping

Data shown publicly on EIA pages, within the scope confirmed for your project. Values are delivered as published, with release dates kept so revisions can be tracked.

Use cases

What you can do with EIA fuel price data.

Six ways freight and energy teams use EIA fuel price data. Each one reads the same weekly tables differently.

Update fuel surcharges on release day

Problem

Surcharge tables depend on the weekly diesel figure.

Data

U.S. and PADD diesel prices on each release.

Action

Figures can be pushed to billing systems as soon as they appear.

Result

Surcharges updated without manual checks.

Check carrier invoices

Problem

Shippers need the official figure for each invoice week.

Data

Weekly diesel prices with dates.

Action

Invoice surcharges can be compared with the figure for that week.

Result

An invoice check report.

Budget fuel by region

Problem

Fleets run in regions with different prices.

Data

PADD, state and city prices.

Action

Prices can be matched to each fleet's region.

Result

Regional fuel budgets.

Compare official and daily sources

Problem

Analysts check daily averages against official weekly data.

Data

Weekly EIA series by area.

Action

Series can be aligned by date with daily sources.

Result

A cross-source comparison table.

Track regional spreads

Problem

Some regions move apart sharply.

Data

Region and city prices with changes.

Action

Spreads can be calculated each week.

Result

A spread chart for reports.

Plan around releases

Problem

Teams need to know when the next figure lands.

Data

Release and next-release dates.

Action

A calendar can be maintained automatically.

Result

A release calendar with alerts.

Request a Free Data Sample

Tell us which data you need — surcharge updates, invoice checks, regional budgets or official series — and we'll confirm the scope and prepare a sample.

Illustrative Data Sample

What an EIA fuel price export can look like.

A spreadsheet with one row per fuel, area and week. Columns are set to your task.

WeekFuelAreaLevelPriceWeek chgYear chgReleased

2026-10-19

Diesel

U.S.

Nation

4.950

+0.040

+1.020

2026-10-20

2026-10-19

Diesel

Gulf Coast (PADD3)

Region

4.610

+0.035

+0.980

2026-10-20

2026-10-19

Gasoline

U.S.

Nation

3.880

−0.030

+0.610

2026-10-20

2026-10-19

Gasoline

Texas

State

3.420

−0.050

+0.540

2026-10-20

2026-10-19

Gasoline

Houston

City

3.390

−0.040

+0.520

2026-10-20

Illustrative Data Sample. Example of a possible data export. Actual fields depend on the agreed scope, source availability and permitted access. Prices are made up.

How you receive the data

You receive EIA fuel price data in a format your team already uses.

We can deliver the data as CSV, Excel or JSON files or a Google Sheet, and scope feeds into your TMS, ERP, BI dashboards, databases or a custom API based on your workflow.

StandardFiles

CSV, Excel or JSON

A file on each weekly release.

StandardSpreadsheet

Google Sheets

Shared weekly tables, updated on release.

ScopedPer project

TMS and ERP

Diesel figures pushed into billing or TMS — agreed during scoping.

ScopedPer project

BI, database or API

Tables for Power BI, Tableau or Looker, a warehouse, webhooks or a REST API — agreed during scoping.

Why Atoms

Why Atoms for EIA fuel price data.

  • Collection timed to the release schedule.
  • Regions, sub-regions, states and cities kept with their level.
  • Release dates stored so revisions can be seen.
  • Weekly series aligned with AAA and GasBuddy data, subject to availability and project requirements.
How we start

Start with a free data sample.

No prepayment: you review the sample first and pay for the agreed work only after accepting the result.

1Request

Tell us what you need

The EIA data, the area and the fields you need, and how often. Two lines are enough.

You getA confirmed scope

2Review

Free data sample

We confirm the scope and prepare a sample of the agreed size for your review.

You getData you can check

3Run

Regular delivery

If the sample fits, we agree the schedule and price. You pay for the agreed work after accepting the result.

You getData on your schedule

Request a Free Data Sample

Tell us which data you need. We'll confirm the scope and prepare a sample for your review.

FAQ

EIA fuel price data: questions business owners ask.

Short answers for business owners and teams.

What data can you collect from EIA?
Weekly regular gasoline and on-highway diesel prices for the U.S., PADD regions, states and cities, with changes and release dates.
How soon after release do we get the figures?
Collection runs on release day; delivery timing is agreed per project.
Can you cover other EIA tables?
Other public EIA tables can be reviewed and added to the scope.
Do you keep revisions?
Each release is stored with its date, so later changes are visible.
How much does it cost?
It depends on the tables, areas, fields and delivery. After your request we confirm the scope and prepare a free sample of agreed size; you pay for the agreed work only after accepting the result.
Can you deliver EIA data through an API?
Yes. We can build a custom API that returns weekly prices for your scope as JSON. It is a data delivery built for your project, not an EIA service.
Can you combine EIA with daily prices?
Yes. Weekly series can be aligned with AAA averages and GasBuddy station prices.
For technical teamsTechnical details

EIA data scraper: technical details.

For developers, CTOs and data teams: the EIA fuel price data schema, collection challenges, custom EIA data API delivery, output formats and technical FAQ.

Data schema

EIA fuel price data fields.

Records are keyed by fuel, area and week, delivered in a stable schema adapted to your system.

Field groupTypical fieldsNotes

Release

release_id, fuel, release_date, next_release_date, checked_at

Per release

Area

area_id, name, level (nation/region/subregion/state/city), padd_code

Geography

Price

release_id, fuel, area_id, week_date, price_usd_gal

Weekly values

Change

release_id, fuel, area_id, chg_week, chg_year, chg_2y

Published changes

Series

fuel, area_id, week_date, price_usd_gal, first_release_id

History

Revision

fuel, area_id, week_date, old_value, new_value, release_id

Revisions

Surcharge

contract_id, week_date, base_price, fuel_price, surcharge

Derived (optional)

Mapping

area_id, external_code

Standard codes

Matching

area_id, external_source, external_id

Cross-source matching

Scraping specifics

What makes EIA fuel price data hard to collect well.

EIA tables are clear, but they are wide, weekly and occasionally revised. These are the main challenges and how a custom EIA data service can address them.

01

Access and load

Collection is paced and scheduled to keep load low, monitored for gaps and re-run where needed. We do not publish technical methods for working around site protections.

02

Wide tables

Each table carries three weeks and three change columns. Values are reshaped into one row per area and week.

03

Nested areas

Regions contain sub-regions, and states and cities follow. Each row keeps its level and parent.

04

Release timing

Tables update on a weekly schedule, sometimes shifted by holidays. Collection follows the stated next release date.

05

Revisions

A week's value can change in a later release. Each release is stored so revisions are visible.

06

Three decimals

Prices use three decimals. Values are stored exactly.

07

Several tables

Gasoline and diesel tables share a layout. Fuel type is taken from each table's heading.

Data delivery via API

EIA Data API — custom data delivery.

Atoms can build a custom API to deliver data collected from EIA pages, based on your required fields, fuels, areas, schedule and integration needs — weekly prices as structured JSON. It is a data delivery service built for your project, not an EIA API.

API01

How you receive the data

Your systems call a REST API set up for your project and receive JSON; scheduled files can run alongside it.

API02

Fields you choose

Fuel, area, level, week, price, changes and release dates.

API03

Filters and pagination

Filter by fuel, level, area or date range; results are paginated.

API04

Updates and webhooks

Collection runs on release day, with webhooks when new figures arrive.

API05

App and BI integration

Feeds can power TMS and billing systems, fleet tools or BI dashboards.

API06

Custom endpoints and access

Endpoints such as latest diesel, surcharge for a contract or regional spreads can be designed for your workflow, with API keys.

Request — example endpoints

GET /api/prices/latest?fuel=diesel&level=region
GET /api/prices?fuel=gasoline&area=texas&from=2026-01-01
GET /api/releases/next
GET /api/surcharge?contract=example-fsc&week=2026-10-19

Webhook (sent to your URL)
POST https://your-app.example/hooks/eia
{"event": "new_release", "fuel": "diesel", "week": "2026-10-19", "us_price": 4.950}

Response — JSON

{
  "fuel": "diesel",
  "week": "2026-10-19",
  "release_date": "2026-10-20",
  "results": [
    {"area": "U.S.", "level": "nation", "price": 4.950, "chg_week": 0.040},
    {"area": "Gulf Coast (PADD3)", "level": "region", "price": 4.610, "chg_week": 0.035}
  ]
}

Illustrative API example. Endpoint structure and available fields are defined for each project.

Approach and tools

How an EIA data scraper is built.

A typical stack, and where the effort actually goes.

Weekly-table scrapers are commonly written in Python with an HTTP client and an HTML parser, Postgres for series and releases, and a scheduler tied to the release calendar.

The code is the smaller part. The ongoing work is reshaping wide tables, keeping area levels, storing releases for revisions and timing collection to the schedule. That is the work a managed service can take off your team, on agreed terms.

Whatever the stack, a weekly-price pipeline should be judged by speed after release, exact values, revision tracking and how quickly it recovers when pages change.

Integrations and output

EIA fuel price data output and integrations.

Standard outputs are CSV, Excel, JSON and Google Sheets. TMS, ERP, BI, database, warehouse, webhook and API integrations are scoped per project.

JSON — one record (illustrative)

{
  "fuel": "gasoline",
  "area": "Houston",
  "level": "city",
  "series": [
    {"week": "2026-10-05", "price": 3.470},
    {"week": "2026-10-12", "price": 3.430},
    {"week": "2026-10-19", "price": 3.390}
  ]
}

CSV — change events (illustrative)

week,fuel,area,level,price,chg_week,chg_year,release_date
2026-10-19,diesel,U.S.,nation,4.950,0.040,1.020,2026-10-20
2026-10-19,diesel,Gulf Coast (PADD3),region,4.610,0.035,0.980,2026-10-20
2026-10-19,gasoline,Texas,state,3.420,-0.050,0.540,2026-10-20

Field names, IDs, values and endpoints are illustrative. Standard options: CSV, Excel, JSON, Google Sheets. Scoped per project: Parquet files, Postgres, BigQuery or Snowflake tables, webhooks, a REST API, TMS and BI integrations.

Build, buy or managed

Build an EIA scraper, license energy data or use a managed service.

Each option fits different teams. A managed service makes sense when you need your own tables, fields and integrations, regular updates and no in-house maintenance.

Build in-houseOff-the-shelf toolAtoms managed service

Best for

Teams with developers who want full control

Broad energy data terminals

Weekly tables pushed into your systems

Coverage

You define it

Broad packages

Fuels and areas you choose

Release timing

You schedule it

Included

Collection on release day

Cost

Engineering time

Licence fees

Agreed project price

When pages change

Your team updates the code

Not your problem

Maintenance on agreed service terms

Delivery

Whatever you build

Terminal exports

CSV, Excel, JSON, Sheets, TMS feeds, custom API

Technical FAQ

EIA scraping: technical questions.

Questions developers ask before a project starts.

Is this the official EIA API?
No. Atoms is not EIA. We collect the EIA data you need and can deliver it through a custom EIA data API — REST endpoints returning JSON, with your fields and filters.
What does an EIA scraper API return?
JSON records with fuel, area, level, week, price and changes, with release date and check time.
Can you scrape EIA tables with Python?
Yes. Pages are server-rendered. The harder parts are reshaping, area levels and revisions.
How are wide tables stored?
As one row per fuel, area and week, with changes in separate fields.
How do you handle revisions?
Each release is stored, so a changed value for the same week is visible.
Can you calculate fuel surcharges?
Yes, surcharges can be derived from your contract table and the weekly figure.
Can you export to CSV, JSON or Google Sheets?
Yes. CSV, Excel, JSON and Google Sheets are standard. TMS feeds, database tables, webhooks and a REST API can be scoped per project.
Can you include the full history files?
Linked history files can be reviewed and added to the scope.
Why teams work with Atoms

An engineering team built for difficult sources.

Atoms has 1,000+ scrapers built. Projects are scoped to your task and delivered as structured data — as a one-off export or as a managed monthly service on agreed terms. NDA on request.

For fuel-data projects we combine data engineering with freight know-how: wide tables reshaped, area levels kept, releases stored for revisions and collection timed to the schedule — delivered as figures billing and fleet teams can use.

Start here

Need EIA fuel price data?

Tell us which data you need. We'll confirm the scope and prepare a sample for your review. Name the fuels, areas and delivery you need — surcharge updates, invoice checks, regional budgets or official series. You pay for the agreed work only after accepting the result.

Direct

Or see all data extraction services and scraper pages.