DataNew

Fuel Prices API

Real-time UK fuel prices by postcode, coordinates, or station ID.

What it does

The Fuel Prices API provides live and historical fuel prices for petrol stations across the UK. Query by postcode, GPS coordinates, or station ID. Returns prices for petrol, diesel, and EV charging where available, updated every 4 hours.

Quick example

Request
GET https://api.it-stacks.com/fuel/prices?postcode=BB7&radius=5
Response
{
  "postcode": "BB7",
  "radius_miles": 5,
  "stations": [
    {
      "id": "stn_001",
      "name": "Tesco Clitheroe",
      "address": "Whalley Road, Clitheroe, BB7 1AB",
      "distance_miles": 0.4,
      "prices": {
        "petrol": 142.9,
        "diesel": 150.2
      },
      "updated_at": "2026-03-24T10:00:00Z"
    }
  ]
}

Who it's for

  • →Fleet management and logistics platforms calculating fuel costs
  • →Journey planning and route optimisation tools
  • →Price comparison apps and consumer dashboards
  • →Delivery and ride-hailing services tracking operating costs

Why use it

✓UK-wide coverage with prices updated every 4 hours
✓Query by postcode, GPS coordinates, or station ID
✓Covers petrol, diesel, and EV charging rates
✓Historical price data available on Pro and Enterprise plans

Frequently asked questions

Can I get fuel prices by postcode?

Yes. Use the /fuel/prices endpoint with a UK postcode. Partial postcodes like BB7 are supported alongside full postcodes like BB7 1AB.

Is this UK only?

Yes. The Fuel Prices API currently covers UK petrol stations only.

How often is data updated?

Station prices are updated every 4 hours on average. The updated_at field on each station record shows the exact last refresh time.

Can I get EV charging prices?

Where available, EV charging rates per kWh are included in the prices object. Coverage is expanding as more stations report this data.

Is historical price data available?

Historical pricing is available on Pro and Enterprise plans.

Ready to start building?

Free tier available — no credit card required.