Fuel Prices

v0.2.1
io.github.pipeworx-io/fuel-prices Checked 1 day ago Published 1 month ago

Retail petrol, diesel and LPG prices across Europe, by country and week.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fuel_price

What does petrol cost in a European country right now — the current pump price per litre for petrol, diesel or LPG in any of 28 countries. Answers "how much is petrol in Portugal", "what does diesel cost in Germany", "price of gas in Ireland", "how much to fill up in Spain". Takes a country name or two-letter code and a fuel (defaults to petrol), and returns the price per litre in euros both including and excluding tax, the tax share as a percentage, and the week the figure is for. Reported weekly by EU Member States to the European Commission's Weekly Oil Bulletin, so it is a national avera…

ParameterTypeDescription
country *stringCountry name or two-letter code — "Portugal", "PT", "Germany", "DE". Use "EU" for the EU-wide average.
fuelstringWhich fuel: petrol (default), diesel, lpg, heating_oil. Forgiving about wording — "gas", "gasoline", "unleaded" and "autogas" all resolve.
week_endingstringOptional YYYY-MM-DD to read a past week instead of the latest. Returns the most recent week on or before this date.

compare_fuel_prices

Where is fuel cheapest or most expensive in Europe — every country ranked by pump price for one fuel in the same week. Answers "which European country has the cheapest diesel", "where is petrol most expensive in Europe", "is it cheaper to fill up in Poland or Germany", and cross-border questions before a drive. Returns each country with its price per litre including and excluding tax and the tax share, so a difference can be attributed to the tax or to the underlying fuel. Sourced from the European Commission's Weekly Oil Bulletin, which EU Member States report into weekly. Fuels: petrol_95,…

ParameterTypeDescription
countriesarrayOptional shortlist of country names or codes to compare, e.g. ["Poland","Germany","Czechia"]. Omit to rank all 28.
fuelstringWhich fuel to rank on: petrol (default), diesel, lpg, heating_oil.
limitnumberHow many countries to return (default 10, max 30).
orderstring"cheapest" (default) or "most_expensive".
week_endingstringOptional YYYY-MM-DD to compare a past week instead of the latest.

fuel_price_history

How fuel prices have moved in one European country over time — a weekly series of pump prices with the change over the period. Answers "how much has petrol gone up in Germany this year", "diesel price trend in France", "was fuel cheaper last summer in Italy", and questions about whether a rise is recent or long-running. Returns each week's price per litre plus the first and last values, the absolute and percentage change, and the highest and lowest weeks in the window. Weekly series from the European Commission's Weekly Oil Bulletin, available back to 2005.

ParameterTypeDescription
country *stringCountry name or two-letter code, e.g. "France", "FR".
fuelstringpetrol (default), diesel, lpg, heating_oil.
sincestringOptional YYYY-MM-DD start date instead of a week count.
weeksnumberHow many recent weeks to return (default 26, max 520 — 520 is ten years).

fuel_price_coverage

Which countries and weeks this fuel-price data covers, and how fresh it is: the list of countries, the newest and oldest week available, the total number of weekly observations, and which fuels are carried. Use to check a country is in scope before asking about it — coverage is the European Union plus the United Kingdom, so the United States, Switzerland, Norway and Turkey are not included.