UK and European retail fuel data
Fuel price API for the UK and Europe
OilPriceAPI provides live weekly country averages for petrol and diesel across Europe as timestamped JSON. UK DESNZ national series are documented here but remain pending until their live collection is verified.
Built for fleet models, market analysis, procurement dashboards, and applications that need comparable European fuel-price series today and a clear path to UK coverage once activated.
Official-source series
Live European Commission series use consistent commodity codes; UK DESNZ codes remain pending until collection is verified.
Source-aware freshness
Weekly observations retain source timestamps so stale and unchanged values remain visible.
One JSON interface
Query live EU series through one prices endpoint; the documented UK codes will use the same interface once activated.
Coverage and source cadence
Live EU country averages come from the European Commission Weekly Oil Bulletin. Planned UK national averages come from DESNZ. Both sources publish weekly; consumers should read the returned source timestamp and must not treat a pending series as live.
| Market | Product | Commodity code | Unit | API status |
|---|---|---|---|---|
| United Kingdom | Petrol | GASOLINE_RETAIL_GB_GBP | pence per litre | Pending activation |
| United Kingdom | Diesel | DIESEL_RETAIL_GB_GBP | pence per litre | Pending activation |
| France | Petrol | GASOLINE_RETAIL_FR_EUR | EUR per litre | Available |
| France | Diesel | DIESEL_RETAIL_FR_EUR | EUR per litre | Available |
Replace the two-letter country code to request other supported EU countries; confirm availability in the commodity catalog before building a production dependency.
A request you can ship
curl --request GET \
--url 'https://api.oilpriceapi.com/v1/prices/latest?by_code=GASOLINE_RETAIL_FR_EUR' \
--header 'Authorization: Token YOUR_API_KEY'Use the historical endpoint with a currently available code for trend and cost-model inputs.
Frequently asked questions
Does the API provide individual petrol-station prices?
No. The live European retail fuel series and planned UK series are country or national averages. OilPriceAPI does not provide station-level, forecourt, postcode, or nearby-station prices on this endpoint.
How often are UK and EU fuel prices updated?
The live EU source and planned UK source both publish on a weekly cadence. Each successful API response includes its source timestamp, so applications can evaluate freshness instead of assuming that a value changed today.
Which sources are used?
Live EU country series are sourced from the European Commission Weekly Oil Bulletin. The pending UK national series uses the Department for Energy Security and Net Zero (DESNZ) source and will be marked available only after collection is verified.
Can I retrieve historical fuel prices?
Yes. Use a currently available commodity code with the historical prices endpoint to retrieve observations for cost models, comparisons, and trend analysis.
Start with the series that matches your model
Explore current European petrol and diesel comparisons, then test the API with an available EU commodity code. Use UK codes only once their status changes to available.
Get an API key