France Communes API: Population, Location, Median Income
Get population, median income and coordinates for any French commune, or for every commune within a radius, from one INSEE-coded table.
All 34,969 French communes with INSEE code, department, coordinates, population and median income (Filosofi 2023, where available). Search by name, department, population or distance. Embedded data, pay per record.
Query the full dataset (API, CSV, JSON)
At a glance
- Official source
- Sources: geo.api.gouv.fr (communes, coordinates, population) and INSEE Filosofi 2023 (median income), Licence Ouverte 2.0 (Etalab).
- Licence
- Licence Ouverte 2.0 (Etalab)
- Snapshot
- 2026-07
- Coverage
- Communes from geo.api.gouv.fr (Licence Ouverte 2.0) with the commune centre point and population. Median disposable income per consumption unit from INSEE Filosofi 2023 (Licence Ouverte 2.0) was joined by normalised name and department only when the match is unique on both sides (31,117 of 34,969 communes); otherwise null (statistical secrecy or ambiguous name). Null means unknown, never 0. No geology layer is joined: the BRGM cache is keyed by OpenStreetMap objects, not by commune.
Who uses it
- Retail site-selection analyst: Filter communes by population and median_income_eur within a radius of a candidate store using lat and lon.
- Direct-mail campaign planner: Rank communes of a department by median_income_eur to target mailings, joining on insee_code.
- Address data engineer: Use insee_code, name and department as a reference table to clean and code French address files.
What you can query
- Commune name
- INSEE code (full or prefix)
- Departments
- Min population / Max population
- Min median income (EUR) / Max median income (EUR)
Fields
| Field | Type | Description |
|---|---|---|
insee_code | string | INSEE commune code. |
name | string | Commune name. |
department | string | Department code. |
lat | number | Centre latitude. |
lon | number | Centre longitude. |
population | number | Population, null if unknown. |
median_income_eur | number | Median income per consumption unit (EUR), null if unknown. |
median_income_year | string | Filosofi vintage. |
Quick start
Python (pip install apify-client):
from apify_client import ApifyClient
client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('phonic_lily/france-commune-stats').call(run_input={'departments': ['62'], '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-commune-stats/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
-H 'Content-Type: application/json' -d '{"departments": ["62"], "maxResults": 10}'
FAQ
Where does the France Communes: Population, Location, Median Income data come from?
Sources: geo.api.gouv.fr (communes, coordinates, population) and INSEE Filosofi 2023 (median income), Licence Ouverte 2.0 (Etalab). Communes from geo.api.gouv.fr (Licence Ouverte 2.0) with the commune centre point and population. Median disposable income per consumption unit from INSEE Filosofi 2023 (Licence Ouverte 2.0) was joined by normalised name and department only when the match is unique on both sides (31,117 of 34,969 communes); otherwise null (statistical secrecy or ambiguous name). Null means unknown, never 0. No geology layer is joined: the BRGM cache is keyed by OpenStreetMap objects, not by commune.
What can I filter on?
Commune name; INSEE code (full or prefix); Departments; 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-commune-stats.
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-07 from the official source.
Related datasets
- French Communes Finances 2021-2025 (OFGL Accounts)
- France Fuel Prices by Commune: Gaps, Cheapest Station
- 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.