# Energy certificate data for Spanish homes

**Use case:** 

Spain requires an energy performance certificate to advertise a property, and Fotocasa publishes it on the listing page. This example collects the efficiency rating letter and its kWh/m2 value, plus the CO2 emissions rating and value. Rating letters came back on 99.1% of the 220 detail pages measured and the numeric values on 100%. Capped at 50 listings because a detail page costs 65x a listing.

## Input

```json
{
  "location": "724,0,29,0,0,0,0,0,0",
  "transactionType": "sale",
  "propertyType": "home",
  "sortBy": "relevance",
  "sortDescending": true,
  "maxItems": 50,
  "scrapeDetails": true,
  "includeAgencies": false,
  "respectRobotsTxt": false,
  "maxCacheAgeDays": 7,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "id": {
    "label": "Id",
    "format": "integer"
  },
  "surface_m2": {
    "label": "Surface m2",
    "format": "integer"
  },
  "rooms": {
    "label": "Rooms",
    "format": "integer"
  },
  "bathrooms": {
    "label": "Bathrooms",
    "format": "integer"
  },
  "floor": {
    "label": "Floor",
    "format": "integer"
  },
  "conservation_state_id": {
    "label": "Conservation state id",
    "format": "integer"
  },
  "has_elevator": {
    "label": "Has elevator",
    "format": "boolean"
  },
  "has_air_conditioning": {
    "label": "Has air conditioning",
    "format": "boolean"
  },
  "has_heating": {
    "label": "Has heating",
    "format": "boolean"
  },
  "has_terrace": {
    "label": "Has terrace",
    "format": "boolean"
  },
  "has_balcony": {
    "label": "Has balcony",
    "format": "boolean"
  },
  "has_garden": {
    "label": "Has garden",
    "format": "boolean"
  },
  "has_swimming_pool": {
    "label": "Has swimming pool",
    "format": "boolean"
  },
  "has_parking": {
    "label": "Has parking",
    "format": "boolean"
  },
  "is_new_build": {
    "label": "Is new build",
    "format": "boolean"
  },
  "has_subsidies": {
    "label": "Has subsidies",
    "format": "boolean"
  },
  "has_virtual_tour": {
    "label": "Has virtual tour",
    "format": "boolean"
  },
  "has_floor_plan": {
    "label": "Has floor plan",
    "format": "boolean"
  },
  "photo_count": {
    "label": "Photo count",
    "format": "integer"
  },
  "room_types_photographed": {
    "label": "Room types photographed",
    "format": "array"
  }
}
```

## About this Actor

This example demonstrates how to use [Fotocasa Scraper $0.95/1K — Spain Real Estate Data & Agencies](https://apify.com/oswaldocarabano/fotocasa-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/oswaldocarabano/fotocasa-scraper.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/oswaldocarabano/fotocasa-scraper.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`).
