Immerse yourself in the Keystone State's charm with our Pennsylvania Fuel Prices API, your essential tool for navigating the rich tapestry of landscapes and destinations across Pennsylvania. Offering real-time updates on gasoline, diesel, and alternative fuel prices statewide, our API empowers travelers, businesses, and logistics professionals to make informed decisions and streamline their operations.
Whether you're planning a cultural excursion through Pittsburgh's vibrant neighborhoods or managing a fleet of vehicles for industrial operations in Harrisburg, our comprehensive fuel price solution ensures you stay ahead of market fluctuations. Seamlessly integrated into your existing systems and applications, our API provides customizable features tailored to your specific needs, offering flexibility and convenience.
Stay agile and responsive with our API's reliable data streams, enabling you to adapt to changing circumstances and optimize your travel budgets or distribution routes effectively. From the lush greenery of the Pocono Mountains to the bustling cityscapes of Philadelphia, our API enhances your journey with unparalleled convenience and efficiency.
Unlock new opportunities for savings and efficiency as you explore Pennsylvania's diverse landscapes and iconic landmarks. Trust our Pennsylvania Fuel Prices API to guide you on your travels, ensuring you make the most of your experience in the heart of the Mid-Atlantic region. Start your journey today and discover the difference firsthand.
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 Pennsylvania 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 |
---|---|
state |
[Required] State Code |
{"status":200,"success":true,"state":"Pennsylvania","date":"2024-02-29","prices":{"regular":"$3.498","mid-grade":"$3.895","premium":"$4.212","diesel":"$4.497"}}
curl --location --request GET 'https://zylalabs.com/api/3610/pennsylvania+fuel+prices+api/4007/latest+prices?state=PA' --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 |
---|---|
state |
[Required] State code |
{"status":200,"success":true,"state":"Pennsylvania","date":"2024-02-29","prices":{"today_average":{"regular":"$3.498","mid-grade":"$3.895","premium":"$4.212","diesel":"$4.497"},"yesterday_average":{"regular":"$3.504","mid-grade":"$3.902","premium":"$4.221","diesel":"$4.504"},"week_ago_average":{"regular":"$3.536","mid-grade":"$3.933","premium":"$4.253","diesel":"$4.525"},"month_ago_average":{"regular":"$3.351","mid-grade":"$3.712","premium":"$3.997","diesel":"$4.453"},"year_ago_average":{"regular":"$3.621","mid-grade":"$4.015","premium":"$4.315","diesel":"$4.888"}}}
curl --location --request GET 'https://zylalabs.com/api/3610/pennsylvania+fuel+prices+api/4008/average+per+state?state=PA' --header 'Authorization: Bearer YOUR_API_KEY'
PAss the state code, and receive the averages from the metro areas within that state.
Metro Area Averages - Endpoint Features
Object | Description |
---|---|
state |
[Required] State code |
{"status":200,"success":true,"state":"Pennsylvania","date":"2025-01-23","prices":{"Allentown-Bethlehem-Easton":{"today_average":{"regular":"$3.261","mid-grade":"$3.711","premium":"$4.068","diesel":"$4.000"},"yesterday_average":{"regular":"$3.263","mid-grade":"$3.716","premium":"$4.066","diesel":"$3.993"},"week_ago_average":{"regular":"$3.224","mid-grade":"$3.692","premium":"$4.051","diesel":"$3.905"},"month_ago_average":{"regular":"$3.078","mid-grade":"$3.538","premium":"$3.894","diesel":"$3.776"},"year_ago_average":{"regular":"$3.265","mid-grade":"$3.714","premium":"$4.049","diesel":"$4.410"}},"Erie":{"today_average":{"regular":"$3.559","mid-grade":"$3.938","premium":"$4.330","diesel":"$4.182"},"yesterday_average":{"regular":"$3.559","mid-grade":"$3.928","premium":"$4.315","diesel":"$4.173"},"week_ago_average":{"regular":"$3.446","mid-grade":"$3.844","premium":"$4.242","diesel":"$4.052"},"month_ago_average":{"regular":"$3.365","mid-grade":"$3.786","premium":"$4.165","diesel":"$4.191"},"year_ago_average":{"regular":"$3.247","mid-grade":"$3.559","premium":"$3.893","diesel":"$4.509"}},"Harrisburg":{"today_average":{"regular":"$3.336","mid-grade":"$3.778","premium":"$4.140","diesel":"$4.176"},"yesterday_average":{"regular":"$3.341","mid-grade":"$3.777","premium":"$4.147","diesel":"$4.173"},"week_ago_average":{"regular":"$3.315","mid-grade":"$3.745","premium":"$4.131","diesel":"$4.110"},"month_ago_average":{"regular":"$3.198","mid-grade":"$3.643","premium":"$4.022","diesel":"$4.065"},"year_ago_average":{"regular":"$3.358","mid-grade":"$3.704","premium":"$4.050","diesel":"$4.503"}},"Lancaster":{"today_average":{"regular":"$3.361","mid-grade":"$3.759","premium":"$4.122","diesel":"$4.084"},"yesterday_average":{"regular":"$3.370","mid-grade":"$3.772","premium":"$4.143","diesel":"$4.080"},"week_ago_average":{"regular":"$3.309","mid-grade":"$3.711","premium":"$4.061","diesel":"$3.971"},"month_ago_average":{"regular":"$3.193","mid-grade":"$3.610","premium":"$3.962","diesel":"$3.877"},"year_ago_average":{"regular":"$3.335","mid-grade":"$3.683","premium":"$3.976","diesel":"$4.372"}},"Reading":{"today_average":{"regular":"$3.337","mid-grade":"$3.766","premium":"$4.107","diesel":"$4.032"},"yesterday_average":{"regular":"$3.347","mid-grade":"$3.775","premium":"$4.131","diesel":"$4.026"},"week_ago_average":{"regular":"$3.305","mid-grade":"$3.721","premium":"$4.035","diesel":"$3.955"},"month_ago_average":{"regular":"$3.182","mid-grade":"$3.596","premium":"$3.918","diesel":"$3.738"},"year_ago_average":{"regular":"$3.349","mid-grade":"$3.733","premium":"$4.018","diesel":"$4.345"}},"Scranton--Wilkes-Barre--Hazleton":{"today_average":{"regular":"$3.338","mid-grade":"$3.734","premium":"$4.128","diesel":"$4.114"},"yesterday_average":{"regular":"$3.338","mid-grade":"$3.751","premium":"$4.133","diesel":"$4.114"},"week_ago_average":{"regular":"$3.299","mid-grade":"$3.696","premium":"$4.088","diesel":"$4.056"},"month_ago_average":{"regular":"$3.175","mid-grade":"$3.601","premium":"$3.995","diesel":"$3.979"},"year_ago_average":{"regular":"$3.325","mid-grade":"$3.711","premium":"$4.085","diesel":"$4.548"}},"York":{"today_average":{"regular":"$3.411","mid-grade":"$3.815","premium":"$4.195","diesel":"$4.160"},"yesterday_average":{"regular":"$3.418","mid-grade":"$3.812","premium":"$4.200","diesel":"$4.152"},"week_ago_average":{"regular":"$3.378","mid-grade":"$3.777","premium":"$4.162","diesel":"$4.074"},"month_ago_average":{"regular":"$3.207","mid-grade":"$3.620","premium":"$4.008","diesel":"$3.990"},"year_ago_average":{"regular":"$3.392","mid-grade":"$3.711","premium":"$4.025","diesel":"$4.509"}},"Philadelphia (PA only)":{"today_average":{"regular":"$3.265","mid-grade":"$3.742","premium":"$3.992","diesel":"$4.009"},"yesterday_average":{"regular":"$3.269","mid-grade":"$3.742","premium":"$3.998","diesel":"$3.999"},"week_ago_average":{"regular":"$3.195","mid-grade":"$3.676","premium":"$3.933","diesel":"$3.953"},"month_ago_average":{"regular":"$3.061","mid-grade":"$3.545","premium":"$3.820","diesel":"$3.728"},"year_ago_average":{"regular":"$3.298","mid-grade":"$3.784","premium":"$4.039","diesel":"$4.413"}},"Altoona":{"today_average":{"regular":"$3.525","mid-grade":"$3.954","premium":"$4.336","diesel":"$4.132"},"yesterday_average":{"regular":"$3.529","mid-grade":"$3.951","premium":"$4.343","diesel":"$4.135"},"week_ago_average":{"regular":"$3.520","mid-grade":"$3.931","premium":"$4.303","diesel":"$4.051"},"month_ago_average":{"regular":"$3.330","mid-grade":"$3.751","premium":"$4.140","diesel":"$3.985"},"year_ago_average":{"regular":"$3.259","mid-grade":"$3.587","premium":"$3.887","diesel":"$4.428"}}}}
curl --location --request GET 'https://zylalabs.com/api/3610/pennsylvania+fuel+prices+api/4009/metro+area+averages?state=PA' --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.
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 regular, mid-grade, premium gasoline, and diesel in Pennsylvania. The response includes the state, date of the data, and a structured list of prices for each fuel type.
The response includes fields for today's average, yesterday's average, weekly average, monthly average, and yearly average prices for regular, mid-grade, premium gasoline, and diesel. Each price is clearly labeled for easy interpretation.
The response data is organized by metro area, with each area containing average fuel prices for today, yesterday, a week ago, a month ago, and a year ago. Each price type (regular, mid-grade, premium, diesel) is presented in a structured format for clarity.
The "GET Latest Prices" endpoint accepts a state code as a parameter. Users can specify the state they want to query to receive the latest fuel prices for that particular state.
Users can customize their requests by passing the state code to retrieve average fuel prices for that specific state. The endpoint provides various averages, allowing users to analyze price trends over different time frames.
The Pennsylvania Fuel Prices API aggregates data from various fuel price reporting sources, including gas stations and industry reports. This ensures a comprehensive and accurate representation of current fuel prices across the state.
Typical use cases include helping consumers find the cheapest gas stations in specific metro areas, assisting fleet managers in planning refueling stops, and enabling market analysts to study regional fuel price trends for economic insights.
Users can analyze the returned data to make informed decisions about refueling locations, track price trends over time, and optimize travel routes based on current fuel prices. The structured format allows for easy integration into applications and systems.
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, refer to the βX-Zyla-API-Calls-Monthly-Remainingβ field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.
To see the maximum number of API requests your plan allows, check the βX-Zyla-RateLimit-Limitβ response header. For instance, if your plan includes 1,000 requests per month, this header will display 1,000.
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 3,600, it means 3,600 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 give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.
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 free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.
Service Level:
100%
Response Time:
4,745ms
Service Level:
100%
Response Time:
1,202ms
Service Level:
100%
Response Time:
1,383ms
Service Level:
100%
Response Time:
482ms
Service Level:
100%
Response Time:
1,349ms
Service Level:
100%
Response Time:
4,761ms
Service Level:
100%
Response Time:
1,826ms
Service Level:
100%
Response Time:
2,843ms
Service Level:
100%
Response Time:
13,003ms
Service Level:
100%
Response Time:
1,015ms
Service Level:
100%
Response Time:
246ms
Service Level:
100%
Response Time:
1,425ms
Service Level:
88%
Response Time:
1,673ms
Service Level:
100%
Response Time:
276ms
Service Level:
100%
Response Time:
2,242ms
Service Level:
100%
Response Time:
225ms
Service Level:
100%
Response Time:
213ms
Service Level:
100%
Response Time:
1,442ms
Service Level:
100%
Response Time:
3,679ms
Service Level:
100%
Response Time:
3,100ms