# France Local Investment Grants — DETR, DSIL, DPV, DSID Projects (`vespa-zzz/fr-local-investment-grants`) Actor

Projects of French communes, intercommunalities and départements funded by state investment grants (DETR, DSIL, DPV, DSID): title, cost, grant, rate. Filter by year, département, scheme or keyword, or aggregate.

- **URL**: https://apify.com/vespa-zzz/fr-local-investment-grants.md
- **Developed by:** [Vespa ZZZ](https://apify.com/vespa-zzz) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## France Local Investment Grants — DETR, DSIL, DPV, DSID Projects

Which schools, gyms, roads, heating networks or solar roofs did the French State co-fund in your target area — and how
much? This Actor returns the **projects of communes, intercommunalities (EPCI), syndicates and départements funded by
the State's local investment grants** — DETR, DSIL, DPV and DSID — as published by the Direction générale des
collectivités locales (DGCL): project title, total cost excl. VAT, grant amount and rate, beneficiary and département.
About 20,000 projects per year, from 2018.

Typical users: construction, engineering, energy-efficiency and equipment companies that sell to local authorities
(pipeline building and market sizing), consultants who help authorities apply for grants, public-finance analysts and
journalists.

### What you can do

- **Find projects** by budget year, département, scheme, beneficiary type, commune (INSEE code), SIREN, minimum grant and
  words in the project title (`ecole`, `gymnase`, `voirie`, `chaufferie`, `photovoltaique` …).
- **Aggregate** instead of listing: totals of projects, cost and grant per département, beneficiary, scheme or
  département × scheme, per year.
- Compare years: request several `years` at once.

### Input examples

School projects in the Rhône in 2025:

```json
{ "years": [2025], "departments": ["69"], "keywords": ["ecole"] }
```

Large DSIL grants nationwide in the last two years:

```json
{ "years": [2025, 2024], "schemes": ["DSIL"], "minSubsidyEur": 1000000 }
```

Grant totals per département and scheme:

```json
{ "years": [2025], "groupBy": "departmentScheme", "maxItems": 1000 }
```

Département codes: `1`–`95` (sent as `001`–`095`), `2A` / `2B` (Corsica), `971`–`976` and others for overseas, `691` for
the Métropole de Lyon. Keywords are matched case-insensitively; type them without accents (source titles are mostly
unaccented). Several keywords return projects matching any of them. `%`, `_` and `*` are not allowed in keywords (the source API treats them as wildcards).

### Output example

```json
{
  "year": 2025,
  "scheme": "DPV",
  "budgetProgramme": 119,
  "beneficiaryType": "commune",
  "beneficiaryName": "GIVORS",
  "beneficiarySiren": "216900910",
  "department": "069",
  "inseeCode": "69091",
  "projectTitle": "Remplacement des tableaux numeriques interactifs dans les ecoles en QPV",
  "costExclTaxEur": 57200,
  "subsidyEur": 11440,
  "subsidyRate": 0.2,
  "rowId": "2025-399",
  "sourceFileUrl": "https://static.data.gouv.fr/resources/…/dgcl-liste-projets-dotations-investissement-local-2025.csv",
  "source": "Direction générale des collectivités locales (DGCL), France — …"
}
```

Aggregated rows (`groupBy`) contain `year`, the group fields, `projects`, `totalCostExclTaxEur`, `totalSubsidyEur` and
counts of missing values (a total is `null` when every amount in the group is missing). Every row carries `datasetUrl`,
`sourceFileUrl` and `sourceFileModified` (the date data.gouv.fr reports for the source file). E-mail addresses and phone
numbers, if a project title ever contains one, are replaced by a placeholder. The run fails with a clear message, rather
than returning partial data, if the source changes while it is being read or its format changes. Missing values are `null`. With `groupBy: "beneficiary"`, projects whose beneficiary is withheld (see below) are pooled per year into one row
with `unidentifiedBeneficiaries: true` and no name, SIREN, département or type. The run summary is in the key-value store record `RUN_SUMMARY`
(available years, rows scanned, `projectsMatched` — the number of distinct projects read, which stops growing when
`maxItems` is reached in project mode — and whether the run stopped at `maxItems` or a spending limit).

Schemes: **DETR** — dotation d'équipement des territoires ruraux; **DSIL** — dotation de soutien à l'investissement local;
**DPV** — dotation politique de la ville; **DSID** — dotation de soutien à l'investissement des départements.

### Data source and terms

- Source: Direction générale des collectivités locales (DGCL), « Projets financés par les dotations de soutien à
  l'investissement des collectivités territoriales », data.gouv.fr
  (https://www.data.gouv.fr/datasets/projets-finances-par-les-dotations-de-soutien-a-linvestissement-des-collectivites-territoriales),
  read through the official data.gouv.fr tabular API.
- Licence Ouverte / Open Licence 2.0 (Etalab). The output is **processed by this Actor** (field names, aggregation);
  the date data.gouv.fr reports for the source file is in `sourceFileModified`.
- Beneficiaries are local authorities and other project owners. For the type « autre maître d'ouvrage » (or any new
  type), `beneficiaryName` and `beneficiarySiren` are output only when the SIREN identifies a public-sector body
  (starting with 1 or 2) and are `null` otherwise — a check of the 2025 list found only organisations, but other years
  were not reviewed one by one. No personal data is collected.
- This Actor is not affiliated with or endorsed by the DGCL or Etalab. Requests are sequential with a pause between them.

### 日本語の概要

フランス内務省地方自治体総局（DGCL）が公開する、国の地方投資補助（DETR・DSIL・DPV・DSID）の採択事業一覧（年約2万件、2018年〜）を
取得します。年度・県・制度・事業名のキーワード・最低交付額で絞り込み、県や受給団体ごとの集計もできます。

# Actor input Schema

## `years` (type: `array`):

Budget years (exercice), e.g. 2025, 2024. Data is available from 2018. Empty = the latest year.

## `departments` (type: `array`):

Département codes of the beneficiary, e.g. 1, 13, 75, 2A, 971 (Métropole de Lyon is 691). Empty = all.

## `schemes` (type: `array`):

DETR (rural areas), DSIL (local investment support), DPV (urban policy), DSID (départements). Empty = all.

## `keywords` (type: `array`):

Words in the project title (case-insensitive; type them without accents, as the source titles are mostly unaccented), e.g. ecole, gymnase, voirie, chaufferie, photovoltaique. Several words = any of them. %, \_ and \* are not allowed.

## `beneficiaryTypes` (type: `array`):

commune, epci, syndicat, departement, petr, collectivité à statut particulier, autre maître d'ouvrage. Empty = all. For other project owners, name and SIREN are shown only when the SIREN identifies a public-sector body.

## `inseeCodes` (type: `array`):

5-character INSEE codes of beneficiary communes, e.g. 69123 (Lyon).

## `sirens` (type: `array`):

9-digit SIREN of the beneficiary authority.

## `minSubsidyEur` (type: `integer`):

Only projects with a grant of at least this amount.

## `groupBy` (type: `string`):

none = one row per project. department / beneficiary / scheme / departmentScheme = totals (projects, cost, grant) per group and year.

## `maxItems` (type: `integer`):

Maximum number of output rows (projects or groups).

## Actor input object example

```json
{
  "years": [
    2025
  ],
  "departments": [
    "69"
  ],
  "keywords": [
    "ecole"
  ],
  "groupBy": "none",
  "maxItems": 1000
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `groups` (type: `string`):

No description

## `results` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "years": [
        2025
    ],
    "departments": [
        "69"
    ],
    "keywords": [
        "ecole"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vespa-zzz/fr-local-investment-grants").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "years": [2025],
    "departments": ["69"],
    "keywords": ["ecole"],
}

# Run the Actor and wait for it to finish
run = client.actor("vespa-zzz/fr-local-investment-grants").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "years": [
    2025
  ],
  "departments": [
    "69"
  ],
  "keywords": [
    "ecole"
  ]
}' |
apify call vespa-zzz/fr-local-investment-grants --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vespa-zzz/fr-local-investment-grants"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Hiz5ZjTpCy8mCymXH/builds/7LEH17eAnCX4CkdRd/openapi.json
