# Energy profile of a French housing market

**Use case:** 

Profile a housing market without pulling a single individual record: how many certificates exist, the distribution across the seven classes, the poorly rated share, and average floor area, energy use and emissions. Compare a commune against its department in one run. Typical use: sizing a territory before opening in it.

## Input

```json
{
  "communes": [
    "84007",
    "84141"
  ],
  "departments": [
    "84"
  ],
  "radiusMeters": 1000,
  "energyClasses": [],
  "gasClasses": [],
  "buildingTypes": [],
  "includeStatistics": true,
  "includeRecords": false,
  "maxRecordsPerArea": 100
}
```

## Output

```json
{
  "area": {
    "label": "Area"
  },
  "areaType": {
    "label": "Scope"
  },
  "certificateCount": {
    "label": "Certificates"
  },
  "matchedShareOfLocalStock": {
    "label": "Match % of stock"
  },
  "localStockPoorlyRatedShare": {
    "label": "Stock F+G %"
  },
  "localStockCount": {
    "label": "Local stock"
  },
  "poorlyRatedCount": {
    "label": "F+G"
  },
  "poorlyRatedShare": {
    "label": "F+G %"
  },
  "wellRatedShare": {
    "label": "A+B %"
  },
  "averageFloorAreaSqm": {
    "label": "Avg m²"
  },
  "averageEnergyUsePerSqm": {
    "label": "Avg kWh/m²"
  },
  "averageGhgEmissions": {
    "label": "Avg GHG"
  },
  "query": {
    "label": "Query"
  },
  "note": {
    "label": "Note"
  },
  "error": {
    "label": "Error"
  }
}
```

## About this Actor

This example demonstrates how to use [French DPE Energy Rating Search — Find Homes by Class](https://apify.com/dalbian/french-dpe-energy-search.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/dalbian/french-dpe-energy-search.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/dalbian/french-dpe-energy-search.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`).
