# DPE par commune : classes énergie et passoires thermiques

**Use case:** 

Les derniers diagnostics de performance énergétique (DPE, données ouvertes de l'ADEME) enregistrés à Lyon : classe énergie et classe climat, surface, consommation en kWh par m², estimation de la facture annuelle et date d'interdiction de location pour les logements classés F et G. Un résumé gratuit donne la répartition par classe. Pour toute commune ou tout code postal.

## Input

```json
{
  "locations": [
    "Lyon"
  ],
  "ratings": [
    "F",
    "G"
  ],
  "propertyType": "all",
  "maxRatingsPerLocation": 100,
  "includeSummary": true,
  "maxNotifications": 30
}
```

## Output

```json
{
  "location": {
    "label": "Location",
    "format": "string"
  },
  "energyRating": {
    "label": "Energy rating",
    "format": "string"
  },
  "address": {
    "label": "Address",
    "format": "string"
  },
  "propertyType": {
    "label": "Property type",
    "format": "string"
  },
  "surfaceM2": {
    "label": "Surface m2",
    "format": "number"
  },
  "primaryEnergyKwhM2Year": {
    "label": "Primary energy kwh m2year",
    "format": "number"
  },
  "estimatedAnnualEnergyCostEur": {
    "label": "Estimated annual energy cost eur",
    "format": "number"
  },
  "issuedAt": {
    "label": "Issued at",
    "format": "string"
  },
  "rentalBanFrom": {
    "label": "Rental ban from",
    "format": "number"
  }
}
```

## About this Actor

This example demonstrates how to use [France Energy Ratings (DPE): Homes, Energy Certificates, Sieves](https://apify.com/euroscrape/france-energy-ratings.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/euroscrape/france-energy-ratings.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/euroscrape/france-energy-ratings.md

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`).
