# France Vehicle Fleet by Town: EV Share, Crit'Air & Fuel Types (`datacraft-studio/france-town-vehicle-fleet`) Actor

Official SDES open data on the French road vehicle fleet for every town, EPCI, department or region: electric and hybrid share and growth, diesel and petrol, Crit'Air stickers, private vs company vehicles, new registrations. Pay per area.

- **URL**: https://apify.com/datacraft-studio/france-town-vehicle-fleet.md
- **Developed by:** [Yahya Nouali](https://apify.com/datacraft-studio) (community)
- **Categories:** Business, Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 area delivereds

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 Vehicle Fleet by Town: EV Share, Crit'Air & Fuel Types

Get the **official vehicle fleet of any French town** from the government statistics service **SDES** (Ministère de la Transition écologique): how many cars, vans, trucks and buses are registered, the **share of electric and hybrid vehicles** and how fast it grows, diesel vs petrol, **Crit'Air stickers** (low emission zones), private vs company vehicles, and **new registrations** of the last year. One row per town (or district, EPCI, department, region), ready for EV charging projects, car dealers, insurers, energy suppliers, low emission zone (ZFE) studies, local market studies or lead scoring.

### What you get for each area

- **Area**: INSEE code, name, department, region, EPCI, postal codes, population, cars per 1,000 inhabitants.
- **Fleet at 1 January 2026** (provisional) for the selected group (passenger cars by default): total, change vs 2025 and vs 2021, plus totals of cars, vans, heavy goods vehicles and buses.
- **Fuel / powertrain**: battery electric, plug-in hybrid, non plug-in hybrid, petrol, diesel, gas, hydrogen — counts and shares, zero-emission and electrified shares.
- **Electric trend**: electric vehicles in 2025 and 2021, 1-year growth, share change in points, department average and the town's **rank in its department**.
- **Crit'Air stickers**: E, 1, 2, 3, 4, 5, unclassified — counts and shares, `critAir2OrBetterSharePct`, `critAir3OrWorseSharePct`.
- **Users**: private owners vs professional (company) vehicles.
- **New registrations 2025** (optional, on by default): total, change vs 2024, electric / plug-in hybrid / hybrid / petrol / diesel shares, share registered by companies.
- Source, licence and **SDES publication date** on every row. A final summary row lists unknown codes and counts.

### How to use

- **Some towns**: `communeCodes: ["78621", "69123"]` or `postalCodes: ["75016"]`.
- **A department, EPCI or region**: `departments: ["33"]`, `epciCodes: ["200046977"]`, `regionCodes: ["84"]`.
- **Other levels**: `level: "DEP"` for one row per department, `"EPCI"`, `"REG"`, `"ARM"` (Paris/Lyon/Marseille districts) or `"FRANCE"`.
- **Find towns**: e.g. towns of more than 20,000 inhabitants with the lowest electric car share (where charging demand will grow):

```json
{ "minPopulation": 20000, "maxElectricSharePct": 3, "sortBy": "ev_share_desc", "maxItems": 100 }
```

Or towns where more than 30% of cars are Crit'Air 3 or worse: `{ "minOldCritAirSharePct": 30, "minVehicles": 5000, "sortBy": "old_critair_desc" }`. Use `vehicleGroup: "VUL"` for vans, `"PL"` for trucks, `"TCP"` for buses, `"ALL"` for every road vehicle.

### Good to know

- Data is read fresh from the SDES open data platform (DiDo) at each run: a few seconds per department, about 1 minute for all of France.
- The latest year is **provisional** (SDES revises it when new technical inspections arrive). The fleet is counted where the vehicle's user lives; vehicles with an unknown town are counted in department, region and France totals only.
- New registrations are counted at the user's address: for leased company cars this can be the leasing company's or the employer's town, so company-heavy towns may look high.
- No personal data: the source only contains counts per town; no plate, owner or vehicle detail.

### Source and licence

- **Source**: SDES (Service des données et études statistiques, Ministère de la Transition écologique), datasets « Parc de véhicules routiers » (fleet at 1 January 2011–2026, published 10 July 2026) and « Immatriculations de véhicules routiers » (new registrations 2010–2025, published 11 February 2026) at town level, from https://data.statistiques.developpement-durable.gouv.fr (also listed on data.gouv.fr). Dates are given in `sourceDataDate` and `newRegistrationsDataDate`.
- **Licence**: Licence Ouverte / Open Licence (Etalab). The SDES legal notice states the data can be reused for commercial purposes without fee, with mention of the source and date. Populations and names: INSEE via geo.api.gouv.fr.
- This Actor is not affiliated with the French government or SDES.

### Pricing

Pay per event: **$0.002 per area delivered** ($2 per 1,000 towns). Filtered-out areas and the summary row are free. Runs use 512 MB.

# Changelog

This Actor's version history is a separate document: https://apify.com/datacraft-studio/france-town-vehicle-fleet/changelog.md

# Actor input Schema

## `communeCodes` (type: `array`):

Official INSEE town codes, e.g. 69123 (Lyon). Paris/Lyon/Marseille district codes (75116, 69383, 13208…) return the district.

## `postalCodes` (type: `array`):

5-digit postal codes, resolved to towns with geo.api.gouv.fr.

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

Department codes (e.g. 69, 2A, 974). Returns all their towns (or the departments themselves with level DEP). Ignored for towns when town codes or postal codes are given.

## `epciCodes` (type: `array`):

9-digit EPCI SIREN codes, e.g. 200046977 (Métropole de Lyon).

## `regionCodes` (type: `array`):

2-digit INSEE region codes, e.g. 84 (Auvergne-Rhône-Alpes), 11 (Île-de-France).

## `level` (type: `string`):

One row per town (COM, default), Paris/Lyon/Marseille district (ARM), intercommunality (EPCI), department (DEP), region (REG) or one row for all of France.

## `vehicleGroup` (type: `string`):

Group used for the detailed fuel, Crit'Air and new registration columns. Totals for all groups are always included.

## `includeNewRegistrations` (type: `boolean`):

Add new vehicle registrations of the latest year (total, electric / hybrid / petrol / diesel shares, company share).

## `minVehicles` (type: `integer`):

Keep only areas with at least this many vehicles of the selected group.

## `minElectricSharePct` (type: `number`):

Keep only areas where battery electric vehicles are at least this % of the selected group.

## `maxElectricSharePct` (type: `number`):

Keep only areas below this electric share (find under-equipped towns).

## `minOldCritAirSharePct` (type: `number`):

Keep only areas where Crit'Air 3, 4, 5 and unclassified vehicles are at least this % (useful for low emission zone studies).

## `minPopulation` (type: `integer`):

Minimum municipal population (INSEE, via geo.api.gouv.fr).

## `maxPopulation` (type: `integer`):

Maximum municipal population.

## `sortBy` (type: `string`):

Order of the results.

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

Maximum number of areas delivered (and charged).

## Actor input object example

```json
{
  "communeCodes": [
    "78621",
    "69123"
  ],
  "level": "COM",
  "vehicleGroup": "VP",
  "includeNewRegistrations": true,
  "sortBy": "vehicles_desc",
  "maxItems": 10
}
```

# Actor output Schema

## `areas` (type: `string`):

One row per town or area with fleet, electric share, Crit'Air and new registrations.

## `summary` (type: `string`):

Source dates, counts, unknown inputs.

# 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 = {
    "communeCodes": [
        "78621",
        "69123"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacraft-studio/france-town-vehicle-fleet").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 = {
    "communeCodes": [
        "78621",
        "69123",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datacraft-studio/france-town-vehicle-fleet").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 '{
  "communeCodes": [
    "78621",
    "69123"
  ],
  "maxItems": 10
}' |
apify call datacraft-studio/france-town-vehicle-fleet --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacraft-studio/france-town-vehicle-fleet"
        }
    }
}
```

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/ycowBY6VJFNr92i70/builds/HKyl013DBeBPQF615/openapi.json
