# France DVF Real Estate Sales & BDNB Building API (`govdata-api/fr-dvf-bdnb-property-intel`) Actor

Extract French real estate sales (2024-2026 DVF Tabular API — active replacement for broken cquest.org) & CSTB BDNB building intel (DPE class, corporate/syndic owners, solar potential, construction year) with EUR/m². Zero proxy · Official Gov Open Data · MCP & n8n ready.

- **URL**: https://apify.com/govdata-api/fr-dvf-bdnb-property-intel.md
- **Developed by:** [Samuel Godran](https://apify.com/govdata-api) (community)
- **Categories:** Real estate, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/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 DVF Real Estate Sales & BDNB Building API

> **The active, zero-proxy replacement for broken `api.cquest.org/dvf` scrapers — extract official 2024–2026 French real estate transactions (DVF) with computed EUR/m² AND CSTB BDNB building intelligence (DPE class, corporate/syndic owners, solar roof potential, construction year) in one unified API.**

![Zero Proxy](https://img.shields.io/badge/Proxies-Zero%20Required-22c55e) ![Official Gov API](https://img.shields.io/badge/Source-DGFiP%20DVF%20%2B%20CSTB%20BDNB-2563eb) ![Pricing](https://img.shields.io/badge/Pricing-Pay--Per--Event-f59e0b) ![MCP Ready](https://img.shields.io/badge/AI%20%2F%20Automation-MCP%20%26%20n8n%20Ready-8b5cf6)

Legacy French DVF scrapers relying on `api.cquest.org/dvf` are permanently failing (`HTTP 502`). This Actor queries **two official, maintained French Government APIs directly** with zero proxies and zero browser overhead:

1. **Official DGFiP / Etalab DVF Tabular API (`tabular-api.data.gouv.fr`)** — geolocated real estate sales across **2026 S1, 2025, and 2024** (~10M+ recent mutations), sorted newest-first, automatically enriched with **`pricePerSqmEur`**, normalized full address, cadastral parcel ID, and Google Maps link.
2. **Official CSTB BDNB PostgREST API (`api.bdnb.io`)** — the first dedicated **Base de Données Nationale des Bâtiments (~32M French buildings)** Actor on Apify Store, delivering **DPE energy rating & A–G distribution, corporate/syndic owners (`corporateOwners` + `corporateOwnerSirens`), RNIC condominium ID, construction year, solar roof potential, and natural/heritage risks**.

***

### High-ROI Business Use Cases

- **PropTech & Automated Valuation Models (AVM / Comps)**: Pull verified notary-registered transactions (`mode: "dvf"`) by postal code, property type, price bracket, and surface area with ready-to-use `pricePerSqmEur`.
- **Property Traders (*Marchands de Biens*) & Real Estate Investors**: Detect under-priced deals, commercial premises (`Local industriel. commercial ou assimilé`), and entire residential buildings with high renovation upside.
- **Commercial Solar, Energy Retrofit & Condominium Lead Gen**: Switch to `mode: "bdnb"` to extract buildings with DPE F/G distribution, `solarThermalPotentialAnnualKwhM2`, and **corporate owner / syndic SIRENs** (`corporateOwnerSirens` + `ownerAnnuaireUrl`) ready for B2B outreach.
- **Insurance (IARD) & Urban Risk Underwriting**: Inspect `constructionYear`, `wallMaterial`, `roofMaterial`, `historicMonumentPerimeter`, `clayRisk`, `radonRisk`, and `seismicRisk` at building-group granularity.
- **AI Real Estate Agents (MCP)**: Let Claude, Cursor, or Antigravity run live French price-per-m² comps and building diagnostics conversationally.

***

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | `"dvf" \| "bdnb" \| "both"` | `"dvf"` | `"dvf"` for 2024–2026 S1 official sales, `"bdnb"` for CSTB building intelligence, or `"both"` to retrieve both sources in one run. |
| `departmentCode` | `string` | `"75"` | 2- or 3-character INSEE department code (e.g. `"75"`, `"69"`, `"33"`, `"13"`, `"2A"`, `"974"`). |
| `postalCodes` | `string[]` | `[]` | Optional list of 5-digit postal codes (e.g. `["75011", "75015"]` or `["33000"]`). Automatically mapped to indexed INSEE commune/arrondissement codes in BDNB mode. |
| `propertyTypes` | `string[]` | `[]` | Optional DVF types (`"Appartement"`, `"Maison"`, `"Local industriel. commercial ou assimilé"`, `"Dépendance"`) or BDNB usages (`"Résidentiel collectif"`, `"Résidentiel individuel"`, `"Tertiaire & Autres"`). |
| `minPriceEur` | `integer` | `0` | Optional minimum sale price in EUR for DVF mode (`0` = disabled). |
| `maxPriceEur` | `integer` | `0` | Optional maximum sale price in EUR for DVF mode (`0` = disabled). |
| `minSurfaceM2` | `integer` | `0` | Optional minimum surface area in m² (DVF `surface_reelle_bati` / BDNB `surface_emprise_sol`; `0` = disabled). |
| `maxItems` | `integer` | `100` | Maximum number of records to return (`1` to `3000`). |

***

### Real Inputs & Verified Output Examples

#### Example 1 — DVF Mode Input (Paris 11e & 15e Apartments)

```json
{
  "mode": "dvf",
  "departmentCode": "75",
  "postalCodes": ["75011", "75015"],
  "propertyTypes": ["Appartement"],
  "minPriceEur": 250000,
  "maxPriceEur": 900000,
  "minSurfaceM2": 35,
  "maxItems": 100
}
```

#### Verified Live DVF Output Record (`tabular-api.data.gouv.fr` — 2026 S1)

```json
{
  "source": "dvf",
  "datasetPeriod": "2026-S1",
  "mutationId": "2026-618503",
  "mutationDate": "2026-06-30",
  "mutationNature": "Vente",
  "priceEur": 495990,
  "surfaceM2": 49,
  "landSurfaceM2": null,
  "pricePerSqmEur": 10122,
  "rooms": 3,
  "propertyType": "Appartement",
  "lotsCount": 2,
  "fullAddress": "22 RUE OBERKAMPF, 75011 Paris 11",
  "postalCode": "75011",
  "commune": "Paris 11",
  "communeInseeCode": "75111",
  "departmentCode": "75",
  "parcelId": "75111000AP0022",
  "latitude": 48.86311297594236,
  "longitude": 2.369894500000001,
  "googleMapsUrl": "https://www.google.com/maps/search/?api=1&query=48.863113,2.369895"
}
```

#### Example 2 — BDNB Mode Output Record (`api.bdnb.io` — CSTB Building Intelligence)

```json
{
  "source": "bdnb",
  "buildingGroupId": "bdnb-bg-PNKT-PYUD-M7WS",
  "fullAddress": "11 Rue Trousseau 75011 Paris 11e Arrondissement",
  "allAddresses": [
    "11 rue trousseau, 75011, Paris 11e Arrondissement",
    "2 rue de la main d'or, 75011, Paris 11e Arrondissement"
  ],
  "postalCode": "75011",
  "commune": "Paris 11e Arrondissement",
  "communeInseeCode": "75111",
  "departmentCode": "75",
  "parcelIds": ["75111000CE0099"],
  "buildingUsage": "Résidentiel collectif",
  "constructionYear": 1890,
  "dwellingsCount": 20,
  "floorsCount": 7,
  "heightMeters": 19,
  "footprintSurfaceM2": 173,
  "wallMaterial": "BRIQUES - PIERRE",
  "roofMaterial": "ARDOISES - ZINC ALUMINIUM",
  "dpeClass": "D",
  "dpeId": "2675E1260895B",
  "dpeDate": "2026-05-07",
  "energyConsumptionKwhM2": 161,
  "ghgEmissionsKgCo2M2": 34,
  "heatingEnergy": "gaz",
  "heatingSystem": "chaudiere gaz condensation",
  "dpeDistribution": { "A": 0, "B": 0, "C": 0, "D": 7, "E": 3, "F": 0, "G": 0 },
  "corporateOwners": ["CABINET COUSIN ADMINISTRAT DE BIENS"],
  "corporateOwnerSirens": ["315983908"],
  "condominiumRegistrationId": "AF7524366",
  "solarThermalPotentialAnnualKwhM2": 27.51,
  "solarThermalFavorable": false,
  "historicMonumentPerimeter": true,
  "clayRisk": "",
  "radonRisk": "Faible",
  "seismicRisk": "Très faible",
  "relativeCommunePriceIndex": 0.757980529771338,
  "latitude": 48.85165693431331,
  "longitude": 2.3786275202041574,
  "googleMapsUrl": "https://www.google.com/maps/search/?api=1&query=48.851657,2.378628",
  "ownerAnnuaireUrl": "https://annuaire-entreprises.data.gouv.fr/entreprise/315983908"
}
```

***

### Transparent Pay-Per-Event (PPE) Pricing

Zero monthly subscription, zero proxy surcharges — pay only for records delivered:

| Event Name | Description | Price (USD) |
|---|---|---|
| `actor-start` | Charged once per Actor run startup | `$0.005` |
| `result-item` | One DVF property sale (with EUR/m²) or BDNB building intelligence record | `$0.020` |

#### Estimated Cost Examples

| Volume | Calculation | Total Cost (USD) |
|---|---|---|
| **100 records** | `$0.005 + (100 × $0.020)` | **`$2.005`** (~$2.01) |
| **1,000 records** | `$0.005 + (1,000 × $0.020)` | **`$20.005`** (~$20.01) |

> **Built-in spend control**: Set Apify's `maxTotalChargeUsd` parameter to stop cleanly the instant your budget cap is reached.

***

### Integrations: n8n, Make, API & AI Agents (MCP)

#### 1. n8n / Make.com / Zapier (Direct Sync HTTP Webhook)

```http
POST https://api.apify.com/v2/acts/govdata-api~fr-dvf-bdnb-property-intel/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN
Content-Type: application/json

{
  "mode": "dvf",
  "departmentCode": "75",
  "postalCodes": ["75011", "75015"],
  "propertyTypes": ["Appartement"],
  "minPriceEur": 250000,
  "minSurfaceM2": 35,
  "maxItems": 50
}
```

#### 2. Node.js (`apify-client`)

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('govdata-api/fr-dvf-bdnb-property-intel').call({
  mode: 'both',
  departmentCode: '33',
  postalCodes: ['33000'],
  propertyTypes: ['Appartement'],
  maxItems: 50,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### 3. Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("govdata-api/fr-dvf-bdnb-property-intel").call(run_input={
    "mode": "bdnb",
    "departmentCode": "75",
    "postalCodes": ["75011"],
    "minSurfaceM2": 150,
    "maxItems": 50,
})

items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Retrieved {len(items)} enriched BDNB buildings")
```

#### 4. AI Agents via Apify MCP Server (Claude Desktop, Cursor, Antigravity)

```json
{
  "mcpServers": {
    "apify-dvf-bdnb-fr": {
      "url": "https://mcp.apify.com?actors=govdata-api/fr-dvf-bdnb-property-intel",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

*Example prompt*: `"Pull the 25 latest apartment sales in 75011 Paris over 40 m² using fr-dvf-bdnb-property-intel, compute the median pricePerSqmEur, and also list BDNB buildings in 75011 with corporate syndic owners."`

***

### Part of the Official France Open Data Suite by `govdata-api`

**Winning Real Estate Playbook**: Pull BDNB corporate/syndic owners (`corporateOwnerSirens`) -> enrich directors & financials via **SIRENE & RNE Enricher** -> cross-reference with **ADEME DPE Energy Audit Leads**:

| Actor | Official Government Source | Primary Use Case |
|---|---|---|
| **[France DVF Real Estate Sales & BDNB Building API](https://apify.com/govdata-api/fr-dvf-bdnb-property-intel)** *(this Actor)* | DGFiP DVF + CSTB BDNB | 2024–2026 S1 property sales with EUR/m² + building DPE, owners & solar |
| **[France ADEME DPE Energy Audit Leads (F/G Scraper)](https://apify.com/govdata-api/ademe-fr-dpe-energy-leads)** | ADEME (`dpe03existant`) | Geocoded F/G *passoires thermiques* leads by postal code, fuel & m² |
| **[France SIRENE & RNE Company Enricher & Leads API](https://apify.com/govdata-api/sirene-fr-company-enricher)** | DINUM / INSEE / INPI | Bulk SIREN enrichment for corporate property owners, SCI & syndics |
| **[France Qualiopi Training Centers & B2B Leads API](https://apify.com/govdata-api/fr-qualiopi-training-leads)** | Ministry of Labor (DGEFP) | 46,074+ Qualiopi training centers with NDA, SIREN & trainee counts |
| **[France BODACC Scraper — Insolvency, Liquidations & M\&A](https://apify.com/govdata-api/bodacc-fr-insolvency-radar)** | DILA / BODACC (51M+ notices) | Bankruptcies, liquidators, art. L.622-24 deadlines & M\&A sales |
| **[France BOAMP Public Tenders & RFP Scraper API](https://apify.com/govdata-api/boamp-fr-public-tenders)** | DILA / BOAMP (1.7M+ tenders) | Active French public RFPs (*appels d'offres*) with deadline countdown |
| **[France DECP Public Contracts & Renewals Scraper API](https://apify.com/govdata-api/decp-fr-awarded-contracts)** | Ministry of Economy (DECP v3) | Awarded public contracts > €50k + computed 6–12 month renewal dates |

***

### Legal & Data Sources

Data is queried live from official French public Open Data APIs:

- **DGFiP / Etalab** — *Demandes de valeurs foncières géolocalisées* (`tabular-api.data.gouv.fr`) under **Licence Ouverte / Open Licence 2.0 (Etalab)**.
- **CSTB** — *Base de Données Nationale des Bâtiments (BDNB Open)* (`api.bdnb.io`) under **Licence Ouverte / Open Licence 2.0 (Etalab)**.

***

### Legal Notice & Open Data Licence

This Actor is an **independent API wrapper operated by GovData API** and is **not affiliated with, endorsed by, or officially connected to** any French or European government agency. All records are queried in real time from public government APIs (Official French DGFiP DVF Tabular API & CSTB BDNB Open Data API (Etalab Open Licence 2.0)). Users are solely responsible for complying with GDPR and applicable data-use regulations when processing extracted records.

# Actor input Schema

## `mode` (type: `string`):

Choose 'dvf' for official 2024–2026 S1 geolocated real estate transactions (with computed EUR/m²), 'bdnb' for CSTB national building intelligence (DPE class, corporate/syndic owners, solar roof potential, construction year), or 'both' to retrieve both sources in a single run.

## `departmentCode` (type: `string`):

2- or 3-character INSEE department code (e.g. '75' for Paris, '69' for Rhône, '33' for Gironde, '13' for Bouches-du-Rhône, '2A' for Corse-du-Sud, '974' for La Réunion). Defaults to '75' when no postalCodes are given.

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

Restrict results to specific 5-digit French postal codes (e.g. \['75011', '75015'] or \['33000', '33100']). In BDNB mode, postal codes are automatically resolved to indexed INSEE commune/arrondissement codes.

## `propertyTypes` (type: `array`):

Filter by DVF local type (e.g. \['Appartement', 'Maison', 'Local industriel. commercial ou assimilé', 'Dépendance']) or BDNB usage ('Résidentiel collectif', 'Résidentiel individuel', 'Tertiaire & Autres'). DVF labels are automatically mapped in BDNB mode.

## `minPriceEur` (type: `integer`):

Filter DVF transactions with valeur_fonciere >= this amount in euros (0 = disabled).

## `maxPriceEur` (type: `integer`):

Filter DVF transactions with valeur_fonciere <= this amount in euros (0 = disabled).

## `minSurfaceM2` (type: `integer`):

Minimum built floor area in m² (DVF surface_reelle_bati / BDNB surface_emprise_sol). Set 0 for no minimum.

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

Maximum number of property or building records to return (1 to 3000).

## Actor input object example

```json
{
  "mode": "dvf",
  "departmentCode": "75",
  "postalCodes": [],
  "propertyTypes": [],
  "minPriceEur": 0,
  "maxPriceEur": 0,
  "minSurfaceM2": 0,
  "maxItems": 100
}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("govdata-api/fr-dvf-bdnb-property-intel").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("govdata-api/fr-dvf-bdnb-property-intel").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 '{}' |
apify call govdata-api/fr-dvf-bdnb-property-intel --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,govdata-api/fr-dvf-bdnb-property-intel"
        }
    }
}
```

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/rxx8LdC76RORF0s03/builds/3NcsaKkE1eomotJIT/openapi.json
