Discover the pulse of New Jersey's fuel market with our innovative Fuel Prices API. Access real-time data on gasoline, diesel, and alternative fuel prices across the state. Empower your applications with accurate insights for smarter decision-making in New Jersey's dynamic energy landscape.
{"status":200,"success":true,"state":"New Jersey","date":"2024-02-28","prices":{"regular":"$3.172","mid-grade":"$3.749","premium":"$4.010","diesel":"$4.088"}}
curl --location --request GET 'https://zylalabs.com/api/3591/new+jersey+fuel+prices+api/3969/latest+prices?state=NJ' --header 'Authorization: Bearer YOUR_API_KEY'
{"status":200,"success":true,"state":"New Jersey","date":"2024-02-28","prices":{"today_average":{"regular":"$3.172","mid-grade":"$3.749","premium":"$4.010","diesel":"$4.088"},"yesterday_average":{"regular":"$3.178","mid-grade":"$3.745","premium":"$4.016","diesel":"$4.095"},"week_ago_average":{"regular":"$3.217","mid-grade":"$3.796","premium":"$4.052","diesel":"$4.135"},"month_ago_average":{"regular":"$3.133","mid-grade":"$3.712","premium":"$3.992","diesel":"$4.021"},"year_ago_average":{"regular":"$3.195","mid-grade":"$3.766","premium":"$4.049","diesel":"$4.391"}}}
curl --location --request GET 'https://zylalabs.com/api/3591/new+jersey+fuel+prices+api/3970/average+per+state?state=NJ' --header 'Authorization: Bearer YOUR_API_KEY'
{"status":200,"success":true,"state":"New Jersey","date":"2024-02-28","prices":{"Atlantic City":{"today_average":{"regular":"$3.152","mid-grade":"$3.663","premium":"$3.860","diesel":"$4.032"},"yesterday_average":{"regular":"$3.166","mid-grade":"$3.667","premium":"$3.858","diesel":"$4.058"},"week_ago_average":{"regular":"$3.224","mid-grade":"$3.706","premium":"$3.908","diesel":"$4.111"},"month_ago_average":{"regular":"$3.140","mid-grade":"$3.663","premium":"$3.845","diesel":"$3.999"},"year_ago_average":{"regular":"$3.118","mid-grade":"$3.624","premium":"$3.871","diesel":"$4.287"}},"Bergen-Passaic":{"today_average":{"regular":"$3.184","mid-grade":"$3.804","premium":"$4.089","diesel":"$4.150"},"yesterday_average":{"regular":"$3.187","mid-grade":"$3.811","premium":"$4.094","diesel":"$4.162"},"week_ago_average":{"regular":"$3.205","mid-grade":"$3.827","premium":"$4.119","diesel":"$4.170"},"month_ago_average":{"regular":"$3.120","mid-grade":"$3.741","premium":"$4.074","diesel":"$4.076"},"year_ago_average":{"regular":"$3.196","mid-grade":"$3.798","premium":"$4.133","diesel":"$4.438"}},"Middlesex-Somerset-Hunterdon":{"today_average":{"regular":"$3.202","mid-grade":"$3.767","premium":"$4.050","diesel":"$4.050"},"yesterday_average":{"regular":"$3.207","mid-grade":"$3.774","premium":"$4.046","diesel":"$4.063"},"week_ago_average":{"regular":"$3.243","mid-grade":"$3.800","premium":"$4.085","diesel":"$4.109"},"month_ago_average":{"regular":"$3.148","mid-grade":"$3.701","premium":"$4.012","diesel":"$3.963"},"year_ago_average":{"regular":"$3.229","mid-grade":"$3.778","premium":"$4.081","diesel":"$4.352"}},"Monmouth-Ocean":{"today_average":{"regular":"$3.190","mid-grade":"$3.757","premium":"$3.995","diesel":"$4.094"},"yesterday_average":{"regular":"$3.196","mid-grade":"$3.747","premium":"$4.001","diesel":"$4.097"},"week_ago_average":{"regular":"$3.252","mid-grade":"$3.829","premium":"$4.044","diesel":"$4.149"},"month_ago_average":{"regular":"$3.174","mid-grade":"$3.751","premium":"$3.979","diesel":"$4.036"},"year_ago_average":{"regular":"$3.221","mid-grade":"$3.810","premium":"$4.056","diesel":"$4.449"}},"Trenton":{"today_average":{"regular":"$3.153","mid-grade":"$3.793","premium":"$4.024","diesel":"$4.113"},"yesterday_average":{"regular":"$3.158","mid-grade":"$3.778","premium":"$4.045","diesel":"$4.114"},"week_ago_average":{"regular":"$3.196","mid-grade":"$3.826","premium":"$4.067","diesel":"$4.155"},"month_ago_average":{"regular":"$3.140","mid-grade":"$3.715","premium":"$4.013","diesel":"$4.098"},"year_ago_average":{"regular":"$3.207","mid-grade":"$3.798","premium":"$4.130","diesel":"$4.282"}},"Philadelphia (NJ Only)":{"today_average":{"regular":"$3.101","mid-grade":"$3.617","premium":"$3.840","diesel":"$4.019"},"yesterday_average":{"regular":"$3.109","mid-grade":"$3.616","premium":"$3.842","diesel":"$4.037"},"week_ago_average":{"regular":"$3.166","mid-grade":"$3.692","premium":"$3.900","diesel":"$4.094"},"month_ago_average":{"regular":"$3.085","mid-grade":"$3.631","premium":"$3.837","diesel":"$3.972"},"year_ago_average":{"regular":"$3.100","mid-grade":"$3.627","premium":"$3.806","diesel":"$4.338"}},"Cape May":{"today_average":{"regular":"$3.212","mid-grade":"$3.694","premium":"$3.949","diesel":"$4.080"},"yesterday_average":{"regular":"$3.202","mid-grade":"$3.716","premium":"$3.982","diesel":"$4.069"},"week_ago_average":{"regular":"$3.269","mid-grade":"$3.737","premium":"$3.952","diesel":"$4.163"},"month_ago_average":{"regular":"$3.198","mid-grade":"$3.719","premium":"$4.014","diesel":"$4.106"},"year_ago_average":{"regular":"$3.243","mid-grade":"$3.651","premium":"$3.950","diesel":"$4.416"}},"Parsippany-Troy Hills":{"today_average":{"regular":"$3.150","mid-grade":"$3.768","premium":"$4.002","diesel":"$4.080"},"yesterday_average":{"regular":"$3.166","mid-grade":"$3.747","premium":"$4.048","diesel":"$4.082"},"week_ago_average":{"regular":"$3.200","mid-grade":"$3.798","premium":"$4.029","diesel":"$4.087"},"month_ago_average":{"regular":"$3.105","mid-grade":"$3.717","premium":"$3.964","diesel":"$4.026"},"year_ago_average":{"regular":"$3.212","mid-grade":"$3.830","premium":"$4.138","diesel":"$4.400"}},"Vineland":{"today_average":{"regular":"$3.141","mid-grade":"$3.603","premium":"$3.814","diesel":"$4.043"},"yesterday_average":{"regular":"$3.150","mid-grade":"$3.631","premium":"$3.839","diesel":"$4.046"},"week_ago_average":{"regular":"$3.186","mid-grade":"$3.646","premium":"$3.883","diesel":"$4.084"},"month_ago_average":{"regular":"$3.109","mid-grade":"$3.616","premium":"$3.785","diesel":"$3.982"},"year_ago_average":{"regular":"$3.172","mid-grade":"$3.619","premium":"$3.811","diesel":"$4.389"}}}}
curl --location --request GET 'https://zylalabs.com/api/3591/new+jersey+fuel+prices+api/3971/metro+area+averages?state=NJ' --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 New Jersey Fuel Prices 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
Embark on a journey through New Jersey's fuel economy with our advanced Fuel Prices API. Designed to meet the diverse needs of businesses, developers, and consumers, our API provides comprehensive access to real-time data on fuel prices throughout the state.
Gain invaluable insights into the fluctuations of gasoline, diesel, and alternative fuel prices, empowering your applications with up-to-the-minute information essential for informed decision-making. Whether you're a logistics company optimizing delivery routes, a commuter planning your daily travel expenses, or an analyst tracking market trends, our API delivers unparalleled accuracy and reliability.
Effortlessly integrate our API into your platforms, websites, mobile apps, or analytical tools with our intuitive documentation and dedicated support system. Stay ahead of the curve by leveraging our API's adaptability to changing market conditions, ensuring you always have access to the most relevant fuel price data for New Jersey.
Experience the convenience of programmatically retrieving data, saving time and resources by automating the process of gathering fuel price information. Whether you're monitoring local trends, conducting market research, or enhancing user experiences, our API provides the flexibility and scalability needed to achieve your objectives.
Rest assured that your data is protected by state-of-the-art security measures, ensuring compliance with industry standards. Join the growing community of users relying on our New Jersey Fuel Prices API to navigate the intricacies of the fuel market with confidence and precision. Start harnessing the power of real-time fuel price data today and unlock new possibilities for your business or project.
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 New Jersey 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 regular, mid-grade, premium gasoline, and diesel in New Jersey. The response includes the state, date of the data, and a structured list of prices for each fuel type.
The response includes fields such as "today_average," "yesterday_average," "week_ago_average," "month_ago_average," and "year_ago_average," each containing prices for regular, mid-grade, premium, and diesel fuels.
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 category includes regular, mid-grade, premium, and diesel fuel prices.
The "GET Latest Prices" endpoint accepts a state code as a parameter. Users can specify "NJ" for New Jersey to retrieve the latest fuel prices for that state.
This endpoint provides average fuel prices for regular, mid-grade, premium, and diesel fuels, along with historical averages for today, yesterday, a week ago, a month ago, and a year ago, allowing for comprehensive price trend analysis.
Users can analyze the returned data to identify price trends, compare current prices with historical averages, and make informed decisions about fuel purchases or route planning based on the most cost-effective options available.
The API aggregates fuel price data from various reliable sources, including gas stations, government databases, and industry reports, ensuring that users receive accurate and up-to-date information.
Data accuracy is maintained through regular updates and quality checks, including validation against multiple sources to ensure consistency and reliability in the fuel price information provided to users.
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