# Fotocasa Scraper — Spain Property for Sale & Rent, No Phones (`highbrow_fame/fotocasa-properties`) Actor

Spanish property listings from fotocasa.es, to buy or rent: price, price drops, m², bedrooms, floor, district, amenities, photos, agency, and optionally the energy certificate. No phones.

- **URL**: https://apify.com/highbrow\_fame/fotocasa-properties.md
- **Developed by:** [yestrue](https://apify.com/highbrow_fame) (community)
- **Categories:** Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.90 / 1,000 property delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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

# README

## Fotocasa Scraper — Spain Property for Sale & Rent, No Phones

Get property listings from fotocasa.es, one of Spain's largest property portals: price and price drops, size, bedrooms, bathrooms, floor, condition, amenities, region, province, city, district, neighbourhood and postcode, seller type and agency, the full description and every photo — and, if you want, the energy certificate, orientation, heating, building age and the agency's reference. To buy and to rent — and room shares, business transfers (traspasos) and rent-to-own — for homes, garages, land, premises, offices, storage rooms and whole buildings. Paste your fotocasa search links — or just type a place.

**Why this one**

- 🔗 **Your search, as you set it up.** Set every filter you like on fotocasa.es and paste the link: price, size, bedrooms, flat or penthouse, terrace, pool, new build, price drops, a district or a metro station. Or type a place here — Valencia, Chamberí, Marbella, "Málaga provincia" — and choose buy or rent, property type, price, area, bedrooms, bathrooms, must-haves and "added within" below.
- ⚡ **Fast.** A live test run read five searches — Madrid flats for sale up to €400,000 with 2+ bedrooms, Barcelona rentals newest first, bank-owned flats in all of Spain, Valencia homes with a terrace up to €300,000 and Madrid's private owners — 6,975 properties in 188 seconds.
- 📋 **The energy certificate when you need it.** Tick **Open every listing for its details** for the energy rating and consumption, emissions, orientation, heating, building age and more. A live run read 300 listings in Chamberí and Marbella with their details in 28 seconds.
- 🔒 **Private owners stay anonymous.** fotocasa's data carries a private owner's name, street and house number: all left out — only the town, district, neighbourhood and postcode stay. Agencies are named by their company. No phone numbers: phone numbers and e-mail addresses written into descriptions are replaced with `[phone removed]` / `[e-mail removed]`.
- 💸 **You pay only for properties delivered.** A link that is not a fotocasa search, or a place fotocasa does not know, comes back as a free record with the reason.

### What you get

For every property:

| Field | What it is |
|---|---|
| `price`, `currency`, `pricePeriod`, `priceDrop` | the asking price (EUR) — for rentals `pricePeriod` is `month` — and how much the price has come down |
| `transaction`, `propertyType`, `propertySubtype` | buy, rent, share, transfer or rent-to-own; home, garage, land, premises, office, box-room or building; flat, apartment, penthouse, duplex, studio, loft, ground-floor, house, semi-detached, rural… |
| `areaSqm`, `rooms`, `bathrooms`, `floor`, `floorLabel`, `condition` | size, bedrooms (habitaciones), bathrooms, floor (0 = ground floor) and condition (new, almost new, very good, good, renovated, to renovate) |
| `amenities` | what fotocasa lists for the search card: `elevator`, `terrace`, `balcony`, `air_conditioner`, `heating`, `parking`, `swimming_pool`, `garden`… |
| `region`, `province`, `city`, `district`, `neighbourhood`, `postcode` | where it is |
| `address`, `latitude`, `longitude`, `exactLocation` | for professionals only; `exactLocation` says whether the map point is the building itself or just the area |
| `sellerType`, `agency` | professional or private, and the agency's name (none for private owners) |
| `development`, `developmentUrl`, `developmentUnits` | for new-build developments |
| `description` | the full ad text |
| `published`, `isNew`, `isHighlighted`, `hasVirtualTour` | when it was published, and fotocasa's flags |
| `image`, `images`, `imageCount`, `url`, `listingId` | the listing and all its photos |
| `input`, `place`, `position`, `scrapedAt`, `status`, `error` | which search it came from, and why a search gave nothing |

With **Open every listing for its details** also: `energyCertificate` (available, in process, exempt), `energyRating`, `energyConsumption` (kWh/m² a year), `emissionsRating`, `emissions` (kg CO₂/m² a year), `orientation`, `heating`, `hotWater`, `buildingAge`, `floorDescription`, `occupancy`, `constructionType`, `plotAreaSqm`, `extras` (fotocasa's own list, in Spanish) and `reference` (the agency's reference code).

#### Example

A real record from a live run with details — Chamberí, Madrid, flats and penthouses for sale with 2+ bedrooms, newest first, 24 September 2026:

```json
{
  "input": "Chamberí",
  "place": "Chamberí, Madrid",
  "listingId": 190642556,
  "url": "https://www.fotocasa.es/es/comprar/vivienda/madrid-capital/aire-acondicionado-calefaccion-terraza-ascensor/190642556/d",
  "transaction": "buy",
  "propertyType": "home",
  "propertySubtype": "flat",
  "price": 865000,
  "currency": "EUR",
  "priceDrop": 10000,
  "areaSqm": 102,
  "rooms": 2,
  "bathrooms": 2,
  "floor": 2,
  "amenities": ["air_conditioner", "heating", "terrace", "elevator"],
  "province": "Madrid",
  "city": "Madrid Capital",
  "district": "Chamberí",
  "neighbourhood": "Ríos Rosas - Nuevos Ministerios",
  "postcode": "28003",
  "address": "C. de Alonso Cano, Ríos Rosas - Nuevos Ministerios",
  "latitude": 40.44358,
  "longitude": -3.6976304,
  "sellerType": "professional",
  "agency": "Aproperties Real Estate Madrid",
  "description": "PiSO CON TERRAZA Y PATIO EN CALLE ALONSO CANO \n\naProperties presenta precioso piso reformado  en calle Alonso Cano. Se trata de una segunda planta muy luminosa con una superficie total de 102 m2 construidos…",
  "published": "2026-09-02T16:25:32.533Z",
  "imageCount": 43,
  "energyCertificate": "available",
  "energyRating": "E",
  "energyConsumption": 138,
  "emissionsRating": "E",
  "emissions": 34,
  "orientation": "south",
  "heating": "gas natural",
  "buildingAge": "between 30 and 50 years",
  "occupancy": "is available",
  "extras": ["Aire acondicionado", "Armarios", "Calefacción", "Terraza", "Ascensor", "Suite - con baño", "Servicio portería"],
  "reference": "VM2609007",
  "status": "OK"
}
```

### How to use it

1. Paste **Search links** from fotocasa.es, one per line — or type **Places** and choose the filters.
2. Set **Max listings per search**. Choose **Offered by** to keep only professionals or only private owners, and tick **Open every listing for its details** if you need the energy certificate.
3. Press **Start**, and download the results from the **Output** tab as JSON, CSV or Excel.

To follow new listings in an area, sort by **Newest first**, set **Added within** to the last 24 hours, save your input as a task and schedule it daily.

You can also call it from the Apify API, from Make, Zapier or n8n, or from an AI agent through the Apify MCP server.

### Pricing

You are charged **per property delivered** — see the price on this page. Opening listings for their details costs nothing extra, only time. Links that are not fotocasa searches and places fotocasa does not know are free.

### FAQ

**How many properties per search?** fotocasa lets one search reach about 10,000 listings (9,930 in a live run of Madrid homes for sale). For more, split the search by district or by price.

**Can I get only private owners?** Yes: set **Offered by** to **Private owners**, or paste a link of fotocasa's own "particulares" page. fotocasa has no such filter of its own, so the run reads the search and keeps the private owners — in a live run, Madrid homes for sale gave 739 private owners among the 9,930 listings read. They come without a name, street or map point.

**Why do so many listings say energy rating G and 999?** In a live run, 208 of 297 listings with a certificate said G and 999 — fotocasa's own listing page shows exactly that. Treat 999 as "not given".

**Why is a search for bank-owned flats slower?** fotocasa reads those links ("banco") only page by page, 30 at a time; a live run took about two minutes for 2,000.

**Why no phone numbers or agent names?** They are personal data. Every listing has its `url`; buyers and tenants contact the advertiser on fotocasa.

**Is this affiliated with fotocasa?** No. This is an independent tool that reads public fotocasa listings.

# Actor input Schema

## `searchUrls` (type: `array`):

Set up a search on fotocasa.es — to buy or to rent, with all the filters you want — and paste the address of the results page. One per line.

## `locations` (type: `array`):

Or search here without a link: cities, towns, districts, neighbourhoods (Valencia, Chamberí, Marbella), or a province ("Málaga provincia"). The filters below apply.

## `transaction` (type: `string`):

For the places above.

## `propertyType` (type: `string`):

For the places above.

## `homeTypes` (type: `array`):

Optional, for homes: any of these.

## `minPrice` (type: `integer`):

Optional. For rent: per month.

## `maxPrice` (type: `integer`):

Optional. For rent: per month.

## `minArea` (type: `integer`):

Optional.

## `maxArea` (type: `integer`):

Optional.

## `minRooms` (type: `integer`):

Optional.

## `minBathrooms` (type: `integer`):

Optional.

## `features` (type: `array`):

Optional: all of these.

## `newBuildOnly` (type: `boolean`):

Optional: only new-build homes (obra nueva).

## `priceDropOnly` (type: `boolean`):

Optional: only listings whose price has come down.

## `addedWithin` (type: `string`):

Optional: only listings published in the last day, week or month.

## `sortBy` (type: `string`):

For the places above.

## `ownerType` (type: `string`):

For links and places. Private owners are never named, and their street and map point are left out.

## `maxListingsPerSearch` (type: `integer`):

Stops each search after this many listings. fotocasa shows up to about 10,000 per search.

## `includeDetails` (type: `boolean`):

Adds the energy certificate (rating and kWh/m²), emissions, orientation, heating, hot water, building age, occupancy, the list of extras and the agency's reference. One more page per listing, so slower.

## `maxConcurrency` (type: `integer`):

How many searches to work on at the same time.

## `proxyConfiguration` (type: `object`):

Used only when fotocasa turns a request down: the first try goes out directly.

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.fotocasa.es/es/alquiler/viviendas/barcelona-capital/todas-las-zonas/l?maxPrice=1500&minRooms=2"
  ],
  "transaction": "buy",
  "propertyType": "home",
  "newBuildOnly": false,
  "priceDropOnly": false,
  "addedWithin": "any",
  "sortBy": "default",
  "ownerType": "all",
  "maxListingsPerSearch": 30,
  "includeDetails": false,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Every result as a JSON record, with a status for each input.

## `resultsCsv` (type: `string`):

The same records as CSV, for a spreadsheet.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchUrls": [
        "https://www.fotocasa.es/es/alquiler/viviendas/barcelona-capital/todas-las-zonas/l?maxPrice=1500&minRooms=2"
    ],
    "maxListingsPerSearch": 30,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("highbrow_fame/fotocasa-properties").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchUrls": ["https://www.fotocasa.es/es/alquiler/viviendas/barcelona-capital/todas-las-zonas/l?maxPrice=1500&minRooms=2"],
    "maxListingsPerSearch": 30,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("highbrow_fame/fotocasa-properties").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchUrls": [
    "https://www.fotocasa.es/es/alquiler/viviendas/barcelona-capital/todas-las-zonas/l?maxPrice=1500&minRooms=2"
  ],
  "maxListingsPerSearch": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call highbrow_fame/fotocasa-properties --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,highbrow_fame/fotocasa-properties"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/tdguBS4apNRJzdPQp/builds/vnD8bhTTfpSELDGv6/openapi.json
