Analyze Market Statistics
analyze_market_statisticsGet market statistics: avg/median prices, price per m², surface areas.
REQUIRED: You MUST provide at least one location filter:
code_postal (e.g., "75011")
commune (e.g., "PARIS 11" - uppercase; Paris uses "PARIS 01"–"PARIS 20")
code_departement (e.g., "75")
latitude + longitude for radius search
Examples:
Paris 11e market: {commune: "PARIS 11", type_local: "Appartement"}
500m radius: {latitude: 48.8566, longitude: 2.3522, radius_m: 500}
Department stats: {code_departement: "69", type_local: "Maison"}
Returns: count, price (min/max/avg/median), surface stats, price_per_m2
Note: radius_m > 1000m is automatically restricted to the last 12 months of data.
Cost: 5 credits per call
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commune | No | City/commune name (e.g., 'Paris', 'Lyon') | |
| date_fin | No | End date (YYYY-MM-DD) | |
| latitude | No | Latitude for radius search (requires longitude) | |
| radius_m | No | Radius in meters for location search (default: 500) | |
| longitude | No | Longitude for radius search (requires latitude) | |
| date_debut | No | Start date (YYYY-MM-DD) | |
| type_local | No | Property type | |
| code_postal | No | Postal code (e.g., '75001') | |
| exclude_vefa | No | Exclude VEFA (new-build, vente en l'état futur d'achèvement) sales (default: true — keeps 'ancien' results from double-counting new-build activity) | |
| include_terrain | No | Include terrain-only transactions in search results (default: false) | |
| code_departement | No | Department code (e.g., '73' for Savoie, '83' for Var) | |
| use_original_type | No | Use original type_local instead of smart computed_type_local (default: false) | |
| exclude_bulk_sales | No | Exclude bulk sales and aggregated transactions (default: true for clean market data) | |
| include_pouvoir_achat | No | Add a price-to-income ratio field (INSEE Filosofi × DVF). Ignored on radius searches. |