About the API:
This API provides the latest prices of fuel and diesel in a large number of European countries and all the USA states. With daily updates, you will always be receiving the newest prices.
Call any endpoint, USA or Europe, and receive the list of all supported countries with the updated prices. You will get Diesel and Gasoline Prices.
In the USA the prices are per gallon, and in Europe per liter.
Costs calculations: This API is ideal for those courier companies that want to have the fuel information of every city that they cover. This could help them to estimate how much they would spend on fuel in every city.
Prices comparisons: Build your product and compare different prices for different states, and recommend to your users the best fuel prices for them.
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.687","midGrade":"3.907","premium":"4.152","diesel":"3.694"},{"currency":"usd","name":"Alabama","gasoline":"2.803","midGrade":"3.242","premium":"3.635","diesel":"3.375"},{"currency":"usd","name":"Arkansas","gasoline":"2.863","midGrade":"3.271","premium":"3.654","diesel":"3.292"},{"currency":"usd","name":"Arizona","gasoline":"3.346","midGrade":"3.667","premium":"3.988","diesel":"3.596"},{"currency":"usd","name":"California","gasoline":"4.715","midGrade":"4.932","premium":"5.105","diesel":"4.950"},{"currency":"usd","name":"Colorado","gasoline":"3.499","midGrade":"3.899","premium":"4.224","diesel":"3.511"},{"currency":"usd","name":"Connecticut","gasoline":"3.118","midGrade":"3.753","premium":"4.103","diesel":"3.729"},{"currency":"usd","name":"District of Columbia","gasoline":"3.318","midGrade":"3.895","premium":"4.291","diesel":"3.815"},{"currency":"usd","name":"Delaware","gasoline":"3.099","midGrade":"3.617","premium":"3.893","diesel":"3.336"},{"currency":"usd","name":"Florida","gasoline":"3.176","midGrade":"3.621","premium":"3.948","diesel":"3.437"},{"currency":"usd","name":"Georgia","gasoline":"2.975","midGrade":"3.442","premium":"3.830","diesel":"3.514"},{"currency":"usd","name":"Hawaii","gasoline":"4.604","midGrade":"4.822","premium":"5.089","diesel":"5.407"},{"currency":"usd","name":"Iowa","gasoline":"3.045","midGrade":"3.337","premium":"3.797","diesel":"3.333"},{"currency":"usd","name":"Idaho","gasoline":"3.518","midGrade":"3.782","premium":"4.022","diesel":"3.611"},{"currency":"usd","name":"Illinois","gasoline":"3.463","midGrade":"4.061","premium":"4.493","diesel":"3.672"},{"currency":"usd","name":"Indiana","gasoline":"3.210","midGrade":"3.744","premium":"4.244","diesel":"3.695"},{"currency":"usd","name":"Kansas","gasoline":"2.901","midGrade":"3.210","premium":"3.527","diesel":"3.304"},{"currency":"usd","name":"Kentucky","gasoline":"2.905","midGrade":"3.441","premium":"3.847","diesel":"3.328"},{"currency":"usd","name":"Louisiana","gasoline":"2.778","midGrade":"3.210","premium":"3.585","diesel":"3.238"},{"currency":"usd","name":"Massachusetts","gasoline":"3.118","midGrade":"3.718","premium":"4.074","diesel":"3.779"},{"currency":"usd","name":"Maryland","gasoline":"3.180","midGrade":"3.749","premium":"4.054","diesel":"3.479"},{"currency":"usd","name":"Maine","gasoline":"3.125","midGrade":"3.652","premium":"4.125","diesel":"3.795"},{"currency":"usd","name":"Michigan","gasoline":"3.408","midGrade":"3.949","premium":"4.495","diesel":"3.684"},{"currency":"usd","name":"Minnesota","gasoline":"3.072","midGrade":"3.480","premium":"3.885","diesel":"3.473"},{"currency":"usd","name":"Missouri","gasoline":"2.883","midGrade":"3.211","premium":"3.525","diesel":"3.239"},{"currency":"usd","name":"Mississippi","gasoline":"2.711","midGrade":"3.122","premium":"3.489","diesel":"3.209"},{"currency":"usd","name":"Montana","gasoline":"3.305","midGrade":"3.614","premium":"3.911","diesel":"3.620"},{"currency":"usd","name":"North Carolina","gasoline":"2.949","midGrade":"3.400","premium":"3.786","diesel":"3.497"},{"currency":"usd","name":"North Dakota","gasoline":"3.146","midGrade":"3.461","premium":"3.781","diesel":"3.513"},{"currency":"usd","name":"Nebraska","gasoline":"3.081","midGrade":"3.291","premium":"3.735","diesel":"3.315"},{"currency":"usd","name":"New Hampshire","gasoline":"3.040","midGrade":"3.610","premium":"4.029","diesel":"3.762"},{"currency":"usd","name":"New Jersey","gasoline":"3.017","midGrade":"3.629","premium":"3.894","diesel":"3.433"},{"currency":"usd","name":"New Mexico","gasoline":"3.035","midGrade":"3.424","premium":"3.727","diesel":"3.383"},{"currency":"usd","name":"Nevada","gasoline":"3.952","midGrade":"4.236","premium":"4.472","diesel":"3.748"},{"currency":"usd","name":"New York","gasoline":"3.283","midGrade":"3.801","premium":"4.181","diesel":"3.997"},{"currency":"usd","name":"Ohio","gasoline":"3.128","midGrade":"3.681","premium":"4.201","diesel":"3.586"},{"currency":"usd","name":"Oklahoma","gasoline":"2.828","midGrade":"3.195","premium":"3.454","diesel":"3.150"},{"currency":"usd","name":"Oregon","gasoline":"3.680","midGrade":"3.911","premium":"4.176","diesel":"3.902"},{"currency":"usd","name":"Pennsylvania","gasoline":"3.343","midGrade":"3.782","premium":"4.141","diesel":"4.014"},{"currency":"usd","name":"Rhode Island","gasoline":"3.018","midGrade":"3.697","premium":"4.024","diesel":"3.764"},{"currency":"usd","name":"South Carolina","gasoline":"2.884","midGrade":"3.330","premium":"3.697","diesel":"3.354"},{"currency":"usd","name":"South Dakota","gasoline":"3.093","midGrade":"3.294","premium":"3.721","diesel":"3.292"},{"currency":"usd","name":"Tennessee","gasoline":"2.798","midGrade":"3.233","premium":"3.610","diesel":"3.315"},{"currency":"usd","name":"Texas","gasoline":"2.776","midGrade":"3.221","premium":"3.567","diesel":"3.070"},{"currency":"usd","name":"Utah","gasoline":"3.584","midGrade":"3.835","premium":"4.044","diesel":"3.579"},{"currency":"usd","name":"Virginia","gasoline":"3.022","midGrade":"3.501","premium":"3.872","diesel":"3.524"},{"currency":"usd","name":"Vermont","gasoline":"3.229","midGrade":"3.801","premium":"4.196","diesel":"3.632"},{"currency":"usd","name":"Washington","gasoline":"4.080","midGrade":"4.363","premium":"4.575","diesel":"4.385"},{"currency":"usd","name":"Wisconsin","gasoline":"3.036","midGrade":"3.525","premium":"4.032","diesel":"3.423"},{"currency":"usd","name":"West Virginia","gasoline":"3.056","midGrade":"3.474","premium":"3.920","diesel":"3.612"},{"currency":"usd","name":"Wyoming","gasoline":"3.289","midGrade":"3.540","premium":"3.838","diesel":"3.565"}]}
curl --location --request GET 'https://zylalabs.com/api/844/world+gas+prices+api/616/usa+gas+prices' --header 'Authorization: Bearer YOUR_API_KEY'
Retrieve a list of all supported european countries in this API, with the Gasoline and Diesel prices.
{"results":[{"currency":"euro","lpg":"0,569","diesel":"1,818","gasoline":"1,818","country":"Albania"},{"currency":"euro","lpg":"-","diesel":"1,387","gasoline":"1,445","country":"Andorra"},{"currency":"euro","lpg":"0,498","diesel":"1,209","gasoline":"1,209","country":"Armenia"},{"currency":"euro","lpg":"1,150","diesel":"1,617","gasoline":"1,620","country":"Austria"},{"currency":"euro","lpg":"0,357","diesel":"0,699","gasoline":"0,699","country":"Belarus"},{"currency":"euro","lpg":"0,679","diesel":"1,759","gasoline":"1,714","country":"Belgium"},{"currency":"euro","lpg":"0,638","diesel":"1,323","gasoline":"1,344","country":"Bosnia and Herzegovina"},{"currency":"euro","lpg":"0,593","diesel":"1,350","gasoline":"1,350","country":"Bulgaria"},{"currency":"euro","lpg":"0,803","diesel":"1,533","gasoline":"1,576","country":"Croatia"},{"currency":"euro","lpg":"-","diesel":"1,575","gasoline":"1,520","country":"Cyprus"},{"currency":"euro","lpg":"0,666","diesel":"1,462","gasoline":"1,520","country":"Czech Republic"},{"currency":"euro","lpg":"-","diesel":"1,779","gasoline":"2,027","country":"Denmark"},{"currency":"euro","lpg":"0,676","diesel":"1,585","gasoline":"1,736","country":"Estonia"},{"currency":"euro","lpg":"-","diesel":"1,778","gasoline":"1,866","country":"Finland"},{"currency":"euro","lpg":"1,003","diesel":"1,726","gasoline":"1,837","country":"France"},{"currency":"euro","lpg":"0,563","diesel":"1,147","gasoline":"1,140","country":"Georgia"},{"currency":"euro","lpg":"1,023","diesel":"1,643","gasoline":"1,793","country":"Germany"},{"currency":"euro","lpg":"0,890","diesel":"1,660","gasoline":"1,898","country":"Greece"},{"currency":"euro","lpg":"0,892","diesel":"1,593","gasoline":"1,574","country":"Hungary"},{"currency":"euro","lpg":"-","diesel":"2,052","gasoline":"2,032","country":"Iceland"},{"currency":"euro","lpg":"0,960","diesel":"1,706","gasoline":"1,778","country":"Ireland"},{"currency":"euro","lpg":"0,716","diesel":"1,778","gasoline":"1,895","country":"Italy"},{"currency":"euro","lpg":"-","diesel":"0,000","gasoline":"0,000","country":"Kosovo"},{"currency":"euro","lpg":"0,709","diesel":"1,576","gasoline":"1,636","country":"Latvia"},{"currency":"euro","lpg":"0,760","diesel":"1,462","gasoline":"1,488","country":"Lithuania"},{"currency":"euro","lpg":"0,692","diesel":"1,492","gasoline":"1,575","country":"Luxembourg"},{"currency":"euro","lpg":"0,750","diesel":"1,274","gasoline":"1,314","country":"North Macedonia"},{"currency":"euro","lpg":"-","diesel":"1,213","gasoline":"1,343","country":"Malta"},{"currency":"euro","lpg":"0,716","diesel":"1,114","gasoline":"1,298","country":"Moldova"},{"currency":"euro","lpg":"0,750","diesel":"1,450","gasoline":"1,560","country":"Montenegro"},{"currency":"euro","lpg":"0,878","diesel":"1,822","gasoline":"2,097","country":"Netherlands"},{"currency":"euro","lpg":"1,170","diesel":"1,697","gasoline":"1,883","country":"Norway"},{"currency":"euro","lpg":"0,629","diesel":"1,515","gasoline":"1,515","country":"Poland"},{"currency":"euro","lpg":"0,875","diesel":"1,604","gasoline":"1,753","country":"Portugal"},{"currency":"euro","lpg":"0,655","diesel":"1,517","gasoline":"1,490","country":"Romania"},{"currency":"euro","lpg":"0,302","diesel":"0,698","gasoline":"0,604","country":"Russia"},{"currency":"euro","lpg":"0,824","diesel":"1,768","gasoline":"1,657","country":"Serbia"},{"currency":"euro","lpg":"0,686","diesel":"1,526","gasoline":"1,614","country":"Slovakia"},{"currency":"euro","lpg":"0,894","diesel":"1,544","gasoline":"1,533","country":"Slovenia"},{"currency":"euro","lpg":"0,953","diesel":"1,486","gasoline":"1,610","country":"Spain"},{"currency":"euro","lpg":"1,196","diesel":"1,567","gasoline":"1,593","country":"Sweden"},{"currency":"euro","lpg":"1,058","diesel":"1,996","gasoline":"1,926","country":"Switzerland"},{"currency":"euro","lpg":"0,642","diesel":"1,238","gasoline":"1,257","country":"Turkey"},{"currency":"euro","lpg":"-","diesel":"0,000","gasoline":"0,000","country":"U.S.A"},{"currency":"euro","lpg":"0,622","diesel":"1,227","gasoline":"1,298","country":"Ukraine"},{"currency":"euro","lpg":"1,067","diesel":"1,795","gasoline":"1,736","country":"United Kingdom"}],"success":true}
curl --location --request GET 'https://zylalabs.com/api/844/world+gas+prices+api/617/europe+gas+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 commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Each endpoint returns the latest gasoline and diesel prices. The USA endpoint provides prices per gallon for each state, while the Europe endpoint provides prices per liter for various countries.
Key fields include "currency," "name" (state or country), "gasoline," "midGrade," "premium," and "diesel." These fields provide essential pricing information for fuel types.
The response data is structured as a JSON object. For the USA endpoint, it includes a "success" field and a "result" array with state-specific pricing. The Europe endpoint returns a "results" array with country-specific pricing.
The USA endpoint provides gasoline and diesel prices for each state, while the Europe endpoint offers gasoline, diesel, and LPG prices for supported European countries.
Currently, the API does not support additional parameters for filtering or customizing requests. Users can simply call the endpoints to receive all available data for the respective regions.
The API aggregates fuel price data from various reliable sources, including government reports, fuel retailers, and market surveys, ensuring a comprehensive overview of current prices.
Common use cases include cost calculations for logistics companies, price comparisons for consumers, and market analysis for businesses looking to understand fuel pricing trends.
Users can analyze the pricing data to make informed decisions about fuel purchases, optimize logistics costs, and develop applications that provide users with the best fuel prices based on location.
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:
89%
Response Time:
705ms
Service Level:
67%
Response Time:
1,982ms
Service Level:
100%
Response Time:
3,862ms
Service Level:
100%
Response Time:
705ms
Service Level:
100%
Response Time:
2,930ms
Service Level:
100%
Response Time:
3,915ms
Service Level:
100%
Response Time:
7,051ms
Service Level:
100%
Response Time:
2,876ms
Service Level:
50%
Response Time:
4,491ms
Service Level:
100%
Response Time:
164ms
Service Level:
100%
Response Time:
910ms
Service Level:
100%
Response Time:
63ms
Service Level:
100%
Response Time:
38ms
Service Level:
100%
Response Time:
42ms
Service Level:
100%
Response Time:
30ms
Service Level:
100%
Response Time:
24ms
Service Level:
100%
Response Time:
30ms
Service Level:
100%
Response Time:
25ms
Service Level:
100%
Response Time:
34ms
Service Level:
100%
Response Time:
26ms