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
- Local public-finance consultant: Compare encours_de_dette_eur_per_capita and epargne_brute_eur_per_capita across communes of one population_bracket.
- Local news journalist: Trend frais_de_personnel_eur_per_capita and impots_locaux_eur for one commune_code across fiscal_year.
- Public-sector lender credit analyst: Screen communes on capacite_ou_besoin_de_financement_eur and annuite_de_la_dette_eur before a loan offer.
- Mountain and tourism policy researcher: Filter is_tourist or is_mountain and compare depenses_d_equipement_eur_per_capita with other communes.
What you can query
- 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)
Fields
| Field | Type | Description |
|---|---|---|
record_id | string | Stable key: commune code - fiscal year. |
commune_code | string | INSEE commune code (2025 geography). |
commune_name | string | Commune name (2025). |
fiscal_year | integer | Fiscal year (exercice) of the accounts, 2021-2025. |
department_code | string | Department code. |
department | string | Department name. |
region_code | string | Region code. |
region | string | Region name. |
epci_code | string | EPCI (intercommunality) SIREN code. |
epci_name | string | EPCI name. |
population | integer | Total population used by OFGL for per-capita figures. |
population_bracket | string | OFGL population bracket (strate) code. |
income_per_capita_bracket | string | OFGL bracket of taxable income per inhabitant. |
is_rural | boolean | Rural commune flag. |
is_mountain | boolean | Mountain commune flag. |
is_tourist | boolean | Tourist commune flag. |
has_qpv | boolean | Commune hosts a priority urban neighbourhood (QPV). |
overseas | boolean | Overseas commune flag. |
siren | string | SIREN of the commune. |
accounting_standard | string | Accounting nomenclature of the main budget (M14, M57, M57A...). |
achats_et_charges_externes_eur | number | Achats 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_eur | number | Annuite 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_eur | number | Autres 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_eur | number | Autres 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_eur | number | Autres 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_eur | number | Autres 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_eur | number | Autres 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_eur | number | Autres 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_eur | number | Autres 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_eur | number | Capacite 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_eur | number | Charges 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_eur | number | Concours 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_eur | number | Credits 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_eur | number | Dotation 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_eur | number | Depenses 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_eur | number | Depenses 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_eur | number | Depenses 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_eur | number | Depenses 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_capita | number | Depenses d equipement, per inhabitant (EUR). Null when not reported. |
depenses_de_fonctionnement_eur | number | Depenses 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_capita | number | Depenses de fonctionnement, per inhabitant (EUR). Null when not reported. |
depenses_totales_eur | number | Depenses 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_capita | number | Depenses totales, per inhabitant (EUR). Null when not reported. |
depenses_totales_hors_remb_eur | number | Depenses 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_eur | number | Depots 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_eur | number | Emprunts 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_eur | number | Encours 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_capita | number | Encours de dette, per inhabitant (EUR). Null when not reported. |
encours_de_dette_dettes_bancaires_et_assimilees_eur | number | Encours 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_eur | number | Encours 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_eur | number | Epargne 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_capita | number | Epargne brute, per inhabitant (EUR). Null when not reported. |
epargne_de_gestion_eur | number | Epargne de gestion, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero. |
epargne_nette_eur | number | Epargne nette, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero. |
fctva_eur | number | Fctva, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero. |
fiscalite_reversee_eur | number | Fiscalite 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_eur | number | Flux 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_eur | number | Fonds 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_eur | number | Fonds 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_eur | number | Frais 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_capita | number | Frais de personnel, per inhabitant (EUR). Null when not reported. |
impots_et_taxes_eur | number | Impots et taxes, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero. |
impots_locaux_eur | number | Impots 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_eur | number | Produit 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_eur | number | Perequations 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_eur | number | Recettes 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_eur | number | Recettes 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_eur | number | Recettes 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_capita | number | Recettes de fonctionnement, per inhabitant (EUR). Null when not reported. |
recettes_totales_eur | number | Recettes 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_capita | number | Recettes totales, per inhabitant (EUR). Null when not reported. |
recettes_totales_hors_emprunts_eur | number | Recettes 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_eur | number | Remboursements 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_eur | number | Subventions 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_eur | number | Subventions 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_eur | number | Subventions recues et participations, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero. |
tva_eur | number | Tva, 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_eur | number | Taxe 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_eur | number | Variation 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_eur | number | Ventes 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_eur | number | Versement 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
- France Communes: Population, Location, Median Income
- 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.