# Idealista Scraper: Spain Listings & Details (`kaleidoscopelabs/idealista-scraper`) Actor

Idealista scraper for Spanish real estate: flats and houses for sale and rent with price, price drops, size, rooms, floor and advertiser. Paste a search's address, choose how many listings to store, and add each listing's details: description, features, energy certificate, map position and pictures.

- **URL**: https://apify.com/kaleidoscopelabs/idealista-scraper.md
- **Developed by:** [Kaleidoscope Labs](https://apify.com/kaleidoscopelabs) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 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

### What can Idealista Scraper do?

**Scrape Idealista listings in Spain: price, price drops, size, rooms, floor and advertiser, one record per listing, from any search's address.**

[![Use it from your AI agent: copy the MCP setup prompt](https://assets.kaleidoscopelabs.io/afy/mcp/mcp-setup.5ac6bded.png)](https://mcp.apify.com/?tools=kaleidoscopelabs/idealista-scraper)

![A Madrid rental search as rows: neighbourhood, type, rooms, size, floor, rent, price per m² and price drop, from 8,259 rentals.](https://assets.kaleidoscopelabs.io/afy/idealista/hero.e899f40b.png)

- 🔎 **Any search:** paste the address of a search as your browser shows it, with its filters and sort order; flats, penthouses, studios and houses, for sale or rent.
- 💶 **Prices:** the asking price or monthly rent, the price per m², and a price drop where Idealista shows one.
- 📋 **Details on request:** description, features, bathrooms, year built, energy certificate, address lines, map position and pictures.
- 🏙️ **Whole cities:** a search with more listings than Idealista shows for one search (1,800) is read district by district.
- 🔔 **Monitoring:** run a search on a schedule and get only the new listings, or also the changed ones with their earlier price and the removed ones.
- 📊 **Counts you can check:** for each search, how many listings Idealista says it has and how many the run stored.

Use it for real estate market research and price tracking, to generate leads from the agencies that list on Idealista, or to automate a daily feed of new listings.

Run it from Apify Console, through the API, on a schedule, or from an AI agent.

### What data can you get from Idealista?

One record per listing. The last two columns are how many listings carried the field in two runs with details on 2026-11-16: 300 rentals in Madrid and 300 homes for sale in Zaragoza.

| Data | Field | Rentals | Sales |
|---|---|---|---|
| Number, title, link; the search and the place in it | `id`, `title`, `url`, `searchUrl`, `position` | 100% | 100% |
| The kind of home ("flat", "penthouse", "duplex"…) | `propertyType` | 100% | 100% |
| Price and price per m² | `price`, `pricePerSqm` | 100% | 100% |
| A price drop: the earlier price and the percentage | `priceDrop` | 3% | 19% |
| Size and bedrooms | `size`, `rooms` | 100%, 93% | 100%, 99.7% |
| Floor, exterior or interior, lift | `floor`, `exterior`, `lift` | 96–99% | 79–84% |
| Garage, and its price when it is extra | `parking`, `parkingPrice` | 29%, 10% | 40%, 5% |
| How recently it appeared, Idealista's tags | `listedAgo`, `tags` | 52%, 39% | 0%, 12% |
| Private owner or professional, the agency's page | `advertiser` | 100% | 100% |
| Details: description, features, bathrooms | `description`, `features`, `bathrooms` | 99.3–100% | 99.3–100% |
| Details: condition and seven equipment values (terrace, pool…), each true or false | `condition`, `terrace`, `swimmingPool`… | 100% | 100% |
| Details: neighbourhood, district, town, province | `neighborhood`, `district`, `municipality`, `province` | 100% | 95–100% |
| Details: usable size, year built | `usableSize`, `builtYear` | 45%, 31% | 79%, 78% |
| Details: energy certificate | `energyCertificate` | 90% | 93% |
| Details: address lines, map position, pictures with room tags | `address`, `lat`, `lon`, `pictures` | 99.3–100% | 100% |
| Monitor: why it is in the results, and what it was before | `change`, `previous`, `priceHistory` | | |
| What the record lacks, and why | `missing`, `complete` | 100% | 100% |

The values are Idealista's, as its Spanish site shows them to a signed-out visitor; nothing is estimated. The map position is exact where the advertiser shows the address (132 of the 300 rentals, 98 of the 300 sales) and the area's centre otherwise; `locationPrecision` says which.

### What is Idealista Scraper used for?

- **Market research:** every listing of a city or a district, with prices per m² ([recipe](#every-listing-of-a-city)).
- **Deal alerts and price tracking:** the new listings of a search every hour, price changes with the earlier price, and the listings taken off the market ([recipe](#new-changed-and-removed-listings-of-a-district)).
- **Lead lists:** listings by private owners or by agency, with the advertiser's type and page.

### How to use Idealista Scraper

1. Create a free Apify account and open Idealista Scraper.
2. Run your search on www.idealista.com and copy its address into **Search URLs**.
3. Set **Listings per search**, and turn on **Include details** if you want each listing's own page.
4. Click **Start**. Export the records as JSON, CSV or Excel, or read them from the API.

### How much does it cost to scrape Idealista listings?

| Event | Price | When |
|---|---|---|
| Listing | $0.001 each | each listing stored; in a monitor, each new, changed or removed listing |
| Listing details | $0.001 each | each listing stored with its own page's details, on top of the listing |
| Search check | $0.002 each | each search a monitor's run reads, whether it has new listings or not |
| Actor start | $0.00005 a run | once a run, by the platform |

| Example | Cost |
|---|---|
| The prefilled input: 30 rentals in Madrid | $0.03 |
| 1,000 listings | $1.00 |
| 1,000 listings with details | $2.00 |
| A monitor's run of one search that finds 5 new listings | $0.007 |
| A monitor of one search, run daily for a month, with 100 new listings in all | $0.16 |
| The same monitor run hourly (720 checks $1.44, listings $0.10, starts $0.036) | $1.58 |

Prices shown are for Apify's free plan; on paid plans they are up to 30% lower. The free plan's $5 a month covers about 5,000 listings.

A listing asked for by its address that is no longer published or could not be read, a search that is not found, and a monitor's unchanged listings are not charged; a listing whose own page could not be read is charged as a listing, without details.

### Input recipes

Each is a complete input; paste it into the JSON tab of the input.

#### The newest rentals of a city, with details

```json
{
  "searchUrls": ["https://www.idealista.com/alquiler-viviendas/madrid-madrid/"],
  "listingsPerSearch": 300,
  "includeDetails": true
}
```

#### Every listing of a city

![Every home for sale in Zaragoza, 2,347 listings, more than the 1,800 one search shows, all stored; the 279 with a price drop lit.](https://assets.kaleidoscopelabs.io/afy/idealista/city.f32c15a5.png)

Zaragoza's homes for sale were 2,347 listings on 2026-11-16, more than Idealista shows for one search; the run read them district by district and stored all 2,347 in under two minutes.

```json
{
  "searchUrls": ["https://www.idealista.com/venta-viviendas/zaragoza-zaragoza/"],
  "listingsPerSearch": 0
}
```

#### New, changed and removed listings of a district

```json
{
  "searchUrls": ["https://www.idealista.com/alquiler-viviendas/madrid/usera/"],
  "mode": "changes",
  "listingsPerSearch": 0
}
```

**Listings** takes single listings by address (`https://www.idealista.com/inmueble/<number>/`) or number, each read with details.

### Output example

![One listing record, shortened: the listing, price and size, who offers it and where, and its details.](https://assets.kaleidoscopelabs.io/afy/idealista/record.c8341e79.png)

A record with details, from the first recipe (shortened):

```json
{
  "id": "113079628",
  "url": "https://www.idealista.com/inmueble/113079628/",
  "position": 169,
  "scrapedAt": "2026-11-16T03:04:35Z",
  "operation": "rent",
  "title": "Alquiler de piso en Calle de Tabernillas",
  "propertyType": "flat",
  "price": { "value": 2300, "currency": "EUR", "interval": "month" },
  "pricePerSqm": 25.27,
  "rooms": 3,
  "size": 91,
  "floor": "3ª planta",
  "advertiser": { "type": "professional", "name": "Spanish Home .", "agencyUrl": "https://www.idealista.com/pro/spanish-home/" },
  "neighborhood": "Palacio",
  "district": "Centro",
  "municipality": "Madrid",
  "description": "PISO DE ALQUILER TEMPORAL PARA ESTUDIANTES.\nPeriodos de 6 y 12 meses\nMuy cerca de Plaza Mayor, …",
  "bathrooms": 2,
  "energyCertificate": { "consumptionClass": "e", "emissionsClass": "e" },
  "lat": 40.410219,
  "lon": -3.7120105,
  "locationPrecision": "approximate",
  "condition": "good",
  "airConditioning": true,
  "missing": [],
  "complete": true
}
```

### How to monitor Idealista listings

A monitor remembers each search between runs and stores only what came since: choose **New listings**, or **New, changed and removed listings**, under **What to store**. Save the input as a task, schedule it, and connect the dataset to a sheet or a webhook.

- A changed listing (price, size, bedrooms or title) comes with what it was (`previous`) and the prices seen so far (`priceHistory`).
- A listing is reported removed once two runs in a row no longer find it and its own page is gone; this needs the whole search read (**Listings per search** 0).
- **Start from now** records the current listings on the first run without storing them. **Monitor name** keeps two monitors of one search apart.
- A run that finds nothing new charges only the check of each search it read.

### Integrations and API

- **Make, Zapier, n8n:** send a monitor's new listings on when a run finishes.
- **Google Sheets, webhooks, the Apify API and clients** for JavaScript and Python.
- **AI agents:** an agent can call the Actor as a tool ([below](#for-ai-agents)).

Run a recipe and get its records in one call (with your Apify API key in the APIFY_TOKEN variable):

```bash
curl -X POST "https://api.apify.com/v2/acts/kaleidoscopelabs~idealista-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"searchUrls": ["https://www.idealista.com/alquiler-viviendas/madrid-madrid/"], "listingsPerSearch": 30}'
```

#### Building on this Actor

- **Output stability:** fields are added, never renamed or removed without a new major version, and every change is in the changelog.
- **What a run's end means:** `RUN_SUMMARY` gives, per search, Idealista's count and the stored count, and the pages and listings not read. A run that could not read Idealista at all fails instead of succeeding empty.
- **Errors:** a record's `missing` names each group it lacks with a reason (notRequested, notGiven, notRead, notAnswered, notFound, robotsDisallowed). An input the Actor cannot read ends with nothing read or charged and `inputError` in `RUN_SUMMARY` (noQuery, noReadableLine, invalidSetting).

### For AI agents

AI agents can call it through the Apify MCP server ([setup prompt for your agent](https://mcp.apify.com/?tools=kaleidoscopelabs/idealista-scraper)). Connect an MCP client to `https://mcp.apify.com?tools=kaleidoscopelabs/idealista-scraper` with your Apify API key, then ask, for example: "List the 30 newest flats for rent in Madrid's Usera district with their price per m²."

- **Minimal input:** `{"searchUrls": ["<a search's address from www.idealista.com>"]}` stores up to 100 listings of that search.
- **Fields to read:** `title`, `price.value`, `pricePerSqm`, `size`, `rooms`, `url`; with `"includeDetails": true`, `description`, `address`, `lat`, `lon`.
- **What to know:** the Actor takes search addresses, not a city or price as fields; an empty dataset with `inputError` in `RUN_SUMMARY` is a wrong input, not "no listings".

### Tips

- **Filter on Idealista, not here:** set price, size, rooms and property type in the search itself, then paste its address.
- **One schedule per monitor:** two runs of one monitor at once both deliver what is new.

### FAQ

#### Is there an official Idealista API?

This Actor uses no Idealista API and needs no API key: it reads the public website.

#### Is it legal to scrape Idealista?

This Actor reads Idealista's public pages signed out, as any visitor sees them, and never logs in. Whether your use is allowed depends on what you do with the data and where you are; ask a lawyer when in doubt.

#### Does it collect personal data?

It reads Idealista's public listing pages. Three fields can carry personal data: `advertiser`, whose name may be a private owner's first name or a sole trader's; `address`, when the advertiser shows the street; and `description`, the advertiser's own text. If you store or use such details, data-protection law such as the GDPR may apply to you.

#### Why did a search return fewer listings than Idealista says it has?

Idealista shows the first 1,800 listings of any search. Set **Listings per search** to 0, or above 1,800, and the search is read district by district; `RUN_SUMMARY` gives both numbers for each search.

#### Why is a record missing its details?

Now and then Idealista does not answer for a page. After a few tries the listing keeps what the search showed, with the reason in `missing`.

### Limits and what this Actor does not do

- It reads Idealista Spain (www.idealista.com), in the site's Spanish wording, whichever language the search was copied in. Searches on Idealista Portugal or Italy, and searches drawn on the map, are skipped and not charged.
- Phone numbers are not read: Idealista shows them only after a click.
- It is built for homes. Searches for offices, garages or other premises are read, but carry no `propertyType` and no floor or other card details.
- With details, a run reads about one listing a second, so more than about 3,000 listings with details need a timeout above the default hour.
- A monitor's "new" means "not seen before among the first results"; sort the search by newest first.
- A district with more than 1,800 listings and no smaller areas is reported in the run: narrow it by price.
- Listings move between pages while a large search is read, so a few can be missed.

### Support and feedback

Open an issue on the Issues tab for a bug or a feature you need; we answer within 24 hours. If the Actor saves you time, bookmark it and leave a review in Apify Store.

### Other Actors

| Actor | What it gives |
|---|---|
| [ImmoScout24 Scraper](https://apify.com/kaleidoscopelabs/immobilienscout24-scraper) | The same for Germany: ImmobilienScout24 listings with details, and monitoring of new, changed and removed listings |

*Idealista Scraper is an independent tool, not affiliated with, endorsed by or sponsored by Idealista, S.A.U. Idealista is a trademark of Idealista, S.A.U.*

# Changelog

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

# Actor input Schema

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

Idealista searches as your browser shows them, one address per line: run a search on www.idealista.com, in any of the site's languages, then copy the address bar, for example `https://www.idealista.com/alquiler-viviendas/madrid-madrid/`. The search's filters (price, size, rooms, property type) and its sort order are kept as they are; the records carry the site's Spanish wording. A search drawn on the map is skipped, and the log says why.

## `listingsPerSearch` (type: `integer`):

How many listings to store from each search. Up to 1,800 they are the search's first results, in its order. Above 1,800, or with 0 (every listing), the search is read district by district: the listings then come in no particular order, and a count below the search's total gives the districts read first, not the search's first results.

## `listingUrls` (type: `array`):

Listings to read directly, one per line: a listing's address (`https://www.idealista.com/inmueble/<number>/`) or its number. Each is read from its own page, with details. One no longer published gets a record that says so, not charged.

## `mode` (type: `string`):

All listings stores each search's listings on every run. New listings stores only those this monitor has not seen before; sort your search by newest first. New, changed and removed listings also stores a listing whose price, size, bedrooms or title changed, with what it was before, and removed listings, told only when the run reads the whole search (Listings per search 0). With a monitor, Listings per search is how far it looks into each search, and each run is charged a search check for each search it reads.

## `startFromNow` (type: `boolean`):

On a monitor's first run, record the searches' current listings without storing them, so that later runs deliver only what comes after. Off: the first run stores the current listings.

## `monitorName` (type: `string`):

Keeps this monitor's memory apart from another's on the same search: two schedules on one search with different names (such as weekly-report) each receive every new listing. Leave empty if one monitor watches each search; do not run one monitor twice at the same time.

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

Read each listing's own page too: description, features, bathrooms, energy certificate, address lines, map position, advertiser and pictures. One more page per listing, charged as listing details.

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.idealista.com/alquiler-viviendas/madrid-madrid/"
  ],
  "listingsPerSearch": 30,
  "listingUrls": [
    "https://www.idealista.com/inmueble/900000001/"
  ],
  "mode": "all",
  "startFromNow": false,
  "includeDetails": false
}
```

# Actor output Schema

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

One record per listing in the run's default dataset: price, size, rooms, advertiser and, with details, the listing's own page; and what the record lacks.

## `summary` (type: `string`):

What the run did: the listings stored, each search's count against Idealista's, what could not be read, and the Ref to quote in an issue.

## `progress` (type: `string`):

The pages the run could not read: written when the platform moves the run and at its end, so a run moved or resurrected counts them once.

# 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.idealista.com/alquiler-viviendas/madrid-madrid/"
    ],
    "listingsPerSearch": 30,
    "listingUrls": [],
    "mode": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("kaleidoscopelabs/idealista-scraper").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.idealista.com/alquiler-viviendas/madrid-madrid/"],
    "listingsPerSearch": 30,
    "listingUrls": [],
    "mode": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("kaleidoscopelabs/idealista-scraper").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.idealista.com/alquiler-viviendas/madrid-madrid/"
  ],
  "listingsPerSearch": 30,
  "listingUrls": [],
  "mode": "all"
}' |
apify call kaleidoscopelabs/idealista-scraper --silent --output-dataset

```

## MCP server setup

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

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/O8ZO39E11I7MJLBwD/builds/SS7uA72Ieb6lENNTI/openapi.json
