英国政府推出加油站油价API接口。
UK government launches fuel forecourt price API

原始链接: https://www.gov.uk/guidance/access-the-latest-fuel-prices-and-forecourt-data-via-api-or-email

## 燃油查找:摘要 燃油查找是一项新的政府服务,旨在帮助司机找到附近的最低价燃油。它通过向第三方应用程序、网站和开发者公开实时燃油价格数据来实现这一目标。 用户可以通过三种方式访问数据:下载每日CSV文件、订阅包含CSV链接的电子邮件更新,或使用RESTful API(需要通过GOV.UK One Login和OAuth 2.0进行身份验证)。数据包括按燃油类型的当前价格、加油站详情(如地址和营业时间)以及更新时间戳——价格会在变更后30分钟内更新。 这项服务面向广泛的受众,包括比价网站、应用程序开发者、研究人员、记者以及寻求利用燃油价格信息构建工具的个人。可通过燃油查找团队获得支持。

## 英国政府推出油价API - 摘要 英国政府推出了一款API,提供实时油价数据,要求零售商在油价变动后30分钟内更新价格。此举旨在提高市场透明度,并帮助消费者找到最便宜的油价。 Hacker News上的讨论显示,人们对购买汽油的态度很复杂,通常会优先考虑便利性、品牌忠诚度或感知质量,而不是价格。许多评论员强调了现有的应用程序(如澳大利亚的FuelWatch和PetrolPrices),以及与导航系统集成的潜力,以优化购油决策。 人们对数据报告要求的执行以及价格趋同的可能性表示担忧,但也有人认为,增加的信息可以增强消费者的力量并促进竞争。此次发布普遍被视为积极的一步,并与德国和澳大利亚等其他国家的成功系统进行比较,并认识到易于获取、准确的价格数据是自由市场运作的关键组成部分。还有人指出,电动汽车充电领域也可能出现类似的透明化举措。
相关文章

原文

Fuel Finder is a new government service that helps drivers find the cheapest fuel near them. It makes fuel prices available to third party apps and websites so motorists can compare prices easily.

Who can use this service

Anyone can use this service to integrate the Fuel Finder data into their own tools and services. This includes:

  • comparison websites
  • app and website developers
  • professional organisations
  • academics
  • journalists
  • individuals

If you just need fuel prices, you can find the information on participating third party apps and websites.

What you get

  • current retail prices of all the petrol station by fuel type
  • forecourt details (address, operator, brand)
  • site amenities and opening hours
  • update timestamps for each price and site

Prices are published within 30 minutes of any change.

How to access the data

You can access the data in the following ways:

1. By downloading the CSV file

Download a CSV file containing current prices and forecourt details (updated twice a day).

2. By subscribing to the CSV file via email

Subscribe to get a link to the latest CSV when it’s published.

3. By using the API

Use the public API by integrating the data into your own tools and services.

The API follows REST principles: resources have stable URLs and map to standard HTTP methods. You can read data by issuing simple GET requests to the relevant resource URL.

Access to API services requires authentication. The Fuel Finder API supports OAuth 2.0 (client credentials).

Before you start

You’ll need:

  • a GOV.UK One Login
  • knowledge of your target geographic areas or specific forecourt requirements
  • understanding of REST API principles (APIs only)
  • technical capability to integrate with JSON APIs (APIs only)

Start now

Get help and support

Contact the Fuel Finder Team if you have any problems with the Fuel Finder service.

Updates to this page

Published 2 February 2026

Sign up for emails or print this page

联系我们 contact @ memedata.com