Free UK Fuel Prices API
Access real-time petrol and diesel prices across 4,000+ UK fuel stations. Free API, embeddable widgets, and OG images for developers and businesses.
Built for the motoring industry. Whether you're building a fleet management app, a car dealership website, or a motoring blog – our API is here to help.
Why We Offer a Free Fuel Prices API
We believe fuel price data should be accessible to everyone. Our API is completely free for developers, startups, and businesses across the motoring industry. No hidden costs. No API keys. No signup required.
Our data comes from the Fuel Finder API and CMA retailer feeds to ensure comprehensive coverage across the UK. Operating since 2025, we're committed to making fuel price data freely available to help build better tools for UK motorists.
Choose Your Integration
Whether you're adding a simple widget or building a custom app, we have a solution for every skill level.
Embed Widget
Copy and paste a single line of code to add a fully functional fuel price finder to your website. No coding required.
- 5 minutes to implement
- Responsive design
- Light/dark themes
- Customisable options
OG Images
Generate dynamic social sharing images with live fuel prices. Perfect for Twitter, Facebook, and link previews.
- Dynamic image generation
- Station & area images
- Auto-updated prices
- 1200x630px optimised
REST API
Full programmatic access to fuel price data. Build custom integrations, mobile apps, or data pipelines.
- JSON responses
- Geolocation queries
- Filter by fuel type
- CORS enabled
Embed Widget
Add a live fuel price finder to your website
Embed our fuel price widget on your website to help your visitors find cheap petrol and diesel nearby. The widget is fully responsive and supports light, dark, and auto themes.
Widget Configurator
Use our interactive configurator to customise your widget, preview it live, and generate the embed code automatically.
Quick Start
Copy and paste this code into your HTML:
<iframe src="https://checkfuelprices.co.uk/widget/embed?postcode=SW1A1AA" width="100%" height="600" frameborder="0" style="border-radius: 12px; max-width: 500px;" ></iframe>
Parameters
| Parameter | Type | Description |
|---|---|---|
postcode |
string optional | Pre-fill with a UK postcode or city/town name (e.g., SW1A1AA, manchester, bradford) |
coords |
string optional | Lat,lng coordinates (e.g., 51.5074,-0.1278) |
fuel |
string optional | Default fuel type: E10, E5, B7, SDV |
radius |
integer optional | Search radius in miles (1-50). Default: 5 |
limit |
integer optional | Number of results (1-20). Default: 10 |
sort |
string optional | Sort by: distance, price_low, price_high |
theme |
string optional | Widget theme: light, dark, auto |
brand |
string optional | Filter by brand name (e.g., Tesco, Shell) |
search |
boolean optional | Show search box: true or false |
filters |
boolean optional | Show filter controls: true or false |
searchFirst |
boolean optional | Show search prompt instead of loading results: true or false |
Examples
Dark theme, sorted by price:
/widget/embed?postcode=M11AE&theme=dark&sort=price_low
Diesel only, 10 mile radius:
/widget/embed?postcode=B11AA&fuel=B7&radius=10
Minimal widget (no search/filters):
/widget/embed?coords=51.5074,-0.1278&search=false&filters=false
OG Images
Dynamic Open Graph images for social sharing
Generate dynamic Open Graph images for social media sharing. Perfect for Twitter cards, Facebook previews, and link unfurling in messaging apps.
Station OG Image
Generate an image for a specific fuel station showing current prices.
GET /img/og-image/{station-slug}.png
Example: /img/og-image/tesco-extra-high-street-london-sw1a-1aa.png
Postcode Area Summary
Generate an image showing fuel price averages for a postcode area.
GET /img/og-postcode/{area}.png
| Parameter | Type | Description |
|---|---|---|
area |
string required | Postcode area code (e.g., SW, NW, M, B) |
Example: /img/og-postcode/SW.png - Shows fuel averages for South West London
Top 5 Cheapest by Fuel Type
Generate an image showing the cheapest stations for a specific fuel type in an area.
GET /img/og-postcode/{fuelType}/{area}.png
| Parameter | Type | Description |
|---|---|---|
fuelType |
string required | Fuel type: E10, E5, B7, SDV |
area |
string required | Postcode or postcode area (e.g., SW3, NW1, M1) |
Examples:
/img/og-postcode/e10/SW3.png- Cheapest petrol in SW3/img/og-postcode/b7/NW1.png- Cheapest diesel in NW1/img/og-postcode/e5/M.png- Cheapest super unleaded in Manchester area
Search by Location
Generate an image showing the top 5 cheapest stations near any UK postcode or city/town. Uses geocoding to resolve the location and finds stations within a 3-mile radius.
GET /img/og-search/{fuelType}/{query}.png
| Parameter | Type | Description |
|---|---|---|
fuelType |
string required | Fuel type: E10, E5, B7, SDV |
query |
string required | A UK postcode (e.g., UB3 4DQ, SW1A) or a city/town name (e.g., bradford, manchester) |
Examples:
/img/og-search/e10/bradford.png- Cheapest petrol near Bradford/img/og-search/b7/manchester.png- Cheapest diesel near Manchester/img/og-search/e10/UB3.png- Cheapest petrol near UB3/img/og-search/e5/SW1A 2DR.png- Cheapest super unleaded near Westminster
The search endpoint geocodes the query using postcodes.io (for postcodes) or OpenStreetMap Nominatim (for city/town names), then finds the cheapest stations within a 3-mile radius. Each station row includes the distance from the searched location. Returns 404 if no stations are found nearby.
Image Specifications
- Dimensions: 1200 x 630 pixels
- Format: PNG
- Cache: 24 hours
API Reference
RESTful API for fuel price data
Coming Soon
We're building a full REST API with JSON endpoints for fuel price data, geolocation queries, and more. Want to be notified when it launches?
Get NotifiedTerms of Use
Guidelines for using our free API and developer tools
This API is provided free of charge as a service to the motoring industry and developer community. As a free service, we do not offer any guarantees regarding uptime, availability, or response times. We reserve the right to modify, rate-limit, or discontinue the service at any time without notice. For mission-critical applications, we recommend implementing appropriate caching and fallback mechanisms.
Allowed
- Embed the widget on your website
- Use OG images for social sharing
- Display fuel prices with attribution
- Personal and commercial use
- Cache API responses (recommended: 30 minutes)
- Build apps for fleet management, dealerships, etc.
Not Allowed
- Remove or hide attribution
- Excessive API requests (rate limiting applies)
- Reselling raw data as a competing API service
- Misrepresenting data source or accuracy
- Scraping HTML pages instead of using the API
- Using data to mislead consumers
Attribution Required
When displaying fuel prices, please include "Prices from checkfuelprices.co.uk" or a visible link back to our site. This helps us continue providing this free service.
Questions?
For questions about commercial use, partnership opportunities, or if you need higher rate limits, contact our team.
Who Uses Our API?
Built for the motoring industry
Fleet Management
Help drivers find the cheapest fuel on their routes and track fleet fuel costs.
Car Dealerships
Add value to your website with local fuel prices for customers.
Motoring Blogs
Embed live fuel prices to enhance your content and help readers.
Mobile Apps
Build fuel finder features into your iOS or Android applications.
Route Planners
Show fuel stops along routes with live pricing information.
Data Analysis
Research fuel price trends and regional variations across the UK.
Ready to Get Started?
Start integrating UK fuel prices into your application today. No signup required – just make your first API call.
# Try it now - find stations near central London curl "https://checkfuelprices.co.uk/api/widget/stations?lat=51.5074&lng=-0.1278&fuel=E10"