All guides All docs

EU fuel prices API: weekly petrol and diesel prices

GET /v1/fuel-prices/latest?country=DE,FR&fuel=diesel returns the newest weekly diesel price for Germany and France, with the previous week's price and the change in percent. The data is the European Commission's Weekly Oil Bulletin for all 27 EU countries, with and without taxes, back to January 2005, at 1 credit per call.

Last checked . Service: Fuel price API. Reference: endpoint docs.

Countries, fuels and units

Every EU member state is covered, plus two aggregates: EU for the EU-27 average and EA for the euro area. Fuels are petrol-95, diesel, lpg, heating-oil and two heavy fuel oils. Prices are in EUR per litre (heavy fuel oils per tonne); the Commission converts non-euro countries to EUR before publishing.

price includes duties and taxes, and price_without_tax leaves them out, which makes the tax share easy to compute. In the example below, petrol 95 in Germany on 23 Nov 2026 cost €1.964 a litre, and €0.988 of that was the price before tax.

The same endpoint also serves Malaysia's weekly prices and Indonesia's regulated prices, so one integration covers those markets too.

Request

Send your key in the x-api-key header. New accounts get 1,000 free requests after email verification; the quickstart takes about a minute.

GETcurl
curl 'https://api.apifor.dev/v1/fuel-prices/latest?country=DE&fuel=petrol-95' \
  -H 'x-api-key: YOUR_API_KEY'
Python
import os
import requests

r = requests.get(
    "https://api.apifor.dev/v1/fuel-prices/latest",
    params={
        "country": "DE",
        "fuel": "petrol-95",
    },
    headers={"x-api-key": os.environ["APIFOR_API_KEY"]},
    timeout=30,
)
r.raise_for_status()
print(r.json()["data"])
JavaScript
const res = await fetch("https://api.apifor.dev/v1/fuel-prices/latest?country=DE&fuel=petrol-95", {
  headers: { "x-api-key": process.env.APIFOR_API_KEY },
});
const { data } = await res.json();
console.log(data);

Response

This is the example recorded from the live API and published in our OpenAPI spec. Long lists and strings are shortened here. The full spec is at api.apifor.dev/v1/openapi.json.

200 OK
{
  "success": true,
  "data": [
    {
      "country": "DE",
      "fuel": "petrol-95",
      "fuel_name": "Petrol, 95 octane (Euro-super 95 / RON95)",
      "date": "2026-11-23",
      "price": 1.964,
      "price_without_tax": 0.9881,
      "currency": "EUR",
      "unit": "litre",
      "local": {
        "country": "EU",
        "member_state": "DE",
        "aggregate": null,
        "bulletin_series": "euro95",
        "original_unit": "EUR per 1000 l"
      },
      "previous_date": "2026-11-16",
      "previous_price": 2.001,
      "change_pct": -1.85
    }
  ],
  "meta": {
    "total": 1,
    "coverage": [
      "AT",
      "BE"
    ],
    "attribution": {
      "source": "European Commission, Weekly Oil Bulletin (prices communicated by the Member States)",
      "license": "Creative Commons Attribution 4.0 International (CC BY 4.0)",
      "license_url": "https://commission.europa.eu/legal-notice_en",
      "source_url": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
      "attribution_page": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
      "notice": "© European Union, Weekly Oil Bulletin (CC BY 4.0). APIFor changed the data: prices per 1000 l converted to per litre, English fuel codes ..."
    },
    "sources": [
      {
        "source": "European Commission, Weekly Oil Bulletin (prices communicated by the Member States)",
        "license": "Creative Commons Attribution 4.0 International (CC BY 4.0)",
        "license_url": "https://commission.europa.eu/legal-notice_en",
        "source_url": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
        "attribution_page": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
        "notice": "© European Union, Weekly Oil Bulletin (CC BY 4.0). APIFor changed the data: prices per 1000 l converted to per litre, English fuel codes ..."
      }
    ]
  }
}

Get a price history

GET /v1/fuel-prices?country=DE,FR&fuel=diesel&from=2026-01-01 returns weekly rows newest first, up to 500 per page. Leave out country to get every country. A year of weekly diesel prices for one country is about 52 rows, so one call usually covers it.

The bulletin is published weekly, and we refresh weekly. Prices are national averages reported by each member state, so they will not match the pump price at a single station.

Errors, limits and cost

A missing or wrong key returns 401, bad parameters return 400 with an error.code, and an unknown id returns 404. Rate limits are per key: a limited request gets 429 with a Retry-After header in seconds, so wait that long and retry. Calls that fail before any work starts are refunded. Details are in errors and rate limits.

This request costs 1 credit. Pricing is prepaid: 1,000 free requests once after email verification, then packs from $5 for 5,000 requests to $149 for 400,000. Credits never expire and there is no subscription. See pricing.

From an AI assistant

The same data is available as a tool on the APIFor MCP server at https://mcp.apifor.dev/mcp. Add it as a remote server in any client that supports remote MCP, sign in with OAuth or send your API key as a Bearer token, and ask in plain language. MCP calls use the same key and credits as REST. Setup steps are on the MCP page.

Alternatives

  • Weekly Oil Bulletin downloads: The Commission publishes the latest prices with and without taxes as free XLSX files each week. You parse the spreadsheets yourself.

Facts about other services come from their own pages or a test call on 1 Dec 2026. Prices and limits change, so confirm them there.

Source and licence

© European Union, Weekly Oil Bulletin, CC BY 4.0. APIFor changed the data: prices per 1,000 litres converted to per litre, and English fuel codes added.

Every APIFor response carries the same attribution in meta.attribution. All sources are listed on sources and licences.

FAQ

How far back does the EU fuel price data go?

Weekly rows start on 3 January 2005 for the EU countries.

Are these pump prices?

They are the national average retail prices each member state reports to the Commission each week. Individual stations will differ.

Is the Weekly Oil Bulletin free to use?

Yes, under CC BY 4.0. Credit the European Union and the Weekly Oil Bulletin, and say if you changed the data.