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'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
To use this API just run your single endpoint and you will get gas prices from different states.
US Gas Prices API is a robust and dynamic tool that provides users with access to complete and accurate information on fuel prices throughout the United States.
Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.
There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent abuse of the service.
The GET USA Prices endpoint returns JSON data containing current gasoline prices for each state in the US. This includes prices for regular gasoline, mid-grade, premium, and diesel fuels.
The key fields in the response data include "currency," "name" (state name), "gasoline," "midGrade," "premium," and "diesel," which represent the fuel types and their respective prices.
The response data is organized as a JSON object with a "success" boolean and a "result" array. Each element in the array corresponds to a state and contains its fuel price details.
The endpoint provides location-specific fuel prices for various types of gasoline (regular, mid-grade, premium) and diesel across all US states, enabling users to compare prices easily.
Users can customize their requests by specifying parameters such as state or fuel type, allowing them to retrieve specific data relevant to their needs.
The data is sourced from reliable fuel price reporting agencies and updated regularly to ensure accuracy and reflect current market conditions.
Typical use cases include fuel price comparison apps, route planning tools, expense tracking applications, and fleet management systems, all leveraging real-time fuel price data.
Users can analyze the returned data to identify the cheapest fuel options, plan travel routes based on fuel costs, and track fuel expenses for budgeting and financial planning.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
67%
Response Time:
1,982ms
Service Level:
100%
Response Time:
705ms
Service Level:
100%
Response Time:
3,862ms
Service Level:
50%
Response Time:
1,321ms
Service Level:
100%
Response Time:
7,051ms
Service Level:
100%
Response Time:
1,524ms
Service Level:
85%
Response Time:
2,410ms
Service Level:
100%
Response Time:
3,187ms
Service Level:
100%
Response Time:
309ms
Service Level:
99%
Response Time:
3,837ms
Service Level:
100%
Response Time:
519ms
Service Level:
100%
Response Time:
802ms
Service Level:
100%
Response Time:
360ms
Service Level:
100%
Response Time:
1,206ms
Service Level:
100%
Response Time:
660ms
Service Level:
100%
Response Time:
7,266ms
Service Level:
100%
Response Time:
1,322ms
Service Level:
100%
Response Time:
2,242ms
Service Level:
100%
Response Time:
1,983ms
Service Level:
100%
Response Time:
1,019ms