Welcome to the US Fuel Prices API, your comprehensive solution for accessing the latest fuel price data throughout the United States. Our API provides developers, businesses, and researchers with a powerful tool to integrate real-time fuel price information seamlessly into their applications, websites, and analytical tools.
With our API, you gain access to a vast database of fuel prices, including gasoline, diesel, and alternative fuels, updated regularly to ensure accuracy and reliability. Whether you're building a navigation app, a logistics platform, or conducting market research, our API offers the critical data you need to make informed decisions and enhance user experiences.
Unlock valuable insights into regional fuel price variations, track trends over time, and optimize routes to save time and money. Whether you're a transportation company seeking to minimize fuel costs, a consumer looking for the best prices in your area, or an analyst studying energy markets, our API empowers you with the information you need to succeed.
Our user-friendly documentation and robust support ensure smooth integration into your existing systems, while our commitment to data quality and reliability ensures that you always have access to the most accurate fuel price information available.
Experience the power of the US Fuel Prices API and revolutionize the way you access and utilize fuel price data today.
You can query the latest and average fuel prices per state, also you will receive prices for Diesel, premium, and regular.
Navigation Applications: Integration of the US Fuel Prices API enables navigation apps to provide users with real-time fuel prices along their routes. Users can choose the most cost-effective gas stations, optimizing their travel expenses.
Fleet Management Systems: Fleet managers can utilize the API to monitor fuel prices across different regions, optimizing routes to refuel at locations with the most competitive prices. This helps reduce operational costs for transportation companies.
Consumer Applications: Mobile apps can leverage the API to display nearby gas stations along with current fuel prices, helping users find the cheapest options in their vicinity and plan their refueling stops efficiently.
Market Analysis Tools: Researchers and analysts can utilize the API to gather historical fuel price data, identify trends, and conduct market analysis. This information can be invaluable for predicting future price movements and making informed investment decisions in the energy sector.
Environmental Impact Assessment: Environmental organizations and policymakers can use the API to analyze fuel price fluctuations and their impact on consumer behavior. Understanding how changes in fuel prices influence vehicle usage patterns can inform policy decisions aimed at reducing carbon emissions and promoting sustainable transportation options.
Besides the number of API calls per plan, there are no other limitations.
Pass the State code and receive the latest fuel prices. Updated everyday!
Latest Prices - Endpoint Features
| Object | Description |
|---|
{"status":200,"success":true,"state":"Alabama","date":"2025-01-22","prices":{"regular":"$2.806","mid-grade":"$3.238","premium":"$3.629","diesel":"$3.456"}}
curl --location --request GET 'https://zylalabs.com/api/3554/us+fuel+prices+api/3910/latest+prices?state=AL' --header 'Authorization: Bearer YOUR_API_KEY'
Pass the state code and receive the average fuel prices per state. Today's average, yesterday's, weekly, and anually.
Average per State - Endpoint Features
| Object | Description |
|---|
{"status":200,"success":true,"state":"Alabama","date":"2025-01-22","prices":{"today_average":{"regular":"$2.806","mid-grade":"$3.238","premium":"$3.629","diesel":"$3.456"},"yesterday_average":{"regular":"$2.799","mid-grade":"$3.223","premium":"$3.614","diesel":"$3.447"},"week_ago_average":{"regular":"$2.757","mid-grade":"$3.181","premium":"$3.579","diesel":"$3.365"},"month_ago_average":{"regular":"$2.746","mid-grade":"$3.194","premium":"$3.583","diesel":"$3.334"},"year_ago_average":{"regular":"$2.803","mid-grade":"$3.215","premium":"$3.596","diesel":"$3.732"}}}
curl --location --request GET 'https://zylalabs.com/api/3554/us+fuel+prices+api/3912/average+per+state?state=AL' --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.
The API offers real-time and historical fuel price data for various fuel types, including gasoline, diesel, and alternative fuels, across the United States. It includes information such as fuel prices per gallon, location coordinates, and timestamps.
The data is updated at regular intervals, typically in real-time or near-real-time, ensuring that users have access to the latest fuel price information available from the sources we aggregate.
The API covers fuel prices across the entire United States, including all states, territories, and major metropolitan areas. Users can access data for specific regions or nationwide as needed.
Yes, the API provides access to historical fuel price data, allowing users to retrieve past prices for analysis, trend identification, and forecasting purposes.
The API may impose rate limits or usage restrictions to maintain service stability and fairness among users. Users can refer to the API documentation for details on rate limits and usage policies.
The "GET Latest Prices" endpoint returns the most recent fuel prices for a specified state, including regular, mid-grade, premium gasoline, and diesel prices. The response includes the state code, date of the data, and a structured list of prices.
The response for the "GET Average per State" endpoint includes fields such as today's average prices, yesterday's averages, weekly, monthly, and yearly averages for regular, mid-grade, premium gasoline, and diesel.
The response data for the "GET Metro Area Averages" endpoint is organized by state code and includes average fuel prices for various metro areas within that state. If no data is found, a message indicating this is returned.
The "GET Latest Prices" endpoint accepts a state code as a parameter. Users must provide a valid two-letter state abbreviation to retrieve the latest fuel prices for that specific state.
Users can utilize the returned data by integrating it into applications for route optimization, cost analysis, or consumer apps. For example, navigation apps can display the cheapest fuel options along a route using the latest prices.
The US Fuel Prices API aggregates data from various reliable sources, including fuel retailers and government databases, to ensure comprehensive coverage and accuracy of fuel price information across the United States.
The "GET Average per State" endpoint provides average fuel prices for regular, mid-grade, premium gasoline, and diesel for today, yesterday, a week ago, a month ago, and a year ago, allowing for trend analysis.
Users should check the response status and message fields. If the response indicates no data found, they can adjust their parameters or verify the state code used. Implementing error handling in applications can improve user experience.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
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.
Service Level:
100%
Response Time:
424ms
Service Level:
100%
Response Time:
748ms
Service Level:
100%
Response Time:
309ms
Service Level:
100%
Response Time:
437ms
Service Level:
100%
Response Time:
1,037ms
Service Level:
100%
Response Time:
1,049ms
Service Level:
67%
Response Time:
1,982ms
Service Level:
89%
Response Time:
705ms
Service Level:
100%
Response Time:
17ms
Service Level:
100%
Response Time:
6,897ms
Service Level:
100%
Response Time:
54ms
Service Level:
100%
Response Time:
1,156ms
Service Level:
100%
Response Time:
62ms
Service Level:
100%
Response Time:
8,868ms
Service Level:
100%
Response Time:
490ms
Service Level:
100%
Response Time:
329ms
Service Level:
100%
Response Time:
37ms
Service Level:
100%
Response Time:
248ms
Service Level:
100%
Response Time:
3,497ms
Service Level:
100%
Response Time:
26ms