Fuel prices API for France, Spain, Italy & Western Australia
Get current petrol, diesel, LPG, CNG and hydrogen prices for ~46,000 fuel stations straight from official government open data, in one consistent JSON format. Find the cheapest or nearest stations around coordinates, by postal code, city or brand — from a REST API, Python, JavaScript or any MCP-compatible AI agent.
Coverage
| Country | Stations | Freshness | Official source |
|---|---|---|---|
| France | ~9,800 | every ~10 min | Ministère de l'Économie (DGCCRF) |
| Spain | ~11,500 | every ~30 min | Ministerio para la Transición Ecológica |
| Italy | ~23,900 | daily snapshot (08:00 prices) | Ministero delle Imprese e del Made in Italy (MIMIT) |
| Western Australia | ~1,000 | one fixed price per day | FuelWatch, Government of WA |
Why use it instead of four government feeds
- One schema. Four formats — a JSON export, REST JSON with decimal commas, two pipe-separated CSVs and an RSS feed in cents — become one row format with the same field names, units and ISO 8601 timestamps with time zone.
- Normalized fuel types.
diesel,gasoline_95,gasoline_95_e10,lpg,cng… across countries, while the original label (Gazole, Gasóleo A, Benzina, ULP) stays infuelName. - Answers, not dumps. Radius search with distance, postal-code prefix, city, brand and price-age filters; sorted by price or distance; capped to what you need.
- Licensed and attributed. Every row carries its source and licence (Licence Ouverte, Ley 37/2007, IODL 2.0, FuelWatch).
Try it in one request
curl -X POST "https://api.apify.com/v2/acts/sste~official-fuel-prices/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"latitude":40.4168,"longitude":-3.7038,"radiusKm":10,"fuelTypes":["diesel"],"maxResults":20}'
Pricing: pay per use on Apify — $0.005 per run plus $0.0005 per price row ($0.50 per 1,000). A "cheapest 10 stations near a point" query costs about $0.01. You set maxResults, so you only pay for the rows you ask for.
Guides
- Where to get European fuel price data (official sources compared)
- Find the cheapest fuel station near coordinates
- Python tutorial: European fuel prices
- JavaScript tutorial: fuel station prices
- Fuel prices for AI agents with MCP
FAQ · API reference · Runnable examples on GitHub (cURL, Python, JavaScript, MCP)