# Idealista Scraper - EU Property Listings (`bonpleincapital/idealista-scraper-eu`) Actor

Idealista-style property scraper for Spain, Portugal, Italy. Public search URLs in, price, area, rooms and location out. Tested on pisos.com; Idealista may block bots.

License: personal use only; resale and redistribution prohibited.
Created with the help of artificial intelligence.

- **URL**: https://apify.com/bonpleincapital/idealista-scraper-eu.md
- **Developed by:** [Bon Plein Capital](https://apify.com/bonpleincapital) (community)
- **Categories:** Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.36 / 1,000 property listings

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

## Idealista Scraper & EU Property Listings (Spain, Portugal, Italy)

**Idealista Scraper & EU Property Listings** is an Idealista scraper for Idealista-style property portals in Spain,
Portugal and Italy. Paste the URL of any public search-results page (for sale or for rent) from portals such as
pisos.com, Idealista, Immobiliare.it or Imovirtual and get one clean record per property: price, area, price per m²,
rooms, bathrooms, location, property type, photo and link. Download the data as JSON, CSV or Excel, or call it from the
Apify API, Make, Zapier or n8n.

### What can this Actor do?

- Turn public search pages of Iberian and Italian property portals into a structured table, one row per listing.
- Recognise the portal (pisos.com, Idealista, Immobiliare.it, Imovirtual, Casa Sapo, Fotocasa and others) and add the
  country and the portal name to every record, so listings from several portals can sit in one dataset.
- Compute the price per square metre, and tell sale from rent and apartment from house, so you can compare markets
  across cities and countries without cleaning the data by hand.
- Follow the "next page" link to collect several pages per search, and remove duplicates between pages and searches.
- Read structured data embedded in the page (schema.org JSON-LD and the page's own JSON) and the visible listing cards,
  then merge them, so a small change in a portal's layout does not break everything.
- Run on the Apify free plan: the prefilled test collects only a handful of listings and finishes in seconds.

It only reads **public** pages. It never logs in, never reads private accounts and never tries to get around a captcha
or a bot-protection wall. If a portal refuses the request, the Actor reports it in the log and moves on to the next URL.

### How to use it

1. Click **Try for free** and open the **Input** tab.
2. In your browser, open the portal, choose the city, the type of property and your filters, then copy the URL of the
   results page into **Search result URLs**. Add as many URLs as you like, from different portals if you want.
3. Set **Maximum number of listings** and **Maximum result pages per URL**, then click **Start**.
4. Download the results from the **Output** tab, or schedule the Actor to track a market every day or week.

Tip: portals with strong anti-bot protection (Idealista is one of them) may answer with an error from data-center
addresses. You can try the **Proxy configuration** option; the Actor will still never try to solve or bypass a captcha.

### Input

```json
{
  "startUrls": [{ "url": "https://www.pisos.com/venta/pisos-madrid/" }],
  "maxItems": 5,
  "maxPagesPerUrl": 1,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

### Output

Each listing is one dataset item. Fields that a portal does not show are left out. Example:

```json
{
  "title": "Piso en calle de la Princesa, 76",
  "url": "https://www.pisos.com/comprar/piso-gaztambide-65098413759_100500",
  "price": 1600000,
  "currency": "EUR",
  "operation": "sale",
  "propertyType": "apartment",
  "areaM2": 155,
  "pricePerM2": 10323,
  "rooms": 3,
  "bedrooms": 3,
  "bathrooms": 3,
  "location": "Gaztambide (Distrito Chamberí. Madrid Capital)",
  "country": "ES",
  "portal": "pisos.com",
  "portalName": "Pisos.com",
  "searchUrl": "https://www.pisos.com/venta/pisos-madrid/",
  "scrapedAt": "2026-10-17T09:00:00+00:00"
}
```

### How much does it cost?

This Actor uses **pay per event** pricing: you pay for each listing returned, and nothing for pages that return no
listing. The exact amount for the `result` event is shown in the **Pricing** tab, plus a few cents of Apify platform
usage. Apify's free plan gives you monthly credits, enough to test the Actor on a few hundred listings before you pay.
For 1,000 listings, multiply the per-result price by 1,000.

### FAQ

#### Which portals does it support?

It is built for Idealista-style portals in Spain, Portugal and Italy. It is tested on pisos.com and designed to work
with any portal whose search page shows listing cards with a price and a link, such as Immobiliare.it or Imovirtual.
Portals that block automated visits (Idealista often does) may return nothing; the Actor does not bypass protections,
so a blocked URL is reported in the log and in the `REPORT` record of the run.

#### Is it legal to use this Actor?

The Actor reads public listing pages only. You are responsible for using the data lawfully: check each portal's terms
of use and database rights. Listings may contain personal data (for example an agent's name); the Actor does not look
for phone numbers or e-mails, but if you store personal data you must comply with the GDPR.

#### Why are some fields missing?

Each portal shows different details on its result cards. Missing fields are simply left out of the item.

#### What if something does not work?

Open an issue in the **Issues** tab with your input and the run link. Portals change their layout often, and reports
help to fix the parser quickly.

#### Can I use it through the API?

Yes. Every run can be started and read through the Apify API and its Python and JavaScript clients.

***

Created with the help of artificial intelligence.

# Changelog

This Actor's version history is a separate document: https://apify.com/bonpleincapital/idealista-scraper-eu/changelog.md

# Actor input Schema

## `startUrls` (type: `array`):

Public search-results pages of a property portal (for sale or for rent) in Spain, Portugal or Italy: a city page on pisos.com, idealista.com, immobiliare.it or imovirtual.com. Apply your filters in the browser, then paste the URL here.

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

Stop after this many listings in total. Keep it low to test the Actor cheaply.

## `maxPagesPerUrl` (type: `integer`):

How many result pages to follow for each start URL (the Actor follows the 'next page' link).

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

Optional Apify Proxy. Some portals refuse requests from data-center addresses; a proxy may help. The Actor never bypasses captchas.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.pisos.com/venta/pisos-madrid/"
    }
  ],
  "maxItems": 5,
  "maxPagesPerUrl": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One dataset item per result, shown in the Overview view.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.pisos.com/venta/pisos-madrid/"
        }
    ],
    "maxItems": 5,
    "maxPagesPerUrl": 1,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bonpleincapital/idealista-scraper-eu").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 = {
    "startUrls": [{ "url": "https://www.pisos.com/venta/pisos-madrid/" }],
    "maxItems": 5,
    "maxPagesPerUrl": 1,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("bonpleincapital/idealista-scraper-eu").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 '{
  "startUrls": [
    {
      "url": "https://www.pisos.com/venta/pisos-madrid/"
    }
  ],
  "maxItems": 5,
  "maxPagesPerUrl": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call bonpleincapital/idealista-scraper-eu --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bonpleincapital/idealista-scraper-eu"
        }
    }
}
```

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/Q3t2paZkeeaS3hfCb/builds/L3ezeGeGMqs99TbZC/openapi.json
