# French Real Estate Prices (DVF) — Property Sales by Commune (`vigilant_jasmine/french-real-estate-prices-dvf`) Actor

Get real French property sale prices from official DVF open data. Transactions with price, surface, price per m2, address and GPS, plus median price per commune. Free.

- **URL**: https://apify.com/vigilant\_jasmine/french-real-estate-prices-dvf.md
- **Developed by:** [DEV DEV](https://apify.com/vigilant_jasmine) (community)
- **Categories:** Real estate, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## French Real Estate Prices (DVF) — Property Sales by Commune

Get **real, officially recorded French property sale prices** for any commune, straight from the government's DVF open data (*Demandes de Valeurs Foncières* — "prix immobilier France", "valeur foncière", "prix au m²"). Every property sale registered by the French tax administration is in here: what sold, when, for how much, at what address, with GPS coordinates. This actor turns that into clean, tabular data — with median price and median price per m² computed per commune.

**This actor is free.** You only pay your own Apify platform usage.

### Input

| Field | Type | Description |
|---|---|---|
| `communes` | array (required) | 5-character INSEE commune codes (not postal codes). `59350` = Lille, `75101` = Paris 1st, `2A004` = Ajaccio. Paris/Lyon/Marseille split by arrondissement. |
| `year` | integer | Transaction year. DVF publishes **2021–2025**. Default `2023`. |
| `propertyTypes` | array | Filter: `Maison`, `Appartement`, `Dépendance`, `Local industriel. commercial ou assimilé`. Empty = all. |
| `natureMutation` | string | e.g. `Vente`. Empty = all. |
| `minPrice` / `maxPrice` | integer | Price bounds in EUR. |
| `maxResultsPerCommune` | integer | Cap per commune. Default `500`. |
| `includeSummary` | boolean | Attach commune-level medians to each item. Default `true`. |

### Output

One dataset item per transaction. Every item carries a `status` field (`found` / `not_found` / `error`), so a bad input never breaks a run.

```json
{
  "status": "found",
  "year": 2023,
  "transactionId": "2023-755092",
  "date": "2023-01-04",
  "natureMutation": "Vente",
  "price": 226700,
  "currency": "EUR",
  "propertyType": "Maison",
  "builtAreaSqm": 81,
  "rooms": 5,
  "landAreaSqm": 134,
  "pricePerSqm": 2798.77,
  "address": "1 B RUE HENRI PLOYART",
  "postalCode": "59260",
  "communeCode": "59350",
  "communeName": "Lille",
  "departmentCode": "59",
  "parcelId": "59350298AK0008",
  "longitude": 3.100652,
  "latitude": 50.619678,
  "communeSummary": { "transactionCount": 3612, "medianPrice": 232000, "medianPricePerSqm": 2745.1 }
}
````

### Use cases

- **Property valuation** — benchmark an asking price against what actually sold nearby, per m².
- **Real estate market analysis** — track median €/m² by commune and year, spot rising or cooling markets.
- **PropTech & lead enrichment** — enrich listings or CRM records with true transaction history.
- **Research & journalism** — reproducible, source-of-truth housing data for a town, city or region.

### Limitations & fair use

- Source: [DVF open data](https://files.data.gouv.fr/geo-dvf/) published by the DGFiP / Etalab under the **Licence Ouverte 2.0** (open licence, free to reuse with attribution).
- **Alsace-Moselle (57, 67, 68) and Mayotte (976) are not covered by DVF** — these use a different land registry. Those communes return `not_found`.
- DVF is published with a lag; the most recent year is partial.
- Prices are the recorded sale value (`valeur foncière`) and may cover several lots in one transaction — check `nombre_lots` context via `landAreaSqm` / `builtAreaSqm` before comparing.
- The actor is polite to the source: retries with backoff and a short delay between communes.

### More actors by this developer

Reliable data tools built on official French & EU open data APIs — company data, compliance checks, geo and environment: **[apify.com/vigilant\_jasmine](https://apify.com/vigilant_jasmine)**

# Actor input Schema

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

One or more 5-character INSEE commune codes (not postal codes). Examples: 59350 = Lille, 75101 = Paris 1st arrondissement, 2A004 = Ajaccio. Paris, Lyon and Marseille are split by arrondissement.

## `year` (type: `integer`):

Transaction year to query. DVF currently publishes 2021 to 2025.

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

Filter by property type. Leave empty for all. Allowed values: Maison, Appartement, Dépendance, Local industriel. commercial ou assimilé

## `natureMutation` (type: `string`):

Filter by transaction nature, e.g. "Vente". Leave empty for all.

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

Only return transactions at or above this price.

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

Only return transactions at or below this price.

## `maxResultsPerCommune` (type: `integer`):

Cap the number of transactions returned per commune.

## `includeSummary` (type: `boolean`):

Attach median price and median price per m² for the whole commune to each item.

## Actor input object example

```json
{
  "communes": [
    "59350"
  ],
  "year": 2023,
  "propertyTypes": [],
  "natureMutation": "",
  "maxResultsPerCommune": 500,
  "includeSummary": true
}
```

# 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": [
        "59350"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vigilant_jasmine/french-real-estate-prices-dvf").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": ["59350"] }

# Run the Actor and wait for it to finish
run = client.actor("vigilant_jasmine/french-real-estate-prices-dvf").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "59350"
  ]
}' |
apify call vigilant_jasmine/french-real-estate-prices-dvf --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=vigilant_jasmine/french-real-estate-prices-dvf",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "French Real Estate Prices (DVF) — Property Sales by Commune",
        "description": "Get real French property sale prices from official DVF open data. Transactions with price, surface, price per m2, address and GPS, plus median price per commune. Free.",
        "version": "0.0",
        "x-build-id": "Tgh1pC5yIpctAMt5S"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/vigilant_jasmine~french-real-estate-prices-dvf/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-vigilant_jasmine-french-real-estate-prices-dvf",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/vigilant_jasmine~french-real-estate-prices-dvf/runs": {
            "post": {
                "operationId": "runs-sync-vigilant_jasmine-french-real-estate-prices-dvf",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/vigilant_jasmine~french-real-estate-prices-dvf/run-sync": {
            "post": {
                "operationId": "run-sync-vigilant_jasmine-french-real-estate-prices-dvf",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "communes"
                ],
                "properties": {
                    "communes": {
                        "title": "INSEE commune codes",
                        "type": "array",
                        "description": "One or more 5-character INSEE commune codes (not postal codes). Examples: 59350 = Lille, 75101 = Paris 1st arrondissement, 2A004 = Ajaccio. Paris, Lyon and Marseille are split by arrondissement.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "year": {
                        "title": "Year",
                        "minimum": 2021,
                        "maximum": 2025,
                        "type": "integer",
                        "description": "Transaction year to query. DVF currently publishes 2021 to 2025.",
                        "default": 2023
                    },
                    "propertyTypes": {
                        "title": "Property types",
                        "type": "array",
                        "description": "Filter by property type. Leave empty for all. Allowed values: Maison, Appartement, Dépendance, Local industriel. commercial ou assimilé",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "natureMutation": {
                        "title": "Nature of sale",
                        "type": "string",
                        "description": "Filter by transaction nature, e.g. \"Vente\". Leave empty for all.",
                        "default": ""
                    },
                    "minPrice": {
                        "title": "Minimum price (EUR)",
                        "type": "integer",
                        "description": "Only return transactions at or above this price."
                    },
                    "maxPrice": {
                        "title": "Maximum price (EUR)",
                        "type": "integer",
                        "description": "Only return transactions at or below this price."
                    },
                    "maxResultsPerCommune": {
                        "title": "Max results per commune",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Cap the number of transactions returned per commune.",
                        "default": 500
                    },
                    "includeSummary": {
                        "title": "Include commune summary",
                        "type": "boolean",
                        "description": "Attach median price and median price per m² for the whole commune to each item.",
                        "default": true
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
