# Idealista Scraper: Property Listings in 4 Countries (`luzivanlt/idealista-listings-scraper`) Actor

Idealista property listings in Spain, Italy, Portugal and France, sale and rent, each saved once. $0.40 per 1,000 properties. Price, price change, title, address, rooms, size, floor, lift, type, agency, photos, flags; optional description, features, energy rating, reference, all photos. No login.

- **URL**: https://apify.com/luzivanlt/idealista-listings-scraper.md
- **Developed by:** [Luzi](https://apify.com/luzivanlt) (community)
- **Categories:** Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.28 / 1,000 properties

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: Property Listings in 4 Countries

Idealista property listings from Spain, Italy, Portugal and France, for sale and
to rent, one row per property. Each property is saved once even when two of your
searches show it, and it carries its price, price change, rooms, size, floor,
lift, type, agency and photo count. Turn on property pages to add the full
description, every feature, the energy rating, the agency reference, the map
position and every photo link. No idealista account or cookies needed.

### What does this Actor do?

Give it idealista search links, or single property links, and it walks each
search page by page in the order the site serves them. It follows the site's own
next-page link, so the walk works the same on all four portals, and it stops
when it reaches the page limit you set, the property limit you set, or the end
of the site's own pager.

The site caps any one search at 60 pages of 30 properties, so 1,800 properties
is the most one search can give: read a city district by district, or add the
price and room filters to the link, to reach more. Everything a page shows is
kept, including a property that appears in two of your searches, which is saved
and charged once.

Each property comes with:

- the price in euros, the cut it advertises and the price per square metre
- the headline, the street and area, the property type and whether it is for
  sale or to rent
- rooms, bathrooms, size, floor and whether there is a lift
- the agency that posted it, its link and whether the seller is professional
- the photo count, and whether the listing has a floor plan, a virtual tour, a
  video or a map
- the portal it came from and the search that found it
- with property pages on: the full description, every feature, the energy
  certificate, the agency reference, the map position, every photo link and
  when the listing last changed

Tested end to end on 2026-11-20: 1,800 properties from 60 pages, and a
1-page run with property pages on.

### Why use it?

- **Four countries, one Actor.** idealista.com, .it, .pt and .fr share their
  markup, so a Spanish, Italian, Portuguese or French search returns the same
  columns and your spreadsheet works across all four.
- **Each property once.** A property that two of your searches both show is
  saved and charged one time, so overlapping districts do not inflate a bill.
- **The search row is already usable.** Price, rooms, size, floor, lift, agency
  and photos come from the search page, so a run without property pages costs a
  fraction of a full read.
- **A measured wall pass.** The site's check is cleared from a real browser on
  every run and the rest of the pages are read directly, which is why a page
  costs us a fraction of what a rendered page costs.
- **Ready for a pipeline.** Export as JSON, CSV or Excel, or read the dataset
  through Apify's API and schedule the run daily.

### How to use it

1. Paste one or more links in **Links**. A search page walks its results; a
   property page saves that one property with all of its detail fields.
2. Set **Pages per search** (1 to 60) and **Properties to save at most**; either
   one stops the run first.
3. Turn on **Read each property page too** if you need descriptions, features,
   energy ratings, references or all photo links. It costs $1.50 per 1,000
   properties on top of the row, and the site serves about 15 of them before it
   starts refusing: on a long run, expect detail fields on the first rows and
   search fields on the rest.

With no changes, the run reads three pages of the Madrid sale search and saves
about 90 properties in about a minute.

#### Links that work

```
https://www.idealista.com/venta-viviendas/madrid-madrid/
https://www.idealista.it/vendita-case/milano/
https://www.idealista.pt/comprar-casas/lisboa/
https://www.idealista.fr/achat-logement/paris-paris-75/
https://www.idealista.com/inmueble/109053846/
```

Filters already in a link are kept, so a saved search with a price range, rooms
or a property type reads exactly that. A link from another site stops the run
before anything is read, with a message naming the link.

### Input

| **Title** (`key`) | What it does | Default |
| --- | --- | --- |
| **Links** (`startUrls`) | Up to 50 idealista search or property links, one per line. A link given twice is read once. | Madrid sale search |
| **Pages per search** (`maxPages`) | Result pages to read per search, 1 to 60. 30 properties per page. | 20 |
| **Properties to save at most** (`maxListings`) | The cap across all links, 1 to 100000. | 1000 |
| **Read each property page too** (`fetchDetails`) | Adds the full description, features, energy rating, reference, coordinates and photo links. | off |

Give at least one link. Example:

```json
{
  "startUrls": ["https://www.idealista.com/venta-viviendas/madrid-madrid/"],
  "maxPages": 3,
  "maxListings": 200,
  "fetchDetails": true
}
```

### Output

One row per property. Example:

```json
{
  "id": "109053846",
  "url": "https://www.idealista.com/inmueble/109053846/",
  "operation": "sale",
  "propertyType": "Piso",
  "title": "Piso en Calle Mayor, Palacio, Madrid",
  "address": "Calle Mayor, Palacio, Madrid",
  "zone": "Palacio, Madrid",
  "price": 1570000,
  "priceCurrency": "EUR",
  "pricePerM2": 8870,
  "priceChangeFrom": 1690000,
  "priceChangePercent": 7,
  "rooms": 3,
  "bathrooms": 2,
  "sizeM2": 177,
  "floor": "3ª planta exterior con ascensor",
  "hasLift": true,
  "agencyName": "Agencia Ejemplo",
  "agencyUrl": "https://www.idealista.com/pro/agencia-ejemplo/",
  "photos": 33,
  "isProfessional": true,
  "isOffmarket": false,
  "country": "ES",
  "searchName": "madrid-madrid",
  "page": 2,
  "position": 7,
  "fetchedAt": "2026-11-20T10:00:00.000Z",
  "detailsFetched": true,
  "energyClass": "D",
  "reference": "W-02W40Q",
  "latitude": 40.415957,
  "longitude": -3.7115295
}
```

| Field | What it holds |
| --- | --- |
| `id` | The site's own number for the property. |
| `url` | The property's page, on the portal it comes from. |
| `operation` | `sale` or `rent`, read from the search language. |
| `propertyType` | Piso, casa, chalet, ático, in the portal's words. |
| `title` | The listing's headline. |
| `address` | Street, neighbourhood and city, with the type removed. |
| `zone` | The area named on the property page. |
| `price` | Asking price in euros. |
| `priceCurrency` | EUR on all four portals. |
| `pricePerM2` | Price divided by size, rounded. |
| `priceChangeFrom` | The earlier price when a cut is shown. |
| `priceChangePercent` | The advertised cut, such as 7. |
| `rooms` | Bedrooms. |
| `bathrooms` | Bathrooms, from the property page. |
| `sizeM2` | Built area in square metres. |
| `floor` | The floor as the listing states it. |
| `hasLift` | true, false, or empty when the listing says nothing. |
| `description` | The short text under the title on the search page. |
| `agencyName` | The agency or private seller. |
| `agencyUrl` | The agency's page on the portal. |
| `photos` | How many photos the listing carries. |
| `hasPlan` | Floor plan offered. |
| `hasVirtualTour` | Virtual or 3D tour offered. |
| `hasVideo` | Video offered. |
| `hasMap` | Map offered. |
| `isProfessional` | Agency rather than private seller. |
| `isOffmarket` | Marked as no longer on the market. |
| `country` | ES, IT, PT or FR. |
| `searchUrl` | The search that found it. |
| `searchName` | The last part of that search link. |
| `page` | Result page, counting from 1. |
| `position` | Place on that page, counting from 1. |
| `fetchedAt` | When the run started reading. |
| `detailsFetched` | true when the fields below were read in this run. |
| `descriptionFull` | The whole description from the property page. |
| `features` | Every feature line on the property page. |
| `energyClass` | Energy certificate letter, A to G. |
| `energyConsumption` | Consumption figure as the certificate prints it. |
| `energyEmissions` | Emissions figure as the certificate prints it. |
| `reference` | The agency's reference. |
| `latitude` | Approximate latitude from the map. |
| `longitude` | Approximate longitude from the map. |
| `photoUrls` | Every photo link, at full size. |
| `updatedText` | How long ago the listing changed, as stated. |

The fields after `detailsFetched` are empty unless property pages are on, and
`descriptionFull`, `features`, `energyClass`, `reference` and `photoUrls` are
empty on some listings even then, because the portal does not publish them for
every property. `bathrooms`, `zone` and `floor` are the most often empty on a
search-only run.

### How much does it cost?

You pay for what you get:

- **$0.045 per link** that opens and saves at least one property. A link the
  site refuses, or a link whose results are all properties you already saved,
  costs nothing.
- **$0.045 once per run** when the run has to open a real browser to clear the
  site's check. Most runs reuse the session an earlier run left, and then this
  is not charged at all.
- **$0.40 per 1,000 properties** saved, so $0.0004 each. A property already
  saved in the run is not charged again.
- **$1.50 per 1,000 properties** for reading each property's own page, so
  $0.0015 each, only when that option is on and the page answers.

A run of one Madrid search, three pages, 90 properties and no property pages
costs $0.081 when it reuses a session: $0.045 for the link plus 90 at $0.0004.
With a browser session it is $0.126. The same 90 properties with property pages
on cost up to $0.297: the link, the session, 90 rows and the pages that answered
at $0.0015 each.

Bronze, Silver and Gold plans pay 10, 20 and 30 percent less on every row.

### How long does a run take?

When the run has to clear the site's check, the first page takes a minute or
two because a real browser answers it, and a page the site refuses costs a
fresh browser before the run moves on. When it reuses the session an earlier
run left, the first page takes seconds. Measured on 20 November 2026: 30
properties in 4 seconds reused and 59 seconds with a browser, 1,800 in 3 minutes
and 43 seconds reused. Reading property pages adds about a second per property.

### Good to know

- **The site caps a search at 60 pages.** That is 1,800 properties. To go
  further, read the city district by district or add filters to the link; the run
  tells you when it hit the cap.
- **A page can be refused.** The site occasionally refuses a fresh connection
  and the Actor asks for another one, up to three per country. If all three are
  refused, the run stops with a message instead of saving an empty dataset.
- **Coordinates are approximate.** The portal blurs the map position, usually
  to the street, so do not use them as an exact address.
- **Property pages run out.** The site stops serving property pages after
  about 15 in a row on one session, measured on 20 November 2026: a 30-property
  run read 16 of them, and the rest kept their search fields. Every row still
  carries the search fields, and a property page that does not answer is not
  charged.
- **Some listings have no detail fields.** The portal does not publish a
  description, an energy certificate or a reference for every property; those
  rows keep their search fields and are not charged the property-page price.
- **Duplicates are handled.** A property is identified by the site's own number
  and saved once per run, whichever search, page or link it came from.
- **A restarted run does not charge twice.** If a run is restarted, the
  properties already in your results are skipped and not charged again.
- **No account needed.** Nothing here needs an idealista login, a saved search
  or a cookie from your browser.

### FAQ

**Can I read several cities in one run?**
Yes. Paste up to 50 links, including searches from different portals, and each
one is walked in turn. The session is charged once per run, not once per link,
and a link costs $0.045.

**Why is a search only returning 30 or 60 properties?**
The page limit is doing its job: 30 properties per page and your page setting
applies to each link. Raise **Pages per search** to read further.

**Do I need property pages for a price analysis?**
No. Price, price per square metre, rooms, size, floor, lift and the price cut
are all on the search row. Property pages add the description, features, energy
rating and every photo link.

**Can I run this daily?**
Yes. Schedule the Actor with the links of your saved searches; a daily run of
one search at the default 20 pages costs about $0.33.

# Actor input Schema

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

Up to 50 idealista links, one per line. A search page such as https://www.idealista.com/venta-viviendas/madrid-madrid/ walks its pages in order. A property page such as https://www.idealista.com/inmueble/109053846/ saves that one property with its detail fields. Filters already in a link are kept. A link given twice is read once. Each link that saves at least one property costs $0.045, and clearing the site's check costs $0.045 once per run when a browser is needed.

## `maxPages` (type: `integer`):

How many result pages to read for each search, from 1 to 60. 30 properties are on a page, so 20 pages is about 600 properties. The site stops at page 60 for any search; a walk that reaches it ends there and says so.

## `maxListings` (type: `integer`):

The number of properties one run may save across all links, from 1 to 100000. Default 1000. A property already saved in this run is not saved or charged again.

## `fetchDetails` (type: `boolean`):

Off by default: a search row already carries price, rooms, size, floor, lift, agency and photos. On, each property's own page is read as well and adds the full description, every feature, energy rating, reference, exact map position and all photo links, at $1.50 per 1,000 properties. The site stops serving property pages after about 15 in a row on one session, so the first rows of a run carry the detail fields and a long run's later rows keep their search fields. A property page that cannot be read costs nothing extra.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.idealista.com/venta-viviendas/madrid-madrid/"
  ],
  "maxPages": 3,
  "maxListings": 1000,
  "fetchDetails": false
}
```

# Actor output Schema

## `rows` (type: `string`):

One row per property in the default dataset; open the link for 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": [
        "https://www.idealista.com/venta-viviendas/madrid-madrid/"
    ],
    "maxPages": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("luzivanlt/idealista-listings-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 = {
    "startUrls": ["https://www.idealista.com/venta-viviendas/madrid-madrid/"],
    "maxPages": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("luzivanlt/idealista-listings-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 '{
  "startUrls": [
    "https://www.idealista.com/venta-viviendas/madrid-madrid/"
  ],
  "maxPages": 3
}' |
apify call luzivanlt/idealista-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,luzivanlt/idealista-listings-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/GjO3Ds4RqLBHxDaER/builds/Jtr8nEPIYQjLjda6V/openapi.json
