Gas Prices API

GET

Price fuel costs off official weekly pump price surveys in 29 countries.

Gas Prices returns average retail gasoline, diesel and LPG prices from official weekly government surveys for the US, the UK, all 27 EU countries and the EU average. Pass a country, or a US state, region or city, to get the latest week with week-over-week and year-over-year changes, in any currency, per liter or per gallon.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/gasprices
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "country": "US",
    "countryName": "United States",
    "area": "US",
    "areaName": "United States",
    "areaType": "national",
    "week": "2026-09-28",
    "currency": "USD",
    "unit": "gallon",
    "prices": {
      "regular": 4.465,
      "midgrade": 5.073,
      "premium": 5.482,
      "diesel": 6.382,
      "allGrades": 4.603,
      "lpg": null
    },
    "changeDirection": "down",
    "previousWeek": "2026-09-21",
    "weeklyChange": {
      "regular": -0.013,
      "midgrade": 0.012,
      "premium": 0.022,
      "diesel": -0.147,
      "allGrades": -0.007,
      "lpg": null
    },
    "yearAgoWeek": "2025-09-29",
    "yearlyChange": {
      "regular": 1.347,
      "midgrade": 1.366,
      "premium": 1.415,
      "diesel": 2.628,
      "allGrades": 1.355,
      "lpg": null
    },
    "nativeCurrency": "USD",
    "nativeUnit": "gallon",
    "exchangeRate": 1
  }
}

About the Gas Prices API

Gas Prices is built on three official weekly surveys: the U.S. Energy Information Administration retail gasoline and diesel survey (since 1990, including nine states and ten metro areas), the European Commission Weekly Oil Bulletin for every EU member (since 2005) and the UK government weekly road fuel prices (since 2003). Each price is stored as published, in the currency drivers pay, and can be converted to any currency and to liters or gallons on request. Use it for fuel cost calculators, fleet budgeting, delivery surcharges and cross-country cost comparisons.

What people use it for

Trip Fuel Cost Calculators
Estimate the fuel cost of a road trip by multiplying route distance and vehicle efficiency by the current price for the country, state or city being driven through.
Fleet Fuel Budgeting
Logistics teams forecast monthly fuel spend by tracking weekly diesel prices and the year-over-year change in every country their trucks operate in.
Delivery Fuel Surcharges
Couriers and freight brokers tie fuel surcharges to the weekly national diesel average so pricing adjusts automatically as pump prices move.
Cross-Country Cost Comparisons
Travel and relocation sites compare what drivers pay across Europe and the US by requesting every country in one currency and per liter.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Gas Prices

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Gas Prices API.

Read the docs →
Which countries, areas and fuel grades are covered?
The API covers the US, the UK, all 27 EU countries and the EU average. In the US you can also pick one of nine states (CA, CO, FL, MA, MN, NY, OH, TX, WA), a PADD region or ten cities. US prices include regular, midgrade, premium, all-grades gasoline and diesel; EU prices include euro-super 95 (as regular), diesel and LPG; UK prices include unleaded (as regular) and diesel. Station-level and ZIP code prices are not included.
Where do the prices come from and how fresh are they?
Prices come from official weekly government surveys: the U.S. Energy Information Administration, the European Commission Weekly Oil Bulletin and the UK Department for Energy Security and Net Zero. All three report Monday prices, and the API refreshes twice a day so each new week appears soon after it is published.
What does the Free plan include?
The Free plan returns the current US national average price of regular gasoline, per gallon or per liter, and the direction of the latest weekly move. Every other country, US states, regions and cities, the midgrade, premium, diesel and LPG prices, currency conversion, past weeks and the week-over-week and year-over-year changes all require a paid plan.
Which plan fits 25,000 gas price lookups a month?
Starter handles this volume with room to spare. At 2 credits per call, 25,000 lookups use 50,000 credits, or one-quarter of the 200,000 credits on Starter. That works out to about $0.30 per 1,000 calls. The Free plan includes 100 calls per month.
Which exchange rate is used when I ask for another currency?
Conversions use the latest exchange rate, refreshed hourly, including for historical weeks. The response returns the rate it applied in exchangeRate and the original currency in nativeCurrency. Non-euro EU countries such as Poland and Sweden are published in their own currency, converted at the European Commission weekly rate for that week.

Ready to build with Gas Prices? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs