# DVF Historique France - Transactions Immobilières par Commune (`devnaz/dvf-historique`) Actor

Consultez l'historique complet des ventes immobilières depuis 2014 avec 11 filtres avancés (dates, prix, surface, type, pièces). Données officielles DVF (Demandes de Valeurs Foncières). Jusqu'à 10 000 transactions. Idéal pour analyses de marché, expertises immobilières et études de tendances.

- **URL**: https://apify.com/devnaz/dvf-historique.md
- **Developed by:** [DevnaZ](https://apify.com/devnaz) (community)
- **Categories:** Automation, Developer tools, Real estate
- **Stats:** 24 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.20 / 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

## 📜 DVF Historique France - Historique Transactions Immobilières

**Consultez l'historique complet des ventes immobilières d'une commune française avec les données officielles DVF (Demandes de Valeurs Foncières) depuis 2014.**

Obtenez toutes les transactions immobilières enregistrées pour une commune : dates, prix, surfaces, adresses, types de biens. Idéal pour analyses de marché, expertises immobilières et études de tendances.

### 🎯 Cas d'usage

✅ **Analyse de marché** : Étudier l'évolution des prix dans le temps
✅ **Expertise immobilière** : Justifier estimations avec ventes comparables
✅ **Due diligence** : Vérifier historique transactions avant achat
✅ **Études de tendances** : Identifier zones en hausse ou baisse
✅ **PropTech & startups** : Construire outils d'analyse immobilière avec données officielles

### 📥 Input

```json
{
  "code_insee": "92014",
  "date_debut": "2019-01-01",
  "date_fin": "2019-12-31",
  "type_local": "Appartement",
  "prix_min": 200000,
  "prix_max": 500000,
  "surface_min": 40,
  "pieces_min": 2,
  "order_by": "prix_desc",
  "limit": 10
}
```

**Champs obligatoires :**

- `code_insee` : Code INSEE de la commune (5 chiffres, ex: 92014 = Boulogne-Billancourt)

**Filtres optionnels :**

- `date_debut`, `date_fin` : Intervalle de dates (format: YYYY-MM-DD)
- `type_local` : Type de bien (`Appartement`, `Maison`, `Dépendance`, `Local industriel. commercial ou assimilé`)
- `nature_mutation` : Type de transaction (`Vente`, `Vente en l'état futur d'achèvement`, etc.)
- `prix_min`, `prix_max` : Fourchette de prix en euros
- `surface_min`, `surface_max` : Fourchette de surface en m²
- `pieces_min`, `pieces_max` : Nombre de pièces principales

**Tri des résultats :**

- `order_by` : `date_desc` (défaut), `date_asc`, `prix_desc`, `prix_asc`, `surface_desc`, `surface_asc`

**Limite :**

- `limit` : Nombre max de résultats (défaut: 10, max: 10000)
- Pour des besoins supérieurs à 10000 résultats, \[ouvrez un issue]

### 📤 Output

**Format :** Array de transactions triées chronologiquement (plus récentes en premier)

```json
[
  {
    "date_mutation": "2019-06-28",
    "nature_mutation": "Vente",
    "valeur_fonciere": 182000,
    "prix_m2": 3568.63,
    "type_local": "Appartement",
    "surface_reelle_bati": 51,
    "nombre_pieces_principales": 2,
    "code_postal": "92340",
    "commune": "BOURG-LA-REINE",
    "code_commune": "92014",
    "section": "Q",
    "numero_plan": "920140000Q0151",
    "numero_voie": "27",
    "voie": "CARNOT",
    "code_voie": "1410",
    "latitude": 48.777748,
    "longitude": 2.321967
  }
]
```

**Données retournées pour chaque transaction :**

- `date_mutation` : Date de la vente (YYYY-MM-DD)
- `nature_mutation` : Type de transaction (Vente, VEFA, etc.)
- `valeur_fonciere` : Prix de vente total en euros
- `prix_m2` : Prix au m² (calculé automatiquement)
- `type_local` : Type de bien (Appartement, Maison, Dépendance, Local commercial/industriel)
- `surface_reelle_bati` : Surface habitable en m²
- `nombre_pieces_principales` : Nombre de pièces
- `code_postal` : Code postal
- `commune` : Nom de la commune
- `code_commune` : Code INSEE (5 chiffres)
- `section` : Section cadastrale
- `numero_plan` : Numéro de parcelle cadastrale complet
- `numero_voie` : Numéro de rue
- `voie` : Nom de la voie
- `code_voie` : Code de la voie
- `latitude`, `longitude` : Coordonnées GPS (WGS84)

### ⚠️ Limitations

- **Disponibilité données** : L'API DVF ne contient pas de transactions pour toutes les communes
- **Historique** : Données disponibles depuis 2014 uniquement
- **Délai publication** : Lag de 6 mois entre vente et publication (confidentialité)
- **Grandes villes** : Données parfois incomplètes pour Paris, Lyon, Marseille
- **Petites communes** : Certaines communes rurales ont peu ou pas de transactions

### 🚀 Performance

- **Rapidité** : ~2-5 secondes par commune
- **Fiabilité** : Variable selon disponibilité API DVF
- **Tri** : Transactions automatiquement triées (plus récentes en premier)

### 🔒 Proxy

Le proxy Apify est optionnel et généralement non nécessaire (API gouvernementale ouverte).

### 🔗 Actors complémentaires

Enrichissez vos analyses avec d'autres actors :

- **[geocodeur-france](https://apify.com/devnaz/geocodeur-france)** → Obtenir code INSEE depuis adresse
- **[cadastre-france](https://apify.com/devnaz/cadastre-france)** → Obtenir code INSEE depuis GPS
- **[adresse-cadastre](https://apify.com/devnaz/adresse-cadastre)** → Adresse vers GPS + code INSEE (tout-en-un)
- **[comparateur-immo](https://apify.com/devnaz/comparateur-immo)** → Comparer prix moyens entre communes
- **[france-property-estimator](https://apify.com/devnaz/france-property-estimator)** → Estimer prix d'un bien

### 📊 À propos des données DVF

**DVF (Demandes de Valeurs Foncières)** est la base de données officielle des transactions immobilières en France publiée par la Direction Générale des Finances Publiques (DGFiP).

**Couverture :**

- France métropolitaine complète
- DOM-TOM partiels
- Depuis janvier 2014

**Types de biens inclus :**

- Maisons
- Appartements
- Terrains
- Locaux commerciaux
- Locaux industriels
- Dépendances

### 🔍 Mots-clés

DVF France, historique ventes immobilières France, transactions immobilières France, prix immobilier historique, Demandes Valeurs Foncières, API DVF France, données ventes immobilières, base DVF, historique prix m2 France, ventes immobilières par commune, analyse marché immobilier France, French property sales data, real estate transactions France, DVF API, property history France, prix vente immobilier France

***

**🇫🇷 Fait avec ❤️ pour la communauté française**

# Actor input Schema

## `code_insee` (type: `string`):

Code INSEE de la commune (5 chiffres). Exemple: 92014 pour Boulogne-Billancourt.

## `date_debut` (type: `string`):

Date de début de la période (format: YYYY-MM-DD). Exemple: 2020-01-01

## `date_fin` (type: `string`):

Date de fin de la période (format: YYYY-MM-DD). Exemple: 2024-12-31

## `type_local` (type: `string`):

Filtrer par type de bien immobilier

## `nature_mutation` (type: `string`):

Filtrer par type de transaction

## `prix_min` (type: `number`):

Prix minimum en euros

## `prix_max` (type: `number`):

Prix maximum en euros

## `surface_min` (type: `number`):

Surface minimum en m²

## `surface_max` (type: `number`):

Surface maximum en m²

## `pieces_min` (type: `integer`):

Nombre minimum de pièces principales

## `pieces_max` (type: `integer`):

Nombre maximum de pièces principales

## `order_by` (type: `string`):

Ordre de tri des résultats

## `limit` (type: `integer`):

Limite le nombre de ventes retournées (par défaut: 10, max: 10000)

## `proxyConfig` (type: `object`):

Proxy Apify (optionnel, généralement non nécessaire pour APIs gouvernementales)

## Actor input object example

```json
{
  "code_insee": "92014",
  "date_debut": "2020-01-01",
  "date_fin": "2024-12-31",
  "type_local": "Appartement",
  "prix_min": 200000,
  "prix_max": 500000,
  "surface_min": 40,
  "pieces_min": 2,
  "order_by": "date_desc",
  "limit": 10,
  "proxyConfig": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "code_insee": "92014",
    "date_debut": "2019-01-01",
    "date_fin": "2019-12-31",
    "type_local": "Appartement",
    "prix_min": 200000,
    "prix_max": 500000,
    "surface_min": 40,
    "pieces_min": 2,
    "order_by": "date_desc",
    "limit": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("devnaz/dvf-historique").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 = {
    "code_insee": "92014",
    "date_debut": "2019-01-01",
    "date_fin": "2019-12-31",
    "type_local": "Appartement",
    "prix_min": 200000,
    "prix_max": 500000,
    "surface_min": 40,
    "pieces_min": 2,
    "order_by": "date_desc",
    "limit": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("devnaz/dvf-historique").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 '{
  "code_insee": "92014",
  "date_debut": "2019-01-01",
  "date_fin": "2019-12-31",
  "type_local": "Appartement",
  "prix_min": 200000,
  "prix_max": 500000,
  "surface_min": 40,
  "pieces_min": 2,
  "order_by": "date_desc",
  "limit": 10
}' |
apify call devnaz/dvf-historique --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,devnaz/dvf-historique"
        }
    }
}
```

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/5hy6u4nh56QpaeeY4/builds/4QaDcvoOKNxs8SnzM/openapi.json
