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

What you can query

Fields

FieldTypeDescription
insee_codestringINSEE commune code.
namestringCommune name.
departmentstringDepartment code.
latnumberCentre latitude.
lonnumberCentre longitude.
populationnumberPopulation, null if unknown.
median_income_eurnumberMedian income per consumption unit (EUR), null if unknown.
median_income_yearstringFilosofi 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

Publisher: Henri Bousquet, adminglobalcostdata@gmail.com. Data from official public sources; source and licence are stated in every record.