# $0.7/1K 💙 Fotocasa.es | Spain Real Estate Scraper (`azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr`) Actor

Fast - From $0.7/1K 💰Fotocasa Scraper: Extract comprehensive property listings from Fotocasa.es search pages effortlessly. Get full details including pricing, square meters, features, and contact info via API/JSON/CSV/Excel. Bring your search URL and you're good to go. AI agents ready, start now 🚀

- **URL**: https://apify.com/azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr.md
- **Developed by:** [Azzouzana](https://apify.com/azzouzana) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 221 total users, 14 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: 1.97 out of 5 stars

## Pricing

from $0.70 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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.es Scraper — Spain Real Estate Search Results (By Search URL)

Paste a **search results URL** from [fotocasa.es](https://www.fotocasa.es) and export structured property listings —
price, m², rooms, address, GPS coordinates, photos, agency contact, and features. Filters you set on the site (city,
district, buy vs rent, price, rooms) are preserved. The actor **auto-paginates** until your **Max items** limit is
reached.

**Transparent & affordable pricing** · JSON, CSV, Excel, or API · one dataset row per property

***

### What it does

<ul>
  <li><strong>Search URL in, listings out</strong> — copy any Fotocasa <em>search results</em> URL from your browser after applying filters.</li>
  <li><strong>Buy &amp; rent</strong> — works on <code>comprar</code> (sale) and <code>alquiler</code> (rent) search pages.</li>
  <li><strong>Auto-pagination</strong> — walks result pages until <code>maxItems</code> or Fotocasa’s page cap.</li>
  <li><strong>Rich search-card data</strong> — price, rooms, bathrooms, surface, address, coordinates, photos, agency name, phone, and description.</li>
  <li><strong>Pay per result</strong> — billed only for listings pushed to your dataset (Pay Per Event).</li>
</ul>

***

### Use cases

| Audience | What you get |
|----------|----------------|
| **Investors & analysts** | Price, m², rooms, and stock by city or district |
| **Renters & buyers** | Compare live inventory before scheduling viewings |
| **Lead generation** | Agency names, phones, and logos from search cards |
| **Data teams** | Pipe listings into warehouses, BI tools, CRMs, or Google Sheets |

***

### Quick start

<ol>
  <li><a href="https://apify.com/sign-up?fpr=cbgdsf">Create a free Apify account</a> (no credit card required).</li>
  <li>Open this Actor in Apify Console.</li>
  <li>On <strong>fotocasa.es</strong>, run your search and apply filters (city, price, rooms, property type).</li>
  <li>Copy the URL from the address bar → paste into <strong>Start URL</strong>.</li>
  <li>Set <strong>Max items</strong> → click <strong>Start</strong> → download from the <strong>Dataset</strong> tab.</li>
</ol>

#### Example input (JSON)

```json
{
    "startUrl": "https://www.fotocasa.es/es/comprar/viviendas/madrid-capital/todas-las-zonas/l?maxPrice=300000",
    "maxItems": 200,
    "fetchFullDetails": false
}
```

***

### Configuration

#### Input fields

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| **Start URL** | `string` | Yes | — | Fotocasa **search results** URL. Must start with `https://www.fotocasa.es`. Copy from your browser after applying filters. |
| **Max items** | `integer` | No | `2000` | Maximum listings to collect. Actor auto-paginates until this cap. Minimum \*\*
10\*\*. |
| **Fetch full listing details** | `boolean` | No | `false` | Open each result and save that listing's own detail: full description, energy certificate, every photo, and the agency reference. Slower. |

#### Start URL rules

<ul>
  <li><strong>Must be a search page</strong> — the same URL you see after clicking search, with filters in the path or query string.</li>
  <li><strong>Keep your filters in the URL</strong> — price range (<code>minPrice</code>, <code>maxPrice</code>), rooms (<code>minRooms</code>), city, district, and sort order are read from the link you paste.</li>
  <li><strong>Spanish or English URLs</strong> — both <code>/es/comprar/...</code> and <code>/en/buy/...</code> patterns are supported.</li>
  <li><strong>Do not use single-property detail URLs</strong> — use search/list URLs that return multiple results.</li>
</ul>

#### Custom search URL examples

| Intent | Example URL |
|--------|-------------|
| Buy — Madrid, max price | `https://www.fotocasa.es/en/buy/homes/madrid-capital/all-zones/l?maxPrice=300000` |
| Buy — Barcelona | `https://www.fotocasa.es/es/comprar/viviendas/barcelona-capital/todas-las-zonas/l` |
| Rent — Madrid | `https://www.fotocasa.es/es/alquiler/viviendas/madrid-capital/todas-las-zonas/l` |
| Rent — price filter | `https://www.fotocasa.es/es/alquiler/viviendas/barcelona-capital/todas-las-zonas/l?minPrice=800&maxPrice=2000` |
| Buy — min rooms | `https://www.fotocasa.es/es/comprar/viviendas/sevilla-capital/todas-las-zonas/l?minRooms=3` |

***

### Ready-made examples

Pick a **pre-built task** — Start URL and filters are already set. One click to run; export JSON or CSV for CRM or
Sheets.

| Intent | Example task | Filters |
|--------|----------------|---------|
| Rent / live | [2-bed flats to rent in Madrid Centro under €1,200](https://apify.com/azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr/examples/2-bed-flats-to-rent-madrid-centro-under-1200-euros?fpr=cbgdsf) | Madrid Centro · 2-bed · max €1,200/mo |
| Buy / invest | [3-bed houses for sale in Valencia under €250,000](https://apify.com/azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr/examples/3-bed-houses-for-sale-valencia-under-250000-euros?fpr=cbgdsf) | Valencia · 3+ rooms · max €250K |
| Buy / budget | [Cheap apartments for sale in Barcelona under €150,000](https://apify.com/azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr/examples/cheap-apartments-for-sale-barcelona-under-150000-euros?fpr=cbgdsf) | Barcelona · max €150K |
| Rent / family | [Long-term 3-bed flats to rent in Seville under €1,100](https://apify.com/azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr/examples/long-term-rental-flats-seville-3-bedrooms-under-1100-euros?fpr=cbgdsf) | Sevilla · 3-bed · max €1,100/mo |
| Buy / coastal | [Apartments for sale in Málaga under €400,000](https://apify.com/azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr/examples/apartments-for-sale-malaga-under-400000-euros?fpr=cbgdsf) | Málaga · max €400K |
| Rent / students | [Studio flats to rent in Bilbao for students under €700](https://apify.com/azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr/examples/studio-flats-to-rent-bilbao-students-under-700-euros?fpr=cbgdsf) | Bilbao · studio · max €700/mo |

***

### Output & dataset structure

<ul>
  <li><strong>Storage</strong> — default Apify <strong>Dataset</strong> (one object per listing).</li>
  <li><strong>Shape</strong> — one row = one Fotocasa search-result listing. With <strong>Fetch full listing details</strong> on, that same card also includes <code>listingDetail</code>.</li>
  <li><strong>Export</strong> — JSON, CSV, Excel from Console, or fetch via Apify API / client libraries.</li>
  <li><strong>Overview view</strong> — Console Output tab shows a curated table (<code>id</code>, <code>price</code>, <code>address</code>, <code>clientAlias</code>, etc.).</li>
</ul>

#### Sample row

```json
{
    "accuracy": false,
    "address": {
        "country": "España",
        "district": "Sant Martí",
        "neighborhood": "El Poblenou",
        "zipCode": "08005",
        "municipality": " Barcelona Capital",
        "province": "Barcelona",
        "city": " Barcelona Capital",
        "cityZone": null,
        "county": "Barcelonès",
        "regionLevel1": "Cataluña",
        "regionLevel2": "Barcelona",
        "upperLevel": "El Poblenou"
    },
    "brandInfo": {
        "barColor": "#F03A4E",
        "logo": null,
        "textColor": "#FFFFFF"
    },
    "buildingSubtype": "Apartment",
    "buildingType": "Flat",
    "clientAlias": "ENGEL & VOELKERS",
    "clientId": 9202758116439,
    "clientType": "professional",
    "clientTypeId": 3,
    "clientUrl": "/es/inmobiliaria-engel-voelkers/comprar/inmuebles/espana/todas-las-zonas/l?clientId=9202758116439",
    "coordinates": {
        "latitude": 41.404611047192674,
        "longitude": 2.2062628054871825,
        "accuracy": 0
    },
    "date": {
        "diff": 0,
        "unit": "NOW"
    },
    "dateOriginal": {
        "diff": 114,
        "unit": "DAYS",
        "timestamp": 1744299137323
    },
    "description": "Encantador piso, con acabados de alta gama, que combina encanto clásico y modernidad. Ubicado en una finca con ascensor del 1930 en la calle Espronceda, esta propiedad ha sido cuidadosamente restaurada realzando sus elementos originales, como la bóveda catalana y los suelos de mosaico hidráulico, creando un ambiente único y con carácter. El piso se compone de un espacio abierto que integra sala de estar, comedor y una moderna cocina; de una amplia galería, ideal como estudio; de una habitación matrimonial y un elegante baño. Recibe sol de mañana.\nExclusiva cocina de diseño danés, equipada con electrodomésticos Bosch (nevera, lavavajillas, horno, microondas e inducción); grifería Maier; las ventanas son de doble acristalamiento 6/12/4 y con rotura de puente térmico; el sistema de aire acondicionado y calefacción es por Split. \n\nPerfecto para una pareja o para quien quiera tener un pied á terre en Barcelona, muy buena opción también para quien busca un piso para poner en alquiler.\nLa propiedad dispone de una excelente ubicación al encontrarse a 7 minutos caminando de la playa y cerca de la Rambla de Poblenou donde se puede encontrar todo tipo de oferta gastronómica y comercial. Muy bien comunicada (buses y metro a 2 cuadras) y cerca de varios parques.",
    "detail": {
        "es-ES": "/es/comprar/vivienda/barcelona-capital/aire-acondicionado-calefaccion-ascensor-no-amueblado/186181599/d"
    },
    "externalContactUrl": null,
    "features": {
        "antiquity": 9,
        "bathrooms": 1,
        "conservationStatus": 2,
        "floor": 0,
        "heating": 0,
        "hotWater": 0,
        "orientation": 0,
        "rooms": 2,
        "surface": 45
    },
    "hasListLogo": true,
    "hasSubsidies": false,
    "hasVideo": 0,
    "hasStamp": true,
    "hasVgo": false,
    "hasFloorPlans": false,
    "id": "1_186181599",
    "isDiscarded": false,
    "isExternalContact": false,
    "isCompleted": null,
    "isFaved": false,
    "isHighlighted": false,
    "isPackAdvancePriority": false,
    "isPackBasicPriority": false,
    "isPackMinimalPriority": false,
    "isPackPremiumPriority": true,
    "isMainTypology": false,
    "isNew": false,
    "isNewConstruction": false,
    "hasOpenHouse": false,
    "isOpportunity": false,
    "isPremium": false,
    "isPromotion": false,
    "isTrackedPhone": true,
    "isTop": true,
    "isTopPlus": true,
    "isVisited": false,
    "isVirtualTour": false,
    "location": {
        "address": "Sant Martí",
        "zone": " Barcelona Capital, Barcelona",
        "municipality": "Sant Martí",
        "locality": " Barcelona Capital"
    },
    "minPrice": 0,
    "multimedia": [
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/e6012ad1-dc96-486f-935e-f58a4eb37af3?rule=original",
            "roomType": "exterior"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/e9b750e7-f6d1-4231-857d-b686d713180d?rule=original",
            "roomType": "kitchen"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/5bd667a7-1d06-4a5c-b67e-0e353e52d546?rule=original",
            "roomType": "living room"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/33ae5899-076b-457b-81cc-32a12a8f51f9?rule=original",
            "roomType": "other"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/7d860425-63bd-402a-b1e0-f163b92915d0?rule=original",
            "roomType": "kitchen"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/c77a7054-9932-4645-96fe-87ba6ec41d0a?rule=original",
            "roomType": "dining room"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/9ef679e8-5fdd-462f-b51f-daf6f8cb1a67?rule=original",
            "roomType": "dining room"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/6d781051-f94f-48fc-9b43-54c1fb0366b3?rule=original",
            "roomType": "living room"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/4eb73365-0dee-41ac-8dbc-206a64a3f749?rule=original",
            "roomType": "other"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/1b12c870-f1e3-4829-8583-6dacc2015810?rule=original",
            "roomType": "bathroom"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/1da2bb77-597b-42cd-bb9d-deb0137ab231?rule=original",
            "roomType": "bathroom"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/4e888966-abf9-4737-bfbc-158c17aeda64?rule=original",
            "roomType": "kitchen"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/da25a4ea-e337-467a-b550-3ecb6b615b2b?rule=original",
            "roomType": "other"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/8d1c60d5-94e9-49b6-830d-60a21730b5e0?rule=original",
            "roomType": "other"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/2464b2bc-ccba-4d9b-ae22-cbe8d3356223?rule=original",
            "roomType": "other"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/7772f7f1-9518-4ab9-b4ef-5d97541bfd89?rule=original",
            "roomType": "living room"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/03ccdd51-d4c4-4495-80bb-78b387cd738f?rule=original",
            "roomType": "other"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/0835ab61-1ab2-43e4-b884-446c58c8de31?rule=original",
            "roomType": "other"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/e3197428-089a-48e9-a79f-4867a9f99333?rule=original",
            "roomType": "balcony"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/0ef35479-3556-4d2a-8700-901c8b586b1f?rule=original",
            "roomType": "balcony"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/ac50b770-d4e2-439b-8375-b8a3a6b20089?rule=original",
            "roomType": "bedroom"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/00fff67b-16e2-420d-a34c-8fe28a4accdd?rule=original",
            "roomType": "bedroom"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/64f4d5b3-1c24-4f33-ad17-5ddb9f19cf29?rule=original",
            "roomType": "other"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/377cc4b9-f706-4c16-8f99-360650212f9b?rule=original",
            "roomType": "garden"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/f7c58c42-641f-414c-b56c-fdde9e1c9759?rule=original",
            "roomType": "terrace"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/8c87429b-371c-48b4-be9e-b1109c6be99d?rule=original",
            "roomType": "exterior"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/e5dc334f-f0ce-42e4-b874-872f1c83e13f?rule=original",
            "roomType": "terrace"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/face456d-bc55-44d2-ab87-af66de638b8c?rule=original",
            "roomType": "terrace"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/245aea58-7052-4012-a9ca-3892a2d5e31a?rule=original",
            "roomType": "other"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/847cfda8-f265-42ab-8b3e-f98ce9300019?rule=original",
            "roomType": "other"
        },
        {
            "type": "image",
            "src": "https://static.fotocasa.es/images/ads/1f3675b0-ee8c-405b-8b28-734708374a06?rule=original",
            "roomType": "exterior"
        }
    ],
    "otherFeaturesCount": 0,
    "periodicityId": 0,
    "phone": "935433386",
    "price": {
        "amount": 338000,
        "amountDrop": 17000
    },
    "promotionId": 0,
    "promotionLogo": "https://static.fotocasa.es/images/client/fbf9f07f-f160-44e0-adbc-0ba48ef41f10/20250519081942?rule=original",
    "promotionUrl": null,
    "promotionTitle": null,
    "promotionTypologiesCounter": null,
    "promotionTypologies": [],
    "publisherId": "fbf9f07f-f160-44e0-adbc-0ba48ef41f10",
    "rawPrice": 338000,
    "realEstateAdId": "41dd455f-8317-4bca-a622-846a1865b6fa",
    "reducedPrice": "17.000 €",
    "subtypeId": 2,
    "transactionTypeId": 1,
    "typeId": 2,
    "userId": null,
    "detailUrl": "/es/comprar/vivienda/barcelona-capital/aire-acondicionado-calefaccion-ascensor-no-amueblado/186181599/d",
    "multimedias": [
        {
            "classification": "exterior",
            "position": 1,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/e6012ad1-dc96-486f-935e-f58a4eb37af3?rule=original"
        },
        {
            "classification": "kitchen",
            "position": 2,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/e9b750e7-f6d1-4231-857d-b686d713180d?rule=original"
        },
        {
            "classification": "living room",
            "position": 3,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/5bd667a7-1d06-4a5c-b67e-0e353e52d546?rule=original"
        },
        {
            "classification": "other",
            "position": 4,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/33ae5899-076b-457b-81cc-32a12a8f51f9?rule=original"
        },
        {
            "classification": "kitchen",
            "position": 5,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/7d860425-63bd-402a-b1e0-f163b92915d0?rule=original"
        },
        {
            "classification": "dining room",
            "position": 6,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/c77a7054-9932-4645-96fe-87ba6ec41d0a?rule=original"
        },
        {
            "classification": "dining room",
            "position": 7,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/9ef679e8-5fdd-462f-b51f-daf6f8cb1a67?rule=original"
        },
        {
            "classification": "living room",
            "position": 8,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/6d781051-f94f-48fc-9b43-54c1fb0366b3?rule=original"
        },
        {
            "classification": "other",
            "position": 9,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/4eb73365-0dee-41ac-8dbc-206a64a3f749?rule=original"
        },
        {
            "classification": "bathroom",
            "position": 10,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/1b12c870-f1e3-4829-8583-6dacc2015810?rule=original"
        },
        {
            "classification": "bathroom",
            "position": 11,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/1da2bb77-597b-42cd-bb9d-deb0137ab231?rule=original"
        },
        {
            "classification": "kitchen",
            "position": 12,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/4e888966-abf9-4737-bfbc-158c17aeda64?rule=original"
        },
        {
            "classification": "other",
            "position": 13,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/da25a4ea-e337-467a-b550-3ecb6b615b2b?rule=original"
        },
        {
            "classification": "other",
            "position": 14,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/8d1c60d5-94e9-49b6-830d-60a21730b5e0?rule=original"
        },
        {
            "classification": "other",
            "position": 15,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/2464b2bc-ccba-4d9b-ae22-cbe8d3356223?rule=original"
        },
        {
            "classification": "living room",
            "position": 16,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/7772f7f1-9518-4ab9-b4ef-5d97541bfd89?rule=original"
        },
        {
            "classification": "other",
            "position": 17,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/03ccdd51-d4c4-4495-80bb-78b387cd738f?rule=original"
        },
        {
            "classification": "other",
            "position": 18,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/0835ab61-1ab2-43e4-b884-446c58c8de31?rule=original"
        },
        {
            "classification": "balcony",
            "position": 19,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/e3197428-089a-48e9-a79f-4867a9f99333?rule=original"
        },
        {
            "classification": "balcony",
            "position": 20,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/0ef35479-3556-4d2a-8700-901c8b586b1f?rule=original"
        },
        {
            "classification": "bedroom",
            "position": 21,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/ac50b770-d4e2-439b-8375-b8a3a6b20089?rule=original"
        },
        {
            "classification": "bedroom",
            "position": 22,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/00fff67b-16e2-420d-a34c-8fe28a4accdd?rule=original"
        },
        {
            "classification": "other",
            "position": 23,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/64f4d5b3-1c24-4f33-ad17-5ddb9f19cf29?rule=original"
        },
        {
            "classification": "garden",
            "position": 24,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/377cc4b9-f706-4c16-8f99-360650212f9b?rule=original"
        },
        {
            "classification": "terrace",
            "position": 25,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/f7c58c42-641f-414c-b56c-fdde9e1c9759?rule=original"
        },
        {
            "classification": "exterior",
            "position": 26,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/8c87429b-371c-48b4-be9e-b1109c6be99d?rule=original"
        },
        {
            "classification": "terrace",
            "position": 27,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/e5dc334f-f0ce-42e4-b874-872f1c83e13f?rule=original"
        },
        {
            "classification": "terrace",
            "position": 28,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/face456d-bc55-44d2-ab87-af66de638b8c?rule=original"
        },
        {
            "classification": "other",
            "position": 29,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/245aea58-7052-4012-a9ca-3892a2d5e31a?rule=original"
        },
        {
            "classification": "other",
            "position": 30,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/847cfda8-f265-42ab-8b3e-f98ce9300019?rule=original"
        },
        {
            "classification": "exterior",
            "position": 31,
            "type": "IMAGE",
            "url": "https://static.fotocasa.es/images/ads/1f3675b0-ee8c-405b-8b28-734708374a06?rule=original"
        }
    ],
    "publisher": {
        "alias": "ENGEL & VOELKERS",
        "id": "9202758116439",
        "isBank": false,
        "logo": "https://static.fotocasa.es/images/client/fbf9f07f-f160-44e0-adbc-0ba48ef41f10/20250519081942?rule=original",
        "name": "EV MMC SPAIN ,S.L.U",
        "publisherId": "fbf9f07f-f160-44e0-adbc-0ba48ef41f10",
        "reference": "I-02ZJLM-W-02ZJLM",
        "type": "professional",
        "urls": [
            {
                "language": "es_ES",
                "value": "/inmobiliarias/engel-voelkers-9202758116439"
            },
            {
                "language": "ca_ES",
                "value": "/ca/immobiliaries/engel-voelkers-9202758116439"
            },
            {
                "language": "de_DE",
                "value": "/de/immobilienagentur/engel-voelkers-9202758116439"
            },
            {
                "language": "en_US",
                "value": "/en/real-estate-agencies/engel-voelkers-9202758116439"
            }
        ]
    },
    "propertyId": 186181599,
    "propertySubtype": "APARTMENT",
    "propertyType": "HOMES",
    "transactionType": "SALE"
}
```

*(Representative structure — live runs return current Fotocasa fields.)*

#### Output field reference

| Area | Typical fields |
|------|----------------|
| **Identity** | `id`, `propertyId`, `detailUrl`, `transactionType` |
| **Pricing** | `price`, `price.amount`, `price.amountDrop`, `rawPrice`, `reducedPrice` |
| **Specs** | `features.rooms`, `features.bathrooms`, `features.surface`, `buildingType`, `buildingSubtype` |
| **Location** | `address`, `coordinates`, `location` |
| **Media** | `multimedia`, `multimedias`, `hasVideo`, `hasFloorPlans` |
| **Publisher** | `clientAlias`, `clientType`, `phone`, `publisher`, `clientUrl` |
| **Meta** | `description`, `date`, `isNew`, `isOpportunity`, `isPremium` |
---------------------------------------------------------------------------

### Free tier

Try before you scale:

<ul>
  <li><strong>5 listings</strong> per run — enough to validate fields and quality</li>
  <li><strong>5 runs</strong> per calendar day (UTC)</li>
  <li><strong>1 minute</strong> minimum gap between runs</li>
</ul>

<a href="https://apify.com/pricing?fpr=cbgdsf">Upgrade for full volume</a> on any paid Apify plan.

***

### FAQ

<details>
<summary><strong>Why only 5 results on the free plan?</strong></summary>
<p>Free tier caps each run at <strong>5 items</strong> so you can inspect quality first. Upgrade to a paid Apify plan to use your full <strong>Max items</strong> setting.</p>
</details>

<details>
<summary><strong>Search URL vs property detail URL?</strong></summary>
<p><strong>Search URL</strong> = results list (this Actor). Paste the URL from Fotocasa after running a search with your filters. <strong>Detail URL</strong> = a single property page — not the intended input for bulk search scraping.</p>
</details>

<details>
<summary><strong>Do filters in the URL carry over?</strong></summary>
<p>Yes. Price, rooms, city, district, and sort order set on fotocasa.es are preserved in the URL you paste. The actor paginates through that filtered result set.</p>
</details>

<details>
<summary><strong>Is scraping Fotocasa legal?</strong></summary>
<p>Public listing data is commonly used for research, but <strong>you</strong> must comply with Spanish law and Fotocasa’s Terms of Use. This tool is <strong>not</strong> affiliated with Fotocasa / Adevinta.</p>
</details>

***

### Troubleshooting

| Symptom | Likely cause | What to do |
|---------|--------------|------------|
| Run stops at **5 items** | Free-tier per-run cap | Upgrade to a paid Apify plan |
| **Rate limit** message | Free tier: 5 runs/day or 1 min gap | Wait or upgrade |
| Empty dataset | Search has no results or invalid URL | Broaden filters on Fotocasa and copy a new search URL |
| Fewer rows than **Max items** | No more pages for that search | Normal — pagination cap or exhausted inventory |
| Invalid startUrl error | URL is not a fotocasa.es search link | Paste a full search URL from the address bar |

***

### SEO keywords

fotocasa scraper, fotocasa.es scraper, scrape fotocasa listings, Spain real estate scraper, Spanish property listings
API, comprar viviendas scraper, alquiler viviendas scraper, Madrid property scraper, Barcelona apartments scraper,
Valencia homes for sale, Apify fotocasa actor, inmobiliaria España datos, property lead generation Spain

***

### Related Actors

<ul>
  <li><a href="https://apify.com/azzouzana/idealista-scraper?fpr=cbgdsf">Idealista Scraper</a> — Spain, Italy &amp; Portugal (Idealista.com / .it / .pt)</li>
  <li><a href="https://apify.com/azzouzana/immobiliare-it-listing-page-scraper-by-search-url?fpr=cbgdsf">Immobiliare.it Scraper</a> — Italy’s leading property portal</li>
  <li><a href="https://apify.com/store?fpr=cbgdsf">Browse thousands of scrapers on Apify Store</a></li>
</ul>

***

### Contact

<ul>
  <li><strong>Discord:</strong> <code>@azzouzana</code></li>
  <li><strong>Email:</strong> <a href="mailto:labs@azzouzana.com">labs@azzouzana.com</a></li>
</ul>

Custom volume, monitoring, or extra fields — reach out.

***

### Disclaimer

<p>This Actor is an <strong>independent tool</strong> and is not affiliated with, endorsed by, or sponsored by Fotocasa, Adevinta, or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.</p>

<p>The scraper collects <strong>publicly visible search-result data</strong> only. Listings may contain personal data (agent names, phones, addresses, photos). Once exported to <strong>your</strong> Apify dataset, <strong>you</strong> are responsible for lawful use under GDPR and Spain’s LOPDGDD: minimize retention, secure your data, and follow Fotocasa’s terms — do not republish ads as a competing portal.</p>

# Actor input Schema

## `startUrl` (type: `string`):

The search page URL to scrape from fotocasa.es.

## `maxItems` (type: `integer`):

Maximum number of listings to scrape.

## `fetchFullDetails` (type: `boolean`):

Open each result and save the listing's own detail: full description, energy certificate, every photo, & much more.

## Actor input object example

```json
{
  "startUrl": "https://www.fotocasa.es/es/comprar/viviendas/barcelona-capital/todas-las-zonas/l?maxPrice=50000",
  "maxItems": 2000,
  "fetchFullDetails": false
}
```

# Actor output Schema

## `listings` (type: `string`):

All scraped Fotocasa listings with price, location, features, publisher info, and photos where available.

# 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 = {
    "startUrl": "https://www.fotocasa.es/es/comprar/viviendas/barcelona-capital/todas-las-zonas/l?maxPrice=50000",
    "maxItems": 2000,
    "fetchFullDetails": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr").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 = {
    "startUrl": "https://www.fotocasa.es/es/comprar/viviendas/barcelona-capital/todas-las-zonas/l?maxPrice=50000",
    "maxItems": 2000,
    "fetchFullDetails": False,
}

# Run the Actor and wait for it to finish
run = client.actor("azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr").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 '{
  "startUrl": "https://www.fotocasa.es/es/comprar/viviendas/barcelona-capital/todas-las-zonas/l?maxPrice=50000",
  "maxItems": 2000,
  "fetchFullDetails": false
}' |
apify call azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,azzouzana/fotocasa-es-search-results-scraper-by-search-url-ppr"
        }
    }
}
```

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/hbiz53IVPhXhjc2lL/builds/dcdLklQNFS3fchJh7/openapi.json
