All APIs

US fuel prices API

Weekly EIA gas price data through a gasoline price API and diesel price API. Prices use USD per US gallon. Source: U.S. Energy Information Administration

First request

Quickstart →

The example shows the US average. Discovery also returns nine regional gasoline series.

curl --request GET \
  --url "https://api.narwhalapi.com/v1/commodities/physical/series?commodity=gasoline" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
Example response Illustrative response · not a live request
{
  "series": [
    {
      "series_id": "fuel-eia-usa-regular-gasoline",
      "commodity": "gasoline",
      "category": "energy",
      "product": "regular-gasoline",
      "market": "USA",
      "area": null,
      "price_type": "retail_average",
      "basis": "cash self-serve pump price incl. all taxes, 8:00 a.m. Monday",
      "currency": "USD",
      "unit": "us_gallon",
      "unit_quantity": "1",
      "frequency": "weekly",
      "description": "United States: regular gasoline (all formulations), weekly average retail price in dollars per gallon from EIA's Monday survey (series EMM_EPMR_PTE_NUS_DPG.W).",
      "publisher": "U.S. Energy Information Administration",
      "attribution": "Source: U.S. Energy Information Administration",
      "coverage_start": "2026-07-20",
      "coverage_end": "2026-10-05"
    }
  ],
  "next_cursor": null
}

Endpoints

GETDiscover physical price series/v1/commodities/physical/series
GETGet physical price series details/v1/commodities/physical/series/{series_id}
GETGet the latest physical price/v1/commodities/physical/series/{series_id}/latest
GETGet physical price history/v1/commodities/physical/series/{series_id}/observations

Weekly US retail fuel prices

Weekly updates

Prices update weekly after the Monday survey. Each observation keeps its survey date and revision.

US average plus nine regions

20 series cover regular gasoline and No. 2 on-highway diesel, each for the US average and nine regions.

USD per US gallon

Prices are decimal strings per one US gallon.

Use the fuel price API for the US average, East Coast (PADD 1), New England (PADD 1A), Central Atlantic (PADD 1B), Lower Atlantic (PADD 1C), Midwest (PADD 2), Gulf Coast (PADD 3), Rocky Mountain (PADD 4), West Coast (PADD 5), and West Coast except California. Source: U.S. Energy Information Administration

Explore related pages

Common questions

What does the gas prices API cover?

Regular gasoline and No. 2 on-highway diesel retail averages across the US and nine regions.

How much history is available?

History starts on 20 July 2026 and grows each week. Use the observations endpoint for a date window. Your plan's history allowance also applies.

How do I select a region?

Discover series with commodity=gasoline or commodity=diesel. Read the area and description, then use that series_id for details, the latest price or history.

Make your first request

Get an API key →