France Fuel Prices by Commune API: Gaps, Cheapest Station
See whether fuel in any French commune costs more or less than the department and national mean, and the cheapest station within 10 km.
Fuel prices for every French commune (34,969) and fuel (diesel, SP95, SP98, E10, E85, LPG): mean, min, median, gap to the department and France, cheapest station in the commune and within 10 km, with population and median income. Embedded data, pay per record.
Query the full dataset (API, CSV, JSON)
At a glance
- Official source
- Sources: Ministere de l'Economie, des Finances et de la Souverainete industrielle et numerique, Prix des carburants en France - Flux quotidien (data.economie.gouv.fr), Licence Ouverte (Etalab); geo.api.gouv.fr (communes, coordinates, population) and INSEE Filosofi 2023 (median income), Licence Ouverte 2.0 (Etalab). Calculations by the publisher.
- Licence
- Licence Ouverte (Etalab): prices from data.gouv.fr id fr-lo, communes under Licence Ouverte 2.0
- Snapshot
- 2026-11-14T04:17Z (download time; source dataset last modified 2026-11-13T07:06Z; most recent price update 2026-11-13)
- Coverage
- Two open datasets joined on the INSEE commune code. (1) Fuel stations and prices: CSV export of the dataset prix-carburants-quotidien (https://data.economie.gouv.fr/explore/dataset/prix-carburants-quotidien/), republished at https://www.data.gouv.fr/fr/datasets/prix-des-carburants-en-france-flux-quotidien-1/ under the Licence Ouverte (Etalab) (licence id fr-lo on data.gouv.fr, version not stated there; reuse with attribution is allowed). The feed holds the previous day's data (J-1) and prices are those reported to the ministry: they may differ from the pump. 9,952 stations; the test record (postal code 99999) is excluded; prices are used as reported, without outlier cleaning; 11 stations whose commune code is not in the commune list are counted in the department and France means but not in any commune. (2) Communes: the France Communes dataset (geo.api.gouv.fr and INSEE Filosofi 2023, Licence Ouverte 2.0), 34,969 communes. Calculation added: per commune and fuel, mean, min, median and max over the commune's stations that report a price; department and France means are means over priced stations (each price counts once), the gap is the commune mean minus that mean, in EUR/l and percent; the cheapest station of the commune; the cheapest station within 10 km, measured as a straight line from the commune centre point (not the town hall) to the station coordinates. Paris, Lyon and Marseille are single communes (arrondissement stations are counted in them). 5,452 communes have at least one price, 29,517 have none; where there is no station or no price the values are null, never 0, and gaps are computed on present prices only. Counts (station_count 0) are real counts of stations in the feed. The commune centre of a large commune may be far from its stations, which is why the 10 km neighbourhood is given next to the commune values. One row per commune and fuel (209,814 rows) so that the fuel, price and gap filters apply to a single number.
Who uses it
- Fleet manager: For each depot insee_code and fuel, read nearby_cheapest_station_address and its price to set refuelling rules.
- Regional data journalist: Rank communes by gap_vs_department_pct for diesel and set it against median_income_eur.
- Fuel retail network planner: Find communes with a high price_mean_eur and few stations_with_price as candidate sites for a new station.
- Consumer price app developer: Show price_min_eur, cheapest_station_address and gap_vs_france_pct per commune and fuel, with the snapshot date.
What you can query
- Commune name
- INSEE commune code (full or prefix)
- Department codes (e.g. 75, 2A)
- Fuels (diesel, sp95, sp98, e10, e85, lpg)
- Min commune mean price (EUR/l) / Max commune mean price (EUR/l)
- Min gap to department mean (%) / Max gap to department mean (%)
- Min gap to France mean (%) / Max gap to France mean (%)
- Min cheapest price within 10 km (EUR/l) / Max cheapest price within 10 km (EUR/l)
- Min stations in the commune / Max stations in the commune
- Min population / Max population
- Min median income (EUR) / Max median income (EUR)
Fields
| Field | Type | Description |
|---|---|---|
record_id | string | Unique key: INSEE code and fuel, e.g. 31555-diesel. |
insee_code | string | INSEE commune code (Paris, Lyon and Marseille are single communes: arrondissement stations are counted in them). |
commune_name | string | Commune name. |
department | string | Department code. |
fuel | string | Fuel of this record: diesel, sp95, sp98, e10, e85 or lpg. |
fuel_label | string | Fuel name as sold (Diesel (Gazole), SP95, SP98, SP95-E10, E85, LPG). |
population | number | Commune population, null if unknown. |
median_income_eur | number | Median income per consumption unit (EUR, INSEE Filosofi 2023), null if unknown or secret. |
lat | number | Commune centre latitude. |
lon | number | Commune centre longitude. |
station_count | number | Stations listed in the feed in this commune (any fuel). 0 means no station in the feed. |
stations_with_price | number | Stations of the commune with a price for this fuel. |
price_mean_eur | number | Mean price of this fuel across the commune's stations (EUR/l), null if no station reports it. |
price_min_eur | number | Lowest price of this fuel in the commune (EUR/l), null if none. |
price_median_eur | number | Median price of this fuel in the commune (EUR/l), null if none. |
price_max_eur | number | Highest price of this fuel in the commune (EUR/l), null if none. |
price_latest_update | string | Most recent price update timestamp among the commune's stations for this fuel (ISO 8601), null if none. |
department_mean_eur | number | Mean price of this fuel over all priced stations of the department (EUR/l), null if none. |
france_mean_eur | number | Mean price of this fuel over all priced stations in the feed (EUR/l). |
gap_vs_department_eur | number | price_mean_eur minus department_mean_eur (EUR/l); null when the commune has no price. |
gap_vs_department_pct | number | Same gap in percent of the department mean; null when the commune has no price. |
gap_vs_france_eur | number | price_mean_eur minus france_mean_eur (EUR/l); null when the commune has no price. |
gap_vs_france_pct | number | Same gap in percent of the France mean; null when the commune has no price. |
cheapest_station_id | string | Station id of the cheapest station of the commune for this fuel, null if none. |
cheapest_station_address | string | Address of that station. |
cheapest_station_price_eur | number | Price at that station (EUR/l). |
nearby_radius_km | number | Fixed radius of the neighbourhood, from the commune centre to station coordinates (10 km, straight line). |
nearby_stations_with_price | number | Stations with a geolocated price for this fuel within the radius (commune stations included); null if the commune has no coordinates. |
nearby_cheapest_station_id | string | Station id of the cheapest station within the radius, null if none. |
nearby_cheapest_station_address | string | Address of that station. |
nearby_cheapest_station_city | string | City of that station (may be another commune). |
nearby_cheapest_station_price_eur | number | Price at that station (EUR/l). |
nearby_cheapest_station_distance_km | number | Distance from the commune centre to that station (km). |
Quick start
Python (pip install apify-client):
from apify_client import ApifyClient
client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('phonic_lily/france-fuel-prices-by-commune').call(run_input={'departments': ['31'], 'fuels': ['diesel'], 'maxResults': 10})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
print(item)HTTP:
curl -X POST 'https://api.apify.com/v2/acts/phonic_lily~france-fuel-prices-by-commune/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
-H 'Content-Type: application/json' -d '{"departments": ["31"], "fuels": ["diesel"], "maxResults": 10}'
FAQ
Where does the France Fuel Prices by Commune: Gaps, Cheapest Station data come from?
Sources: Ministere de l'Economie, des Finances et de la Souverainete industrielle et numerique, Prix des carburants en France - Flux quotidien (data.economie.gouv.fr), Licence Ouverte (Etalab); geo.api.gouv.fr (communes, coordinates, population) and INSEE Filosofi 2023 (median income), Licence Ouverte 2.0 (Etalab). Calculations by the publisher. Two open datasets joined on the INSEE commune code. (1) Fuel stations and prices: CSV export of the dataset prix-carburants-quotidien (https://data.economie.gouv.fr/explore/dataset/prix-carburants-quotidien/), republished at https://www.data.gouv.fr/fr/datasets/prix-des-carburants-en-france-flux-quotidien-1/ under the Licence Ouverte (Etalab) (licence id fr-lo on data.gouv.fr, version not stated there; reuse with attribution is allowed). The feed holds the previous day's data (J-1) and prices are those reported to the ministry: they may differ from the pump. 9,952 stations; the test record (postal code 99999) is excluded; prices are used as reported, without outlier cleaning; 11 stations whose commune code is not in the commune list are counted in the department and France means but not in any commune. (2) Communes: the France Communes dataset (geo.api.gouv.fr and INSEE Filosofi 2023, Licence Ouverte 2.0), 34,969 communes. Calculation added: per commune and fuel, mean, min, median and max over the commune's stations that report a price; department and France means are means over priced stations (each price counts once), the gap is the commune mean minus that mean, in EUR/l and percent; the cheapest station of the commune; the cheapest station within 10 km, measured as a straight line from the commune centre point (not the town hall) to the station coordinates. Paris, Lyon and Marseille are single communes (arrondissement stations are counted in them). 5,452 communes have at least one price, 29,517 have none; where there is no station or no price the values are null, never 0, and gaps are computed on present prices only. Counts (station_count 0) are real counts of stations in the feed. The commune centre of a large commune may be far from its stations, which is why the 10 km neighbourhood is given next to the commune values. One row per commune and fuel (209,814 rows) so that the fuel, price and gap filters apply to a single number.
What can I filter on?
Commune name; INSEE commune code (full or prefix); Department codes (e.g. 75, 2A); Fuels (diesel, sp95, sp98, e10, e85, lpg); Min commune mean price (EUR/l) / Max commune mean price (EUR/l); Min gap to department mean (%) / Max gap to department mean (%); Min gap to France mean (%) / Max gap to France mean (%); Min cheapest price within 10 km (EUR/l) / Max cheapest price within 10 km (EUR/l); Min stations in the commune / Max stations in the commune; Min population / Max population; Min median income (EUR) / Max median income (EUR).
How much does it cost?
The full dataset is an API on Apify, paid per result returned; the current price is on https://apify.com/phonic_lily/france-fuel-prices-by-commune.
Can an AI agent query it?
Yes, through the MCP server io.github.adminglobalcostdata/france-local-statistics on the official MCP registry.
How recent is the data?
Snapshot of 2026-11-14T04:17Z (download time; source dataset last modified 2026-11-13T07:06Z; most recent price update 2026-11-13) from the official source.
Related datasets
- France Communes: Population, Location, Median Income
- French Communes Finances 2021-2025 (OFGL Accounts)
- France Fuel Stations: Prices by Fuel, Location, Services
- France New Vehicle Registrations by Commune and Fuel
- France Bridge Days, Leave Windows and School Holidays
Publisher: Henri Bousquet, adminglobalcostdata@gmail.com. Data from official public sources; source and licence are stated in every record.