Top
Best
New

Posted by Technolithic 5 days ago

UK government launches fuel forecourt price API(www.gov.uk)
121 points | 147 commentspage 3
adamm255 4 days ago|
Anyone able to use the API? The CSV link is dead and I cant get the API to authenticate. The Beta flag doing a lot of heavy lifting here, but I love the idea!
stavros 5 days ago||
Is anyone else getting a 403 from this URL?
whalesalad 4 days ago|
yes - assuming it is geoblocking
gazoakley 4 days ago||
Yep - out of the country right now and get the same. VPN back home and it’s working. A bit annoying
mlaretallack 4 days ago||
The api seems very unstable (or it might just be me) keeps timing out when I try to fetch.
pjc50 5 days ago||
This is neat, great use of public data, and just in time for the ICE phaseout starting within a decade.
Traster 4 days ago||
(a) that phase out is going to take an extra-ordinarily long time. and (b) it'll be pretty trivial to extend this to charging networks.
entuno 5 days ago||
Set's an good precedent for places that offer electric charging having to do the same thing in future though.
rcxdude 4 days ago||
These are usually already available on the various charging apps and maps, especially because it can vary by a lot.
triceratops 4 days ago||
Charging apps suck. Why can't charging work just like gas? Tap a card and you're done.
rcxdude 4 days ago||
I am mainly referring to the apps which hold a database of chargers, not the shitty ones which are used to take payment. Thankfully it seems like more of them are switching to contactless payments.
upmostly 4 days ago||
I spent the last few hours hacking together PetrolMate using this dataset: https://petrolmate.co.uk

A couple of interesting observations while building it:

Yesterday the dataset had ~600 stations. Today it’s reporting 6,666 stations from the UK government feed, which is… a slightly ominous number, but according to the data and me asking an LLM, that’s close to full UK coverage already.

I deliberately went for a “pure speed” tech stack. Astro, no UI framework, just vanilla JS. Deployed on Cloudflare, with prices stored in D1.

I'm not using the API to load the data, I'm cleansing and then importing the CSV (which you can download for free) into the D1 database.

There’s also an /insights page with some aggregated stats that genuinely surprised me: https://petrolmate.co.uk/insights

Really nice to finally have an official, open dataset to build on. It already feels far more reliable than the old user-reported approaches, and it’ll be interesting to see how coverage and update frequency settles over the next few weeks.

Would love to hear feedback by the way. What is this missing to make it a genuinely useful tool?

bitdivision 2 days ago||
Looks great. Interesting to see that a lot of stations are included but without prices.

Note, in brave on linux I can't see the map. Console has a lot of 401 on stadiamaps. But works great in chrome.

Mumps 3 days ago||
Thanks for putting this together! Couple QoL features I'd love to see:

1. filter slider, decreasing on price, to see places closest to me disappearing 2. on the left panel, when I click on a low priced area, it should highlight it on the map, so I know where it is. The 'go to pump' button, I guess is good. but I'd only want to commit to gmaps if I already know that it's a reasonable place for me to. be going.

cpfleming 5 days ago||
Bit better than the original trial of "stick a JSON file somewhere on your website" - neat.
xnorswap 5 days ago||
This is great news. There used to be a handy email newsletter that did this, but then when everything became "apps" the newsletter disappeared in favour of an app, which then became a premium paid service only.
embedding-shape 5 days ago|
It's missing closing the circle with one of the users of the premium paid only service to start their own newsletter because they got tired of the paid product. It's only a matter of time.
dang 4 days ago||
See also: UK-fuel-price-map: A web UI for the UK fuel price data - https://news.ycombinator.com/item?id=46857520

(no comments there yet though!)

londons_explore 5 days ago||
They have a REST API for the stations... Great.

But they also need a little WebUI for stations to manually update prices, since small stations won't have a programmer on staff to do this stuff.

n4r9 5 days ago||
According to this webpage you can do it by phone: https://www.gov.uk/guidance/report-your-fuel-prices-and-fore...

I wouldn't look forward to having to do that every time I changed prices!

I wonder how many small independent stations are there these days? Almost every one I see is either in a supermarket, a big chain like Esso, or a smaller chain like Harvest.

advisedwang 4 days ago||
https://www.gov.uk/guidance/report-your-fuel-prices-and-fore... does have a Web interface for updating prices.
More comments...