The US Gas Cost Data API serves as a dynamic and robust platform, providing users with complete and accurate information on fuel costs in the United States. In an environment where fuel expenses experience constant fluctuations, this API emerges as a critical resource for applications that strive to provide users with accurate and up-to-date data.
A notable feature of the API lies in its ability to provide location-specific information. By offering accurate gas prices tailored to specific locations, the API enables applications to disseminate highly relevant data. This functionality is invaluable for users looking for optimal fuel prices nearby or planning profitable refueling stops during the trip.
Designed with seamless integration in mind, the US Gas Cost Data API ensures accessibility for users of varying experience levels, making it easy to effortlessly incorporate gas price data into your applications.
The adaptability of the API makes it suitable for countless applications in various industries. Whether used for fuel price comparison, route planning, expense monitoring, or environmental impact assessments, the API can be tailored to meet a variety of needs, making it a valuable asset for users looking to enrich your applications with accurate and relevant fuel price data.
A cornerstone in the fuel price information space, the US Gas Cost Data API provides users with a powerful tool to enhance their applications. With its accuracy, location-specific information, historical data analysis capabilities, and easy-to-use integration, the API enables a broad spectrum of applications to provide users with timely and relevant information, ultimately fostering more informed decision making. in the midst of the complex panorama of fuel prices.
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.
Fetch the Gas Prices for every State in the US.
{"success":true,"result":[{"currency":"usd","name":"Alaska","gasoline":"3.563","midGrade":"3.797","premium":"4.042","diesel":"3.627"},{"currency":"usd","name":"Alabama","gasoline":"2.804","midGrade":"3.241","premium":"3.628","diesel":"3.368"},{"currency":"usd","name":"Arkansas","gasoline":"2.740","midGrade":"3.149","premium":"3.526","diesel":"3.238"},{"currency":"usd","name":"Arizona","gasoline":"3.214","midGrade":"3.538","premium":"3.860","diesel":"3.537"},{"currency":"usd","name":"California","gasoline":"4.519","midGrade":"4.741","premium":"4.916","diesel":"4.908"},{"currency":"usd","name":"Colorado","gasoline":"3.125","midGrade":"3.508","premium":"3.830","diesel":"3.503"},{"currency":"usd","name":"Connecticut","gasoline":"3.054","midGrade":"3.687","premium":"4.034","diesel":"3.685"},{"currency":"usd","name":"District of Columbia","gasoline":"3.274","midGrade":"3.819","premium":"4.243","diesel":"3.789"},{"currency":"usd","name":"Delaware","gasoline":"2.952","midGrade":"3.519","premium":"3.830","diesel":"3.489"},{"currency":"usd","name":"Florida","gasoline":"3.142","midGrade":"3.584","premium":"3.909","diesel":"3.478"},{"currency":"usd","name":"Georgia","gasoline":"2.943","midGrade":"3.381","premium":"3.780","diesel":"3.457"},{"currency":"usd","name":"Hawaii","gasoline":"4.578","midGrade":"4.796","premium":"5.055","diesel":"5.373"},{"currency":"usd","name":"Iowa","gasoline":"2.846","midGrade":"3.176","premium":"3.597","diesel":"3.324"},{"currency":"usd","name":"Idaho","gasoline":"3.241","midGrade":"3.478","premium":"3.728","diesel":"3.605"},{"currency":"usd","name":"Illinois","gasoline":"3.217","midGrade":"3.792","premium":"4.239","diesel":"3.638"},{"currency":"usd","name":"Indiana","gasoline":"2.930","midGrade":"3.478","premium":"3.984","diesel":"3.674"},{"currency":"usd","name":"Kansas","gasoline":"2.752","midGrade":"3.057","premium":"3.365","diesel":"3.249"},{"currency":"usd","name":"Kentucky","gasoline":"2.776","midGrade":"3.293","premium":"3.719","diesel":"3.321"},{"currency":"usd","name":"Louisiana","gasoline":"2.797","midGrade":"3.250","premium":"3.624","diesel":"3.251"},{"currency":"usd","name":"Massachusetts","gasoline":"3.042","midGrade":"3.622","premium":"3.985","diesel":"3.717"},{"currency":"usd","name":"Maryland","gasoline":"3.047","midGrade":"3.670","premium":"3.984","diesel":"3.564"},{"currency":"usd","name":"Maine","gasoline":"3.048","midGrade":"3.559","premium":"4.021","diesel":"3.770"},{"currency":"usd","name":"Michigan","gasoline":"3.071","midGrade":"3.644","premium":"4.212","diesel":"3.683"},{"currency":"usd","name":"Minnesota","gasoline":"2.966","midGrade":"3.383","premium":"3.797","diesel":"3.440"},{"currency":"usd","name":"Missouri","gasoline":"2.727","midGrade":"3.071","premium":"3.380","diesel":"3.185"},{"currency":"usd","name":"Mississippi","gasoline":"2.692","midGrade":"3.119","premium":"3.494","diesel":"3.175"},{"currency":"usd","name":"Montana","gasoline":"3.104","midGrade":"3.399","premium":"3.709","diesel":"3.501"},{"currency":"usd","name":"North Carolina","gasoline":"2.931","midGrade":"3.381","premium":"3.764","diesel":"3.474"},{"currency":"usd","name":"North Dakota","gasoline":"2.993","midGrade":"3.319","premium":"3.632","diesel":"3.490"},{"currency":"usd","name":"Nebraska","gasoline":"2.876","midGrade":"3.099","premium":"3.536","diesel":"3.262"},{"currency":"usd","name":"New Hampshire","gasoline":"2.979","midGrade":"3.533","premium":"3.959","diesel":"3.711"},{"currency":"usd","name":"New Jersey","gasoline":"2.920","midGrade":"3.517","premium":"3.785","diesel":"3.469"},{"currency":"usd","name":"New Mexico","gasoline":"2.957","midGrade":"3.347","premium":"3.656","diesel":"3.376"},{"currency":"usd","name":"Nevada","gasoline":"3.784","midGrade":"4.073","premium":"4.321","diesel":"3.734"},{"currency":"usd","name":"New York","gasoline":"3.175","midGrade":"3.681","premium":"4.066","diesel":"3.903"},{"currency":"usd","name":"Ohio","gasoline":"2.905","midGrade":"3.462","premium":"3.982","diesel":"3.564"},{"currency":"usd","name":"Oklahoma","gasoline":"2.632","midGrade":"2.983","premium":"3.241","diesel":"3.025"},{"currency":"usd","name":"Oregon","gasoline":"3.599","midGrade":"3.840","premium":"4.081","diesel":"3.886"},{"currency":"usd","name":"Pennsylvania","gasoline":"3.297","midGrade":"3.735","premium":"4.088","diesel":"4.000"},{"currency":"usd","name":"Rhode Island","gasoline":"2.949","midGrade":"3.651","premium":"3.999","diesel":"3.702"},{"currency":"usd","name":"South Carolina","gasoline":"2.847","midGrade":"3.291","premium":"3.653","diesel":"3.320"},{"currency":"usd","name":"South Dakota","gasoline":"2.952","midGrade":"3.155","premium":"3.567","diesel":"3.247"},{"currency":"usd","name":"Tennessee","gasoline":"2.772","midGrade":"3.204","premium":"3.580","diesel":"3.294"},{"currency":"usd","name":"Texas","gasoline":"2.679","midGrade":"3.126","premium":"3.478","diesel":"3.066"},{"currency":"usd","name":"Utah","gasoline":"3.221","midGrade":"3.475","premium":"3.697","diesel":"3.523"},{"currency":"usd","name":"Virginia","gasoline":"2.996","midGrade":"3.475","premium":"3.842","diesel":"3.514"},{"currency":"usd","name":"Vermont","gasoline":"3.125","midGrade":"3.706","premium":"4.103","diesel":"3.578"},{"currency":"usd","name":"Washington","gasoline":"4.014","midGrade":"4.269","premium":"4.507","diesel":"4.390"},{"currency":"usd","name":"Wisconsin","gasoline":"2.842","midGrade":"3.336","premium":"3.842","diesel":"3.384"},{"currency":"usd","name":"West Virginia","gasoline":"2.986","midGrade":"3.396","premium":"3.841","diesel":"3.606"},{"currency":"usd","name":"Wyoming","gasoline":"3.130","midGrade":"3.396","premium":"3.703","diesel":"3.521"}]}
curl --location --request GET 'https://zylalabs.com/api/3926/us+gas+cost+data+api/4648/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 commitments. One click upgrade/downgrade or cancellation. No questions asked.
To use this API just run your single endpoint and you will get gas prices from different states.
US Gas Cost Data 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.
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.
Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the worldβs most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]
Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, look at the βX-Zyla-API-Calls-Monthly-Remainingβ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.
To see the maximum number of API requests your plan allows, check the βX-Zyla-RateLimit-Limitβ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.
The βX-Zyla-RateLimit-Resetβ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.
Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]
To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.
After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, itβs important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.
Service Level:
100%
Response Time:
1,007ms
Service Level:
100%
Response Time:
2,179ms
Service Level:
100%
Response Time:
862ms
Service Level:
98%
Response Time:
1,480ms
Service Level:
100%
Response Time:
1,424ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
5,143ms
Service Level:
100%
Response Time:
520ms
Service Level:
100%
Response Time:
7,856ms
Service Level:
100%
Response Time:
1,621ms
Service Level:
100%
Response Time:
519ms
Service Level:
100%
Response Time:
260ms
Service Level:
100%
Response Time:
267ms
Service Level:
100%
Response Time:
2,148ms
Service Level:
100%
Response Time:
76ms
Service Level:
100%
Response Time:
622ms
Service Level:
100%
Response Time:
1,253ms