UK fuel prices per forecourt for one postcode district
api-live.ukfuelprice.workers.dev/v1/prices
UK fuel prices per forecourt for one postcode district. Query parameter: postcode (e.g. SW1A1AA or SW1A). Returns JSON: stations, price per fuel type (E10, B7...), timestamps. Source: GOV.UK Fuel Finder. Contains public sector information licensed under the Open Government Licence v3.0. Independent; not an official government service, not endorsed by GOV.UK. Prices as published, expected pence per
GET
https://api-live.ukfuelprice.workers.dev/v1/pricesUptimeNot checked yet
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api-live.ukfuelprice.workers.dev/v1/prices?postcode=SW1A1AA");
console.log(await res.json());Example input
{
"postcode": "SW1A1AA"
}