French Communes Finances 2021-2025 (OFGL Accounts) API

Compare a French commune's spending, debt, savings and staff costs per inhabitant with similar communes, fiscal years 2021 to 2025.

174,251 records of French commune accounts (main budget), fiscal years 2021-2025 (OFGL): 53 aggregates (spending, revenue, investment, debt, savings, staff, taxes) plus per-inhabitant ratios for 34,875 communes. Last 5 years only: the full base is too large. Embedded data, pay per record.

Query the full dataset (API, CSV, JSON)

At a glance

Official source
Source: OFGL (Observatoire des finances et de la gestion publique locales), Comptes des communes 2018-2025, based on DGFiP accounts, Licence Ouverte v2.0 (Etalab).
Licence
Licence Ouverte 2.0 (Etalab)
Snapshot
2026-11-09 download of OFGL base (dataset last modified 2026-07-29)
Coverage
OFGL dataset ofgl-base-communes 'Comptes des communes 2018-2025' (https://data.ofgl.fr/explore/dataset/ofgl-base-communes/), Licence Ouverte v2.0 (Etalab) per the dataset metadata (modified 2026-07-29). The full base holds 21,857,255 rows (commune x budget x aggregate x fiscal year 2018-2025), far above 300 MB as CSV, so this Actor keeps the 5 last fiscal years (2021-2025) and the main budget only (annex budgets are excluded), pivoted to one record per commune and fiscal year with one column per aggregate (amounts in EUR) and per-inhabitant values for 8 key aggregates. An aggregate absent from a commune's accounts is null, never 0; a reported zero stays 0.0. Commune names, department, region and EPCI follow the 2025 geography. Population is the figure OFGL uses for per-inhabitant ratios. Data are public accounts of local authorities; no individual person is identified.

Who uses it

What you can query

Fields

FieldTypeDescription
record_idstringStable key: commune code - fiscal year.
commune_codestringINSEE commune code (2025 geography).
commune_namestringCommune name (2025).
fiscal_yearintegerFiscal year (exercice) of the accounts, 2021-2025.
department_codestringDepartment code.
departmentstringDepartment name.
region_codestringRegion code.
regionstringRegion name.
epci_codestringEPCI (intercommunality) SIREN code.
epci_namestringEPCI name.
populationintegerTotal population used by OFGL for per-capita figures.
population_bracketstringOFGL population bracket (strate) code.
income_per_capita_bracketstringOFGL bracket of taxable income per inhabitant.
is_ruralbooleanRural commune flag.
is_mountainbooleanMountain commune flag.
is_touristbooleanTourist commune flag.
has_qpvbooleanCommune hosts a priority urban neighbourhood (QPV).
overseasbooleanOverseas commune flag.
sirenstringSIREN of the commune.
accounting_standardstringAccounting nomenclature of the main budget (M14, M57, M57A...).
achats_et_charges_externes_eurnumberAchats et charges externes, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
annuite_de_la_dette_eurnumberAnnuite de la dette, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
autres_dotations_de_fonctionnement_eurnumberAutres dotations de fonctionnement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
autres_dotations_et_subventions_eurnumberAutres dotations et subventions, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
autres_depenses_d_investissement_eurnumberAutres depenses d investissement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
autres_depenses_de_fonctionnement_eurnumberAutres depenses de fonctionnement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
autres_impots_et_taxes_eurnumberAutres impots et taxes, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
autres_recettes_d_investissement_eurnumberAutres recettes d investissement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
autres_recettes_de_fonctionnement_eurnumberAutres recettes de fonctionnement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
capacite_ou_besoin_de_financement_eurnumberCapacite ou besoin de financement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
charges_financieres_eurnumberCharges financieres, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
concours_de_l_etat_eurnumberConcours de l etat, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
credits_de_tresorerie_eurnumberCredits de tresorerie, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
dotation_globale_de_fonctionnement_eurnumberDotation globale de fonctionnement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
depenses_d_intervention_eurnumberDepenses d intervention, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
depenses_d_investissement_eurnumberDepenses d investissement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
depenses_d_investissement_hors_remb_eurnumberDepenses d investissement hors remb, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
depenses_d_equipement_eurnumberDepenses d equipement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
depenses_d_equipement_eur_per_capitanumberDepenses d equipement, per inhabitant (EUR). Null when not reported.
depenses_de_fonctionnement_eurnumberDepenses de fonctionnement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
depenses_de_fonctionnement_eur_per_capitanumberDepenses de fonctionnement, per inhabitant (EUR). Null when not reported.
depenses_totales_eurnumberDepenses totales, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
depenses_totales_eur_per_capitanumberDepenses totales, per inhabitant (EUR). Null when not reported.
depenses_totales_hors_remb_eurnumberDepenses totales hors remb, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
depots_au_tresor_eurnumberDepots au tresor, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
emprunts_hors_gad_eurnumberEmprunts hors gad, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
encours_de_dette_eurnumberEncours de dette, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
encours_de_dette_eur_per_capitanumberEncours de dette, per inhabitant (EUR). Null when not reported.
encours_de_dette_dettes_bancaires_et_assimilees_eurnumberEncours de dette dettes bancaires et assimilees, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
encours_de_dette_depots_et_cautionnements_recus_eurnumberEncours de dette depots et cautionnements recus, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
epargne_brute_eurnumberEpargne brute, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
epargne_brute_eur_per_capitanumberEpargne brute, per inhabitant (EUR). Null when not reported.
epargne_de_gestion_eurnumberEpargne de gestion, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
epargne_nette_eurnumberEpargne nette, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
fctva_eurnumberFctva, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
fiscalite_reversee_eurnumberFiscalite reversee, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
flux_net_de_dette_eurnumberFlux net de dette, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
fonds_de_roulement_eurnumberFonds de roulement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
fonds_de_soutien_aux_emprunts_a_risque_eurnumberFonds de soutien aux emprunts a risque, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
frais_de_personnel_eurnumberFrais de personnel, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
frais_de_personnel_eur_per_capitanumberFrais de personnel, per inhabitant (EUR). Null when not reported.
impots_et_taxes_eurnumberImpots et taxes, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
impots_locaux_eurnumberImpots locaux, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
produit_des_cessions_d_immobilisations_eurnumberProduit des cessions d immobilisations, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
perequations_et_compensations_fiscales_eurnumberPerequations et compensations fiscales, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
recettes_d_investissement_eurnumberRecettes d investissement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
recettes_d_investissement_hors_emprunts_eurnumberRecettes d investissement hors emprunts, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
recettes_de_fonctionnement_eurnumberRecettes de fonctionnement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
recettes_de_fonctionnement_eur_per_capitanumberRecettes de fonctionnement, per inhabitant (EUR). Null when not reported.
recettes_totales_eurnumberRecettes totales, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
recettes_totales_eur_per_capitanumberRecettes totales, per inhabitant (EUR). Null when not reported.
recettes_totales_hors_emprunts_eurnumberRecettes totales hors emprunts, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
remboursements_d_emprunts_hors_gad_eurnumberRemboursements d emprunts hors gad, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
subventions_aux_personnes_de_droit_prive_eurnumberSubventions aux personnes de droit prive, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
subventions_d_equipement_versees_eurnumberSubventions d equipement versees, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
subventions_recues_et_participations_eurnumberSubventions recues et participations, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
tva_eurnumberTva, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
taxe_d_enlevement_des_ordures_menageres_eurnumberTaxe d enlevement des ordures menageres, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
variation_du_fonds_de_roulement_eurnumberVariation du fonds de roulement, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
ventes_de_biens_et_services_eurnumberVentes de biens et services, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
versement_transport_eurnumberVersement transport, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.

Quick start

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('phonic_lily/france-communes-finances-ofgl').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-communes-finances-ofgl/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' -d '{"departments": ["62"], "maxResults": 10}'

FAQ

Where does the French Communes Finances 2021-2025 (OFGL Accounts) data come from?

Source: OFGL (Observatoire des finances et de la gestion publique locales), Comptes des communes 2018-2025, based on DGFiP accounts, Licence Ouverte v2.0 (Etalab). OFGL dataset ofgl-base-communes 'Comptes des communes 2018-2025' (https://data.ofgl.fr/explore/dataset/ofgl-base-communes/), Licence Ouverte v2.0 (Etalab) per the dataset metadata (modified 2026-07-29). The full base holds 21,857,255 rows (commune x budget x aggregate x fiscal year 2018-2025), far above 300 MB as CSV, so this Actor keeps the 5 last fiscal years (2021-2025) and the main budget only (annex budgets are excluded), pivoted to one record per commune and fiscal year with one column per aggregate (amounts in EUR) and per-inhabitant values for 8 key aggregates. An aggregate absent from a commune's accounts is null, never 0; a reported zero stays 0.0. Commune names, department, region and EPCI follow the 2025 geography. Population is the figure OFGL uses for per-inhabitant ratios. Data are public accounts of local authorities; no individual person is identified.

What can I filter on?

Commune name; INSEE commune code (full or part); EPCI name; Department codes (e.g. 75, 2A, 971); Regions; Rural commune (true or false); Mountain commune (true or false); Tourist commune (true or false); Min fiscal year / Max fiscal year; Min population / Max population; Min total spending per inhabitant (EUR) / Max total spending per inhabitant (EUR); Min total revenue per inhabitant (EUR) / Max total revenue per inhabitant (EUR); Min debt outstanding per inhabitant (EUR) / Max debt outstanding per inhabitant (EUR); Min gross savings per inhabitant (EUR) / Max gross savings per inhabitant (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-communes-finances-ofgl.

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-09 download of OFGL base (dataset last modified 2026-07-29) 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.