The US Gas Prices API is a robust and dynamic resource that provides users with access to comprehensive and accurate information on fuel prices in the United States. In a world where the cost of fuel is subject to constant fluctuations, this API is a crucial tool for applications that aim to provide up-to-date and accurate data to users.
One of the most prominent features of the API is its ability to provide location-specific information. By providing accurate location-based gasoline prices, the API enables applications to deliver highly relevant data. This functionality is critical for users looking to find the best fuel prices in their vicinity or plan cost-effective fuel stops during travel.
Designed with ease of integration in mind, the US Gas Prices API ensures that users, regardless of their level of expertise, can seamlessly incorporate gas price data into their applications.
The versatility of the API lends itself to a myriad of applications in a variety of industries. Whether it is fuel price comparison, route planning, cost tracking or environmental impact calculation applications, the API can be adapted to meet a variety of needs. Its flexibility makes it a valuable asset for users looking to enhance their applications with accurate and relevant fuel price data.
The US Gas Prices API stands as a cornerstone in the fuel price information arena, providing developers and companies with a powerful tool to enhance their applications. With its accuracy, location-specific details, historical data analysis and easy integration, the API enables a wide range of applications to deliver timely and relevant information to users, ultimately contributing to more informed decision-making in the complex fuel price landscape.
It will receive parameters and provide you with a JSON.
Fuel Price Comparison Apps: Enable users to compare gas prices at different stations to find the most cost-effective option.
Route Planning Apps: Integrate real-time gas prices into navigation apps to optimize routes based on fuel costs.
Expense Tracking Apps: Assist users in managing and tracking their fuel expenses by providing up-to-date gas prices.
Budgeting Apps: Enhance budgeting tools by incorporating current gas prices, helping users plan and manage transportation costs.
Fleet Management Systems: Optimize fuel expenses for businesses with multiple vehicles by integrating gas price data into fleet management software.
Besides the number of API calls per month, there are no other limitations.
获取美国每个州的油价
{"success":true,"result":[{"currency":"usd","name":"Alaska","gasoline":"3.732","midGrade":"3.973","premium":"4.191","diesel":"3.738"},{"currency":"usd","name":"Alabama","gasoline":"2.968","midGrade":"3.403","premium":"3.790","diesel":"3.508"},{"currency":"usd","name":"Arkansas","gasoline":"3.005","midGrade":"3.414","premium":"3.789","diesel":"3.408"},{"currency":"usd","name":"Arizona","gasoline":"3.452","midGrade":"3.767","premium":"4.074","diesel":"3.698"},{"currency":"usd","name":"California","gasoline":"4.629","midGrade":"4.846","premium":"5.017","diesel":"4.955"},{"currency":"usd","name":"Colorado","gasoline":"3.435","midGrade":"3.825","premium":"4.143","diesel":"3.517"},{"currency":"usd","name":"Connecticut","gasoline":"3.391","midGrade":"4.010","premium":"4.354","diesel":"3.880"},{"currency":"usd","name":"District of Columbia","gasoline":"3.603","midGrade":"4.164","premium":"4.534","diesel":"3.985"},{"currency":"usd","name":"Delaware","gasoline":"3.183","midGrade":"3.725","premium":"4.039","diesel":"3.449"},{"currency":"usd","name":"Florida","gasoline":"3.350","midGrade":"3.782","premium":"4.103","diesel":"3.672"},{"currency":"usd","name":"Georgia","gasoline":"3.166","midGrade":"3.612","premium":"4.005","diesel":"3.680"},{"currency":"usd","name":"Hawaii","gasoline":"4.654","midGrade":"4.884","premium":"5.118","diesel":"5.426"},{"currency":"usd","name":"Iowa","gasoline":"3.143","midGrade":"3.426","premium":"3.884","diesel":"3.464"},{"currency":"usd","name":"Idaho","gasoline":"3.597","midGrade":"3.848","premium":"4.101","diesel":"3.651"},{"currency":"usd","name":"Illinois","gasoline":"3.709","midGrade":"4.293","premium":"4.729","diesel":"3.839"},{"currency":"usd","name":"Indiana","gasoline":"3.293","midGrade":"3.839","premium":"4.338","diesel":"3.799"},{"currency":"usd","name":"Kansas","gasoline":"3.059","midGrade":"3.384","premium":"3.689","diesel":"3.404"},{"currency":"usd","name":"Kentucky","gasoline":"3.108","midGrade":"3.635","premium":"4.056","diesel":"3.473"},{"currency":"usd","name":"Louisiana","gasoline":"2.960","midGrade":"3.380","premium":"3.756","diesel":"3.410"},{"currency":"usd","name":"Massachusetts","gasoline":"3.352","midGrade":"3.926","premium":"4.286","diesel":"3.944"},{"currency":"usd","name":"Maryland","gasoline":"3.285","midGrade":"3.885","premium":"4.201","diesel":"3.602"},{"currency":"usd","name":"Maine","gasoline":"3.378","midGrade":"3.874","premium":"4.354","diesel":"3.974"},{"currency":"usd","name":"Michigan","gasoline":"3.421","midGrade":"3.977","premium":"4.528","diesel":"3.784"},{"currency":"usd","name":"Minnesota","gasoline":"3.183","midGrade":"3.566","premium":"3.988","diesel":"3.569"},{"currency":"usd","name":"Missouri","gasoline":"3.040","midGrade":"3.381","premium":"3.688","diesel":"3.371"},{"currency":"usd","name":"Mississippi","gasoline":"2.886","midGrade":"3.307","premium":"3.674","diesel":"3.377"},{"currency":"usd","name":"Montana","gasoline":"3.447","midGrade":"3.766","premium":"4.060","diesel":"3.743"},{"currency":"usd","name":"North Carolina","gasoline":"3.150","midGrade":"3.599","premium":"3.983","diesel":"3.639"},{"currency":"usd","name":"North Dakota","gasoline":"3.264","midGrade":"3.584","premium":"3.890","diesel":"3.579"},{"currency":"usd","name":"Nebraska","gasoline":"3.163","midGrade":"3.372","premium":"3.785","diesel":"3.427"},{"currency":"usd","name":"New Hampshire","gasoline":"3.297","midGrade":"3.837","premium":"4.268","diesel":"3.936"},{"currency":"usd","name":"New Jersey","gasoline":"3.241","midGrade":"3.819","premium":"4.093","diesel":"3.586"},{"currency":"usd","name":"New Mexico","gasoline":"3.292","midGrade":"3.682","premium":"3.987","diesel":"3.542"},{"currency":"usd","name":"Nevada","gasoline":"3.968","midGrade":"4.218","premium":"4.459","diesel":"3.793"},{"currency":"usd","name":"New York","gasoline":"3.489","midGrade":"4.006","premium":"4.388","diesel":"4.143"},{"currency":"usd","name":"Ohio","gasoline":"3.316","midGrade":"3.842","premium":"4.356","diesel":"3.731"},{"currency":"usd","name":"Oklahoma","gasoline":"2.943","midGrade":"3.299","premium":"3.560","diesel":"3.183"},{"currency":"usd","name":"Oregon","gasoline":"3.792","midGrade":"4.023","premium":"4.274","diesel":"3.958"},{"currency":"usd","name":"Pennsylvania","gasoline":"3.499","midGrade":"3.938","premium":"4.287","diesel":"4.133"},{"currency":"usd","name":"Rhode Island","gasoline":"3.275","midGrade":"3.931","premium":"4.274","diesel":"3.963"},{"currency":"usd","name":"South Carolina","gasoline":"3.019","midGrade":"3.462","premium":"3.826","diesel":"3.449"},{"currency":"usd","name":"South Dakota","gasoline":"3.244","midGrade":"3.438","premium":"3.871","diesel":"3.389"},{"currency":"usd","name":"Tennessee","gasoline":"2.959","midGrade":"3.387","premium":"3.763","diesel":"3.454"},{"currency":"usd","name":"Texas","gasoline":"2.946","midGrade":"3.399","premium":"3.739","diesel":"3.241"},{"currency":"usd","name":"Utah","gasoline":"3.594","midGrade":"3.844","premium":"4.056","diesel":"3.515"},{"currency":"usd","name":"Virginia","gasoline":"3.227","midGrade":"3.697","premium":"4.070","diesel":"3.671"},{"currency":"usd","name":"Vermont","gasoline":"3.374","midGrade":"3.927","premium":"4.335","diesel":"3.806"},{"currency":"usd","name":"Washington","gasoline":"4.168","midGrade":"4.436","premium":"4.652","diesel":"4.466"},{"currency":"usd","name":"Wisconsin","gasoline":"3.227","midGrade":"3.707","premium":"4.188","diesel":"3.551"},{"currency":"usd","name":"West Virginia","gasoline":"3.296","midGrade":"3.703","premium":"4.137","diesel":"3.726"},{"currency":"usd","name":"Wyoming","gasoline":"3.360","midGrade":"3.625","premium":"3.899","diesel":"3.595"}]}
curl --location --request GET 'https://zylalabs.com/api/3109/us+gas+prices+api/3297/usa+prices' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
要使用此API,只需运行您的单一端点,您将获得来自不同州的油价
美国油价API是一个强大而动态的工具,提供用户获取美国各地燃料价格的完整和准确的信息
Zyla为几乎所有编程语言提供了广泛的集成方法。您可以根据需要使用这些代码与您的项目集成
有不同的计划适合每个人,包括一个小额度请求的免费试用,但其速率有限制以防止滥用服务
GET USA Prices接口返回的JSON数据包含美国各州当前的汽油价格,包括普通汽油、中等级汽油、优质汽油和柴油价格
响应数据中的关键字段包括“货币”、“名称”(州名)、“汽油”、“中级”、“优质”和“柴油”,它们代表燃料类型及其各自的价格
响应数据组织为一个JSON对象,其中包含一个“success”布尔值和一个“result”数组。数组中的每个元素对应一个州,并包含其燃油价格详情
该端点提供美国所有州各种类型汽油(普通油、中档油、高档油)和柴油的特定位置燃料价格,使用户能够轻松比较价格
用户可以通过指定参数,如州或燃料类型,来自定义他们的请求,从而检索与其需求相关的特定数据
这些数据来源于可靠的燃料价格报告机构,并定期更新以确保准确性并反映当前市场状况
典型的使用案例包括燃料价格比较应用程序 路线规划工具 费用追踪应用程序和车队管理系统 所有这些都利用实时燃料价格数据
用户可以分析返回的数据以确定最便宜的燃料选择根据燃料成本规划旅行路线并跟踪燃料费用以进行预算和财务规划
服务级别:
100%
响应时间:
309ms
服务级别:
100%
响应时间:
437ms
服务级别:
100%
响应时间:
424ms
服务级别:
67%
响应时间:
1,982ms
服务级别:
100%
响应时间:
457ms
服务级别:
100%
响应时间:
748ms
服务级别:
100%
响应时间:
1,037ms
服务级别:
100%
响应时间:
1,049ms
服务级别:
100%
响应时间:
3,862ms
服务级别:
100%
响应时间:
705ms
服务级别:
100%
响应时间:
290ms
服务级别:
100%
响应时间:
2,954ms
服务级别:
100%
响应时间:
2,358ms
服务级别:
100%
响应时间:
1,336ms
服务级别:
100%
响应时间:
2,452ms
服务级别:
100%
响应时间:
187ms
服务级别:
100%
响应时间:
173ms
服务级别:
100%
响应时间:
1,053ms
服务级别:
100%
响应时间:
372ms
服务级别:
100%
响应时间:
660ms