Unlock real-time insights with our US Fuel Prices per State API. Instantly access up-to-date fuel prices across the nation, empowering businesses to optimize logistics, drivers to plan cost-efficient routes, and consumers to make informed decisions. Streamline operations and stay ahead in the dynamic fuel market with our comprehensive API solution.
{"status":200,"success":true,"state":"Alabama","date":"2024-02-26","prices":{"regular":"$2.967","mid-grade":"$3.362","premium":"$3.751","diesel":"$3.862"}}
curl --location --request GET 'https://zylalabs.com/api/3570/us+fuel+prices+per+state+api/3929/latest+prices?state=AL' --header 'Authorization: Bearer YOUR_API_KEY'
{"status":200,"success":true,"state":"Arkansas","date":"2025-01-16","prices":{"today_average":{"regular":"$2.711","mid-grade":"$3.125","premium":"$3.495","diesel":"$3.218"},"yesterday_average":{"regular":"$2.698","mid-grade":"$3.104","premium":"$3.472","diesel":"$3.205"},"week_ago_average":{"regular":"$2.708","mid-grade":"$3.122","premium":"$3.495","diesel":"$3.202"},"month_ago_average":{"regular":"$2.592","mid-grade":"$2.996","premium":"$3.363","diesel":"$3.148"},"year_ago_average":{"regular":"$2.620","mid-grade":"$3.006","premium":"$3.392","diesel":"$3.604"}}}
curl --location --request GET 'https://zylalabs.com/api/3570/us+fuel+prices+per+state+api/3930/average+per+state?state=AL' --header 'Authorization: Bearer YOUR_API_KEY'
{"status":200,"success":true,"state":"New York","date":"2024-05-13","prices":{"Albany-Schenectady-Troy":{"today_average":{"regular":"$3.722","mid-grade":"$4.218","premium":"$4.666","diesel":"$4.294"},"yesterday_average":{"regular":"$3.723","mid-grade":"$4.234","premium":"$4.676","diesel":"$4.307"},"week_ago_average":{"regular":"$3.740","mid-grade":"$4.236","premium":"$4.678","diesel":"$4.304"},"month_ago_average":{"regular":"$3.588","mid-grade":"$4.077","premium":"$4.517","diesel":"$4.320"},"year_ago_average":{"regular":"$3.690","mid-grade":"$4.135","premium":"$4.532","diesel":"$4.638"}},"Binghamton":{"today_average":{"regular":"$3.698","mid-grade":"$4.098","premium":"$4.513","diesel":"$4.400"},"yesterday_average":{"regular":"$3.700","mid-grade":"$4.116","premium":"$4.527","diesel":"$4.388"},"week_ago_average":{"regular":"$3.697","mid-grade":"$4.099","premium":"$4.490","diesel":"$4.432"},"month_ago_average":{"regular":"$3.488","mid-grade":"$3.870","premium":"$4.251","diesel":"$4.488"},"year_ago_average":{"regular":"$3.707","mid-grade":"$4.051","premium":"$4.420","diesel":"$4.660"}},"Buffalo-Niagara Falls":{"today_average":{"regular":"$3.663","mid-grade":"$4.075","premium":"$4.429","diesel":"$4.338"},"yesterday_average":{"regular":"$3.665","mid-grade":"$4.074","premium":"$4.443","diesel":"$4.353"},"week_ago_average":{"regular":"$3.654","mid-grade":"$4.067","premium":"$4.439","diesel":"$4.361"},"month_ago_average":{"regular":"$3.436","mid-grade":"$3.841","premium":"$4.195","diesel":"$4.356"},"year_ago_average":{"regular":"$3.692","mid-grade":"$4.093","premium":"$4.421","diesel":"$4.896"}},"Nassau-Suffolk":{"today_average":{"regular":"$3.668","mid-grade":"$4.161","premium":"$4.504","diesel":"$4.306"},"yesterday_average":{"regular":"$3.671","mid-grade":"$4.158","premium":"$4.506","diesel":"$4.318"},"week_ago_average":{"regular":"$3.691","mid-grade":"$4.167","premium":"$4.513","diesel":"$4.336"},"month_ago_average":{"regular":"$3.401","mid-grade":"$3.907","premium":"$4.245","diesel":"$4.332"},"year_ago_average":{"regular":"$3.571","mid-grade":"$4.042","premium":"$4.359","diesel":"$4.372"}},"Rochester":{"today_average":{"regular":"$3.688","mid-grade":"$4.095","premium":"$4.461","diesel":"$4.387"},"yesterday_average":{"regular":"$3.690","mid-grade":"$4.106","premium":"$4.471","diesel":"$4.399"},"week_ago_average":{"regular":"$3.687","mid-grade":"$4.099","premium":"$4.476","diesel":"$4.386"},"month_ago_average":{"regular":"$3.471","mid-grade":"$3.884","premium":"$4.263","diesel":"$4.395"},"year_ago_average":{"regular":"$3.727","mid-grade":"$4.136","premium":"$4.509","diesel":"$4.972"}},"Syracuse":{"today_average":{"regular":"$3.692","mid-grade":"$4.149","premium":"$4.512","diesel":"$4.328"},"yesterday_average":{"regular":"$3.691","mid-grade":"$4.150","premium":"$4.500","diesel":"$4.353"},"week_ago_average":{"regular":"$3.704","mid-grade":"$4.139","premium":"$4.507","diesel":"$4.348"},"month_ago_average":{"regular":"$3.488","mid-grade":"$3.903","premium":"$4.304","diesel":"$4.354"},"year_ago_average":{"regular":"$3.695","mid-grade":"$4.148","premium":"$4.502","diesel":"$4.830"}},"Utica-Rome":{"today_average":{"regular":"$3.745","mid-grade":"$4.197","premium":"$4.640","diesel":"$4.372"},"yesterday_average":{"regular":"$3.744","mid-grade":"$4.214","premium":"$4.639","diesel":"$4.367"},"week_ago_average":{"regular":"$3.748","mid-grade":"$4.200","premium":"$4.634","diesel":"$4.376"},"month_ago_average":{"regular":"$3.603","mid-grade":"$4.047","premium":"$4.490","diesel":"$4.392"},"year_ago_average":{"regular":"$3.683","mid-grade":"$4.104","premium":"$4.523","diesel":"$4.889"}},"Dutchess-Putnam County":{"today_average":{"regular":"$3.759","mid-grade":"$4.294","premium":"$4.688","diesel":"$4.269"},"yesterday_average":{"regular":"$3.763","mid-grade":"$4.289","premium":"$4.700","diesel":"$4.252"},"week_ago_average":{"regular":"$3.771","mid-grade":"$4.332","premium":"$4.729","diesel":"$4.274"},"month_ago_average":{"regular":"$3.519","mid-grade":"$4.042","premium":"$4.456","diesel":"$4.266"},"year_ago_average":{"regular":"$3.705","mid-grade":"$4.248","premium":"$4.603","diesel":"$4.670"}},"Elmira":{"today_average":{"regular":"$3.600","mid-grade":"$3.979","premium":"$4.314","diesel":"$4.109"},"yesterday_average":{"regular":"$3.599","mid-grade":"$3.970","premium":"$4.321","diesel":"$4.116"},"week_ago_average":{"regular":"$3.636","mid-grade":"$4.053","premium":"$4.422","diesel":"$4.131"},"month_ago_average":{"regular":"$3.414","mid-grade":"$3.782","premium":"$4.122","diesel":"$4.233"},"year_ago_average":{"regular":"$3.673","mid-grade":"$4.046","premium":"$4.376","diesel":"$4.428"}}}}
curl --location --request GET 'https://zylalabs.com/api/3570/us+fuel+prices+per+state+api/3931/metro+area+averages?state=AK' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the US Fuel Prices per State API simply include your bearer token in the Authorization header.
| 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.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
Introducing our US Fuel Prices per State API, a powerful tool designed to revolutionize how businesses, consumers, and policymakers navigate the dynamic landscape of fuel pricing. With real-time access to accurate and reliable data, users can stay informed about the latest fuel prices across all states, enabling precise planning, strategic decision-making, and cost optimization.
Whether you're a fleet manager seeking to minimize operational expenses, a traveler planning a budget-friendly road trip, or an analyst examining trends in energy markets, our API offers unparalleled insights into the ever-changing fuel economy. From gasoline to diesel, our comprehensive database covers a wide range of fuel types, ensuring that users have access to the information they need to stay ahead of the curve.
Built with simplicity and efficiency in mind, our API seamlessly integrates into existing systems and applications, providing hassle-free access to crucial data points. With customizable features and user-friendly documentation, implementation is straightforward, allowing users to harness the full potential of our API with ease.
In an era where every cent counts and environmental sustainability is paramount, our US Fuel Prices per State API empowers stakeholders across industries to make informed decisions, optimize resources, and drive meaningful change. Join us in shaping the future of fuel management and transportation efficiency with our cutting-edge API solution.
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.
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. The response includes prices for regular, mid-grade, premium gasoline, and diesel, along with the state code and the date of the data.
The response includes fields such as "today_average," "yesterday_average," "week_ago_average," "month_ago_average," and "year_ago_average" for each fuel type (regular, mid-grade, premium, diesel), along with the state code and date.
The response data is organized by metro area within the specified state. Each metro area contains average fuel prices categorized by timeframes (today, yesterday, week ago, month ago, year ago) for various fuel types, providing a comprehensive view of local pricing.
Users can pass the state code as a parameter to the "GET Latest Prices" endpoint to retrieve the latest fuel prices for that specific state. The state code must be in the standard two-letter format (e.g., "CA" for California).
The "GET Average per State" endpoint provides average fuel prices for various timeframes (today, yesterday, week, month, year) for regular, mid-grade, premium, and diesel fuels, allowing users to analyze price trends over time.
Users can utilize the returned data by integrating it into applications for route planning, cost analysis, or market research. For example, fleet managers can analyze average prices to optimize refueling strategies, while consumers can find the cheapest stations nearby.
The US Fuel Prices API aggregates data from various reliable sources, including fuel retailers and government databases, ensuring that users receive accurate and up-to-date fuel price information.
Data accuracy is maintained through regular updates and quality checks. The API continuously monitors and verifies the data from its sources to ensure that the information provided reflects the current market conditions.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund