Fuel prices API Reference
3 routes. Base URL https://api.apifor.dev, authenticated with x-api-key. Failed calls are not charged. Overview, limits and sources are on the Fuel price API page.
GET
/v1/fuel-prices1 creditWeekly retail fuel prices per country and fuel, newest first: EU member states (with and without taxes, from 2005), Malaysia (from 2017) and Indonesia regulated prices (with the decree under rules). 1 credit.
| Parameter | In | Type | Rules |
|---|---|---|---|
| country | query | string | ISO 3166-1 alpha-2 codes, comma-separated (EU members, EU = EU-27 average, EA = euro area, MY, ID). All countries when left out. |
| fuel | query | string | Fuel codes, comma-separated: petrol-95, diesel, lpg, heating-oil, heavy-fuel-oil-low-sulphur, heavy-fuel-oil-high-sulphur; MY adds petrol-97, diesel-east-malaysia and subsidy-scheme series; ID petrol-90, petrol-88, diesel-subsidised, kerosene. |
| from | query | string | First date, YYYY-MM-DD. |
| to | query | string | Last date, YYYY-MM-DD. |
| page | query | integer | default 1 · Page number. |
| limit | query | integer | 1 to 500 · default 100 · Rows per page, at most 500. |
curl 'https://api.apifor.dev/v1/fuel-prices?country=DE%2CFR&fuel=diesel&from=2026-01-01' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"country": "DE",
"fuel": "petrol-95",
"fuel_name": "Petrol, 95 octane (Euro-super 95 / RON95)",
"date": "2026-11-23",
"price": 1.964,
"price_without_tax": 0.9881,
"currency": "EUR",
"unit": "litre",
"local": {
"country": "EU",
"member_state": "DE",
"aggregate": null,
"bulletin_series": "euro95",
"original_unit": "EUR per 1000 l"
}
}
],
"meta": {
"total": 1,
"page": 1,
"per_page": 100,
"total_pages": 1,
"coverage": [
"AT",
"BE"
],
"attribution": {
"source": "European Commission, Weekly Oil Bulletin (prices communicated by the Member States)",
"license": "Creative Commons Attribution 4.0 International (CC BY 4.0)",
"license_url": "https://commission.europa.eu/legal-notice_en",
"source_url": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
"attribution_page": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
"notice": "© European Union, Weekly Oil Bulletin (CC BY 4.0). APIFor changed the data: prices per 1000 l converted to per litre, English fuel codes ..."
},
"sources": [
{
"source": "European Commission, Weekly Oil Bulletin (prices communicated by the Member States)",
"license": "Creative Commons Attribution 4.0 International (CC BY 4.0)",
"license_url": "https://commission.europa.eu/legal-notice_en",
"source_url": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
"attribution_page": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
"notice": "© European Union, Weekly Oil Bulletin (CC BY 4.0). APIFor changed the data: prices per 1000 l converted to per litre, English fuel codes ..."
}
]
}
}200Price rows400Invalid parameter
GET
/v1/fuel-prices/latest1 creditNewest price per country and fuel with the previous price and the change in percent; for ID the prices in force. 1 credit.
| Parameter | In | Type | Rules |
|---|---|---|---|
| country | query | string | ISO 3166-1 alpha-2 codes, comma-separated (EU members, EU = EU-27 average, EA = euro area, MY, ID). All countries when left out. |
| fuel | query | string | Fuel codes, comma-separated: petrol-95, diesel, lpg, heating-oil, heavy-fuel-oil-low-sulphur, heavy-fuel-oil-high-sulphur; MY adds petrol-97, diesel-east-malaysia and subsidy-scheme series; ID petrol-90, petrol-88, diesel-subsidised, kerosene. |
curl 'https://api.apifor.dev/v1/fuel-prices/latest?country=DE%2CFR&fuel=diesel' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"country": "DE",
"fuel": "petrol-95",
"fuel_name": "Petrol, 95 octane (Euro-super 95 / RON95)",
"date": "2026-11-23",
"price": 1.964,
"price_without_tax": 0.9881,
"currency": "EUR",
"unit": "litre",
"local": {
"country": "EU",
"member_state": "DE",
"aggregate": null,
"bulletin_series": "euro95",
"original_unit": "EUR per 1000 l"
},
"previous_date": "2026-11-16",
"previous_price": 2.001,
"change_pct": -1.85
}
],
"meta": {
"total": 1,
"coverage": [
"AT",
"BE"
],
"attribution": {
"source": "European Commission, Weekly Oil Bulletin (prices communicated by the Member States)",
"license": "Creative Commons Attribution 4.0 International (CC BY 4.0)",
"license_url": "https://commission.europa.eu/legal-notice_en",
"source_url": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
"attribution_page": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
"notice": "© European Union, Weekly Oil Bulletin (CC BY 4.0). APIFor changed the data: prices per 1000 l converted to per litre, English fuel codes ..."
},
"sources": [
{
"source": "European Commission, Weekly Oil Bulletin (prices communicated by the Member States)",
"license": "Creative Commons Attribution 4.0 International (CC BY 4.0)",
"license_url": "https://commission.europa.eu/legal-notice_en",
"source_url": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
"attribution_page": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
"notice": "© European Union, Weekly Oil Bulletin (CC BY 4.0). APIFor changed the data: prices per 1000 l converted to per litre, English fuel codes ..."
}
]
}
}200Latest prices400Invalid parameter
GET
/v1/fuel-prices/coverageFreeCountries this service covers, with sources, licences, row counts and country-only fields. Free (0 credits), still needs an API key. Price note: Free.
curl 'https://api.apifor.dev/v1/fuel-prices/coverage' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"service": "fuel-prices",
"global": false,
"country_param": "optional",
"param_name": "country",
"countries": [
{
"country": "AT",
"market": "EU",
"subdivision_levels": [],
"rows": null,
"updated_at": "2026-11-30",
"sources": [
{
"name": "European Commission, Weekly Oil Bulletin",
"url": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
"licence": "CC BY 4.0 (Commission legal notice)",
"attribution": "© European Union, Weekly Oil Bulletin"
}
],
"local_fields": [
"member_state",
"aggregate"
],
"notes": "Weekly retail prices from 2005-01-03, with taxes (price) and without duties and taxes (price_without_tax), EUR per litre (heavy fuel oils..."
},
{
"country": "BE",
"market": "EU",
"subdivision_levels": [],
"rows": null,
"updated_at": "2026-11-30",
"sources": [
{
"name": "European Commission, Weekly Oil Bulletin",
"url": "https://energy.ec.europa.eu/data-and-analysis/weekly-oil-bulletin_en",
"licence": "CC BY 4.0 (Commission legal notice)",
"attribution": "© European Union, Weekly Oil Bulletin"
}
],
"local_fields": [
"member_state",
"aggregate"
],
"notes": "Weekly retail prices from 2005-01-03, with taxes (price) and without duties and taxes (price_without_tax), EUR per litre (heavy fuel oils..."
}
]
}
}200Coverage