Analyze DPE Distribution
analyze_dpe_distributionGet the DPE (energy performance) class distribution for a location.
Returns the count and share of A–G energy ratings across all diagnosed properties.
REQUIRED: at least one location — code_postal, commune, or code_departement OPTIONAL: type_batiment (maison|appartement|immeuble), date_debut
Example: code_postal: "75011" → { count: 42300, distribution: { A: 812, B: 3100, ... }, pct: { A: 1.9, B: 7.3, ... } }
Cost: 10 credits
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commune | No | Commune name (e.g., 'PARIS 11', 'BORDEAUX') | |
| date_debut | No | Only count DPEs issued from this date (YYYY-MM-DD) | |
| code_postal | No | Postal code (e.g., '75011') | |
| type_batiment | No | Building type: maison, appartement, immeuble | |
| code_departement | No | Department code (e.g., '75', '33') |