French Communes Finances 2021-2025 (OFGL Accounts) avatar

French Communes Finances 2021-2025 (OFGL Accounts)

Pricing

from $2.80 / 1,000 commune-year record returneds

Go to Apify Store
French Communes Finances 2021-2025 (OFGL Accounts)

French Communes Finances 2021-2025 (OFGL Accounts)

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.

Pricing

from $2.80 / 1,000 commune-year record returneds

Rating

0.0

(0)

Developer

Henri bousquet

Henri bousquet

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 minutes ago

Last modified

Categories

Features

Limited permissions

Share

What this Actor does

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.

No scraping, no live dependency, no login: the data is embedded in the Actor and searched locally. You pay per record returned (pay-per-event commune-finance-result), never for empty runs.

What you get

  • 174,251 records, snapshot 2026-11-09 download of OFGL base (dataset last modified 2026-07-29).
  • Source licence: Licence Ouverte 2.0 (Etalab).
  • 21 input filters, all optional and combinable; results export as JSON, CSV, Excel, XML or HTML from the console or the API.

Quick start

Press Try for free with the pre-filled input, or paste it into the Input tab:

{
"departments": [
"62"
],
"maxResults": 10
}

That run returns up to 10 records and costs about $0.04 (10 x $0.004). A run of 1,000 records costs $4.00. maxResults (up to 10,000) caps both the output and the bill.

Example output

One real record from the data, columns as returned:

{
"record_id": "01004-2021",
"commune_code": "01004",
"commune_name": "Ambérieu-en-Bugey",
"fiscal_year": 2021,
"department_code": "01",
"department": "Ain",
"region_code": "84",
"region": "Auvergne-Rhône-Alpes",
"epci_code": "240100883",
"epci_name": "Communauté de communes de la Plaine de l'Ain",
"population": 14586,
"population_bracket": "7",
"income_per_capita_bracket": "2",
"is_rural": false
}

Input

Every filter is optional; combine them freely.

  • query (string): Commune name (accent- and case-insensitive substring).
  • communeCode (string): INSEE commune code (full or part) (accent- and case-insensitive substring).
  • epciName (string): EPCI name (accent- and case-insensitive substring).
  • departments (array): Department codes (e.g. 75, 2A, 971). Records with an empty value never match.
  • regions (array): Regions. Records with an empty value never match.
  • isRural (array): Rural commune (true or false). Records with an empty value never match.
  • isMountain (array): Mountain commune (true or false). Records with an empty value never match.
  • isTourist (array): Tourist commune (true or false). Records with an empty value never match.
  • minFiscalYear (number): Min fiscal year. Records with an empty value never match.
  • maxFiscalYear (number): Max fiscal year. Records with an empty value never match.
  • minPopulation (number): Min population. Records with an empty value never match.
  • maxPopulation (number): Max population. Records with an empty value never match.
  • minSpendingPerCapitaEur (number): Min total spending per inhabitant (EUR). Records with an empty value never match.
  • maxSpendingPerCapitaEur (number): Max total spending per inhabitant (EUR). Records with an empty value never match.
  • minRevenuePerCapitaEur (number): Min total revenue per inhabitant (EUR). Records with an empty value never match.
  • maxRevenuePerCapitaEur (number): Max total revenue per inhabitant (EUR). Records with an empty value never match.
  • minDebtPerCapitaEur (number): Min debt outstanding per inhabitant (EUR). Records with an empty value never match.
  • maxDebtPerCapitaEur (number): Max debt outstanding per inhabitant (EUR). Records with an empty value never match.
  • minGrossSavingsPerCapitaEur (number): Min gross savings per inhabitant (EUR). Records with an empty value never match.
  • maxGrossSavingsPerCapitaEur (number): Max gross savings per inhabitant (EUR). Records with an empty value never match.
  • sortBy (string): Sort by. Sort order of results. Default: file order (or distance when a radius is given).
  • maxResults (integer): Max results. Maximum records returned and billed (1..10000).

Output fields

  • record_id : Stable key: commune code - fiscal year.
  • commune_code : INSEE commune code (2025 geography).
  • commune_name : Commune name (2025).
  • fiscal_year : Fiscal year (exercice) of the accounts, 2021-2025.
  • department_code : Department code.
  • department : Department name.
  • region_code : Region code.
  • region : Region name.
  • epci_code : EPCI (intercommunality) SIREN code.
  • epci_name : EPCI name.
  • population : Total population used by OFGL for per-capita figures.
  • population_bracket : OFGL population bracket (strate) code.
  • income_per_capita_bracket : OFGL bracket of taxable income per inhabitant.
  • is_rural : Rural commune flag.
  • is_mountain : Mountain commune flag.
  • is_tourist : Tourist commune flag.
  • has_qpv : Commune hosts a priority urban neighbourhood (QPV).
  • overseas : Overseas commune flag.
  • siren : SIREN of the commune.
  • accounting_standard : Accounting nomenclature of the main budget (M14, M57, M57A...).
  • achats_et_charges_externes_eur : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : Depenses d equipement, per inhabitant (EUR). Null when not reported.
  • depenses_de_fonctionnement_eur : 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 : Depenses de fonctionnement, per inhabitant (EUR). Null when not reported.
  • depenses_totales_eur : 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 : Depenses totales, per inhabitant (EUR). Null when not reported.
  • depenses_totales_hors_remb_eur : 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 : 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 : 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 : 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 : Encours de dette, per inhabitant (EUR). Null when not reported.
  • encours_de_dette_dettes_bancaires_et_assimilees_eur : 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 : 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 : 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 : Epargne brute, per inhabitant (EUR). Null when not reported.
  • epargne_de_gestion_eur : 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 : Epargne nette, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
  • fctva_eur : Fctva, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.
  • fiscalite_reversee_eur : 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 : 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 : 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 : 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 : 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 : Frais de personnel, per inhabitant (EUR). Null when not reported.
  • impots_et_taxes_eur : 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 : 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 : 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 : 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 : 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 : 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 : 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 : Recettes de fonctionnement, per inhabitant (EUR). Null when not reported.
  • recettes_totales_eur : 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 : Recettes totales, per inhabitant (EUR). Null when not reported.
  • recettes_totales_hors_emprunts_eur : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : Versement transport, total amount in EUR for the fiscal year (main budget). Null when not reported; 0.0 is a reported zero.

Every record also carries license and attribution so you can republish with the required credit. Empty values are returned as null (never as 0).

Call it from code

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)
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}'

Pricing

Pay per event: $0.004 per record returned, no start fee, nothing billed for an empty run.

Records returnedCost
10$0.04
100$0.40
1,000$4.00
10,000$40.00

Use it from an AI agent (MCP)

Add this Actor as a tool to Claude, Cursor or any MCP client through the Apify MCP server:

https://mcp.apify.com?tools=phonic_lily/france-communes-finances-ofgl

The agent gets the input schema above and pays per record like any other run.

FAQ

Where does the data come from? 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.

How fresh is it? Snapshot 2026-11-09 download of OFGL base (dataset last modified 2026-07-29). The data is embedded in the Actor and updated when the publisher rebuilds it, so a run never depends on a live source and never fails because a site is down.

What does a run cost? $0.004 per returned record, nothing for runs that return no record. Apify free plan credit ($5) covers about 1,250 records.

Do I need a proxy, an account on the source or a browser? No: the Actor reads its own embedded file.

Data and licence

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.

Snapshot date: 2026-11-09 download of OFGL base (dataset last modified 2026-07-29).