UK fuel price API and widgets
Add PetrolPal fuel price data to news pages, fleet dashboards, internal reports and consumer tools using lightweight widgets and JSON endpoints.
Formats
HTML + JSON
Widgets and data
Refresh
10 min
Target sync cadence
Attribution
Required
Link back to PetrolPal
Commercial
Contact
Bulk data requests
Price widget
Embeddable fuel price table for publishers, local sites and dashboards.
Trend widget
Sparkline-style fuel price trend widget for pages that need a compact visual.
Statistics API
Public statistics used by PetrolPal pages, including national price summaries.
Embed a price widget
<iframe
src="https://petrolpal.co.uk/embed/prices"
width="100%"
height="420"
loading="lazy"
title="PetrolPal fuel prices"
></iframe>Fetch JSON data
fetch("https://petrolpal.co.uk/embed/prices/json")
.then((response) => response.json())
.then((data) => console.log(data));Local news pages
Publish daily petrol and diesel price snapshots with clear attribution.
Fleet dashboards
Monitor market movement before routing vehicles or planning refuelling stops.
Research and analysis
Reference official-source fuel price trends without scraping consumer pages.
Data terms and freshness
Public endpoints are provided for lightweight use and should include attribution to PetrolPal. For bulk access, custom regional cuts, commercial use or reliability requirements, contact us before integrating.