# DVF France Property Sales & Price per m² (`leadsbrary/france-dvf-property-sales`) Actor

Get DVF France property sales: sold price, surface, rooms, price per m², address, parcel and GPS for any commune, postcode or address radius. Official open data, export as JSON, CSV or Excel.

- **URL**: https://apify.com/leadsbrary/france-dvf-property-sales.md
- **Developed by:** [Alexandre Manguis](https://apify.com/leadsbrary) (community)
- **Categories:** Real estate, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.56 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 France Property Sales & Price per m²

### What does DVF France Property Sales do?

This Actor returns **DVF France property sales**: the real, recorded sale prices of apartments, houses and other properties in France, from the official *Demandes de valeurs foncières* (DVF) open data. Give it communes (INSEE codes), postal codes, or an address plus a radius, and it returns one clean row per sale: date, price, built surface, rooms, **price per m²**, address, cadastral parcel and GPS coordinates.

DVF is free, but the raw files have one row per lot or parcel. The Actor downloads only the files you need, groups rows into one row per sale (mutation), sums surfaces, computes €/m² when it is meaningful, and can filter outliers and sort by distance from an address. It also saves a per-run summary (median and quartile €/m²) in the key-value store under the key `SUMMARY`.

#### Data source

Source: DGFiP – *Demandes de valeurs foncières* (geolocated "geo-dvf" edition published by Etalab), [Licence Ouverte 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence/). Dataset page: https://www.data.gouv.fr/fr/datasets/demandes-de-valeurs-foncieres-geolocalisees/. Data is refreshed by the publisher about twice a year and covers sales since 2021.

### Use cases

- **Valuation and offer preparation**: comparable sold properties within N metres of an address, nearest first.
- **Market studies**: sold price per m² by commune, property type and year.
- **Bulk export**: every sale in a list of communes or postal codes, for a spreadsheet or BI tool.
- **Listing enrichment**: join sold-price benchmarks to asking-price data using the INSEE code, postal code or parcel id.
- **Journalism and local research** on price trends since 2021.

### Features and limits

#### Features

- Three ways to query: communes / INSEE codes, postal codes, or address + radius (50–5,000 m).
- One row per sale, with surfaces summed and multi-lot sales flagged (`isMultiLocal`).
- `pricePerM2` is set to `null` when it would be misleading (several main properties sold together, or no built surface).
- Filters: years, property types, sale nature, price range, built-surface range, optional outlier exclusion (3×IQR).
- Paris, Lyon and Marseille city codes (75056, 69123, 13055) expand to their arrondissements.
- `maxResults` caps both the output and your spending.
- No scraping of websites, no login: official open files and public government APIs only.

#### Coverage limits

Alsace-Moselle (departments 57, 67, 68) and Mayotte are not in DVF. A run on those areas succeeds with 0 results and a warning in the log. DVF has no buyer or seller names, and the Actor does not look for them.

### Input and configuration

#### Input fields

| Field | Type | Description |
|---|---|---|
| `communes` | array of strings | INSEE codes, e.g. `33063` (Bordeaux). |
| `postalCodes` | array of strings | 5-digit postal codes, e.g. `69003`. |
| `address` | string | Free-text French address, used with `radiusMeters`. |
| `radiusMeters` | integer | Radius around the address, 50–5,000 (default 500). |
| `years` | array of integers | Sale years, e.g. `[2024, 2025]`. Empty = the 2 latest published years. |
| `propertyTypes` | array of strings | `Appartement`, `Maison`, `Local industriel. commercial ou assimilé`, `Terrain`. Empty = all. |
| `mutationTypes` | array of strings | e.g. `Vente`, `Vente en l'état futur d'achèvement`, `Adjudication`. Empty = all. |
| `minPrice`, `maxPrice` | integer | Price bounds in EUR. |
| `minSurfaceM2`, `maxSurfaceM2` | integer | Built-surface bounds in m². |
| `excludeOutliers` | boolean | Drop €/m² outliers (3×IQR). Default `false`. |
| `maxResults` | integer | Maximum sales to output and bill (default 100). |
| `proxyConfiguration` | object | Apify proxy used for the file downloads (default: Apify datacenter proxy). |

At least one of `communes`, `postalCodes` or `address` is required; otherwise the run fails immediately with a clear message and bills nothing.

#### Input examples

The three query modes can be combined; each example below is a complete input.

By commune:

```json
{ "communes": ["33063"], "years": [2024], "propertyTypes": ["Appartement"], "maxResults": 50 }
```

By postal code:

```json
{ "postalCodes": ["69003", "69006"], "years": [2024, 2025], "propertyTypes": ["Appartement", "Maison"], "maxResults": 1000 }
```

Comparables around an address:

```json
{ "address": "10 place de la Bourse, 33000 Bordeaux", "radiusMeters": 400, "years": [2024], "maxResults": 30 }
```

### Output

#### Example item

Each dataset item is one sale. Example from a test run (commune mode, Bordeaux, 2024):

```json
{
  "mutationId": "2024-376177",
  "saleDate": "2024-12-31",
  "mutationType": "Vente",
  "price": 150367,
  "propertyType": "Appartement",
  "builtSurfaceM2": 61,
  "carrezSurfaceM2": 61.36,
  "landSurfaceM2": null,
  "rooms": 4,
  "pricePerM2": 2465.03,
  "localsCount": 1,
  "dependenciesCount": 1,
  "isMultiLocal": false,
  "address": "27 RUE DU PROFESSEUR DEVAUX",
  "postalCode": "33800",
  "inseeCode": "33063",
  "commune": "Bordeaux",
  "departmentCode": "33",
  "parcelIds": ["33063000BY0320"],
  "latitude": 44.81727,
  "longitude": -0.552222,
  "scrapedAt": "2026-10-04T09:15:16.080Z"
}
```

In address mode each row also has `distanceMeters`, and rows are sorted nearest first.

#### Output fields and fill rates

Measured on a 40-row commune/postal-code run (medium) and a 30-row address run. Fill = share of rows with a non-empty value.

| Field | Meaning | Fill (40-row run) | Fill (address run) |
|---|---|---|---|
| `mutationId` | Unique sale id | 100% | 100% |
| `saleDate`, `mutationType`, `price` | Date, nature, price of the whole sale (EUR) | 100% | 100% |
| `propertyType` | Main property type | 100% | 93% |
| `builtSurfaceM2` | Summed built surface | 100% | 93% |
| `carrezSurfaceM2` | Summed Carrez surface, when declared | 85% | 47% |
| `landSurfaceM2` | Land surface over distinct parcels | 3% | 13% |
| `rooms` | Main rooms of the main property | 100% | 93% |
| `pricePerM2` | price / built surface, `null` if unreliable | 93% | 70% |
| `localsCount`, `dependenciesCount`, `isMultiLocal` | Composition of the sale | 100% | 100% |
| `address`, `postalCode`, `inseeCode`, `commune`, `departmentCode` | Location as published | 100% | 100% |
| `parcelIds`, `latitude`, `longitude` | Parcels and GPS | 100% | 100% |
| `distanceMeters` | Distance to the input address (address mode only) | n/a | 100% |
| `scrapedAt` | Time of extraction | 100% | 100% |

**Reading €/m² correctly:** it uses the built surface, not the Carrez surface. Sales that include several main properties (`isMultiLocal: true`) have `pricePerM2: null`. The price of a sale may include dependencies such as a parking space or cellar (see `dependenciesCount`), which slightly raises the apparent €/m².

### Run it from code (API)

Replace `YOUR_APIFY_TOKEN` with your token.

**curl**

```bash
curl -X POST "https://api.apify.com/v2/acts/YOUR_USERNAME~france-dvf-property-sales/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"address": "10 place de la Bourse, 33000 Bordeaux", "radiusMeters": 400, "years": [2024], "maxResults": 30}'
```

**JavaScript**

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('YOUR_USERNAME/france-dvf-property-sales').call({
    communes: ['33063'],
    years: [2024],
    propertyTypes: ['Appartement'],
    maxResults: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0]);
```

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("YOUR_USERNAME/france-dvf-property-sales").call(run_input={
    "postalCodes": ["69003"],
    "years": [2024],
    "propertyTypes": ["Appartement", "Maison"],
    "excludeOutliers": True,
    "maxResults": 200,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items[0])
```

Export the dataset as JSON, CSV or Excel from the Apify Console or API.

### Pricing

Pay per result: you are billed for each sale row written to the dataset, never more than `maxResults`. The summary record is not billed. Prices per 1,000 results depend on your Apify plan:

| Plan | Price per 1,000 results |
|---|---|
| Free | $0.84 |
| Bronze | $0.73 |
| Silver | $0.64 |
| Gold and above | $0.56 |

#### Platform usage

Platform usage is billed separately by Apify. In our test runs it was very small: $0.0009 for a 40-row run and $0.0005 for a 30-row address run. Runs with no results (for example Alsace-Moselle) are not billed per result.

### Troubleshooting

- **0 results:** check the area is covered (not 57, 67, 68 or Mayotte), the years exist (2021 onward), and your filters are not too strict. Try `propertyTypes: []`.
- **Run fails with "Provide at least one of communes, postalCodes or address":** add a location.
- **Address not found:** write it with street number, street, postcode and city.
- **`pricePerM2` is null:** the sale mixes several main properties or has no built surface; filter on `isMultiLocal: false`.
- **Latest sales are missing:** DVF is published about twice a year, with a delay after each sale.

### FAQ

**Is this asking prices or sold prices?** Sold prices, as recorded by the tax administration in DVF.

**Is it legal to use?** DVF is open data under Licence Ouverte 2.0, which allows reuse, including commercial, with attribution. Keep the source mention above and follow the reuse conditions on the official dataset page. The Actor returns no buyer or seller identities.

**Does it need a proxy?** No scraping is involved. The proxy setting is only used for downloading the open files, and the default works.

**Can I get a median €/m²?** Yes, a summary with median and quartile €/m² is saved in the run's key-value store under `SUMMARY`, or compute it from the dataset.

**Which dates are available?** Sales since 2021, as published in geo-dvf.

### Keywords

DVF France property sales, French real estate sold prices, prix immobilier m2 commune, demandes de valeurs foncières, DVF API, prix de vente immobilier France, price per square metre France, comparable sales France, transactions immobilières, property prices France open data, geo-dvf

### Hashtags

\#DVF #RealEstate #France #Immobilier #OpenData #PropertyPrices #PrixM2 #PropTech

# Changelog

This Actor's version history is a separate document: https://apify.com/leadsbrary/france-dvf-property-sales/changelog.md

# Actor input Schema

## `communes` (type: `array`):

INSEE codes (e.g. 33063 Bordeaux). 75056, 69123 and 13055 expand to their arrondissements. Alsace-Moselle and Mayotte are not covered by DVF.

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

5-digit postal codes, e.g. 69003.

## `address` (type: `string`):

Free-text French address; returns sales within the radius, nearest first.

## `radiusMeters` (type: `integer`):

Radius around the address.

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

Sale years, e.g. \[2024, 2025]. Empty = the 2 latest published years.

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

Appartement, Maison, Local industriel. commercial ou assimilé, Terrain. Empty = all.

## `mutationTypes` (type: `array`):

e.g. Vente, Vente en l'état futur d'achèvement, Adjudication. Empty = all.

## `minPrice` (type: `integer`):

Lower bound on the sale price.

## `maxPrice` (type: `integer`):

Upper bound on the sale price.

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

Lower bound on built surface.

## `maxSurfaceM2` (type: `integer`):

Upper bound on built surface.

## `excludeOutliers` (type: `boolean`):

Drop sales far outside the interquartile range (3×IQR).

## `maxResults` (type: `integer`):

Stop after this many sales (also protects your spending).

## `proxyConfiguration` (type: `object`):

Apify datacenter proxy (default) used for the open-data downloads.

## Actor input object example

```json
{
  "communes": [
    "33063"
  ],
  "radiusMeters": 500,
  "years": [
    2024
  ],
  "propertyTypes": [
    "Appartement"
  ],
  "excludeOutliers": false,
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "communes": [
        "33063"
    ],
    "years": [
        2024
    ],
    "propertyTypes": [
        "Appartement"
    ],
    "maxResults": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("leadsbrary/france-dvf-property-sales").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 = {
    "communes": ["33063"],
    "years": [2024],
    "propertyTypes": ["Appartement"],
    "maxResults": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("leadsbrary/france-dvf-property-sales").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 '{
  "communes": [
    "33063"
  ],
  "years": [
    2024
  ],
  "propertyTypes": [
    "Appartement"
  ],
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call leadsbrary/france-dvf-property-sales --silent --output-dataset

```

## MCP server setup

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

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/cdQWgQVFESI7sI7cL/builds/YCRx8pz7YMXLGoqsy/openapi.json
