# Idealista Scraper - Spain, Italy, Portugal Property Listings (`rjmacarthy/idealista-scraper`) Actor

Scrape Idealista property listings in Spain, Italy and Portugal: price, price drops, price per m², rooms, size, floor, lift, parking, agency, photos and badges. Optional full details with features, energy rating and coordinates. Monitor new listings and price changes. No start fee.

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

## Pricing

from $0.40 / 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.

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 - Homes for Sale & Rent in Spain, Italy and Portugal

Scrape property listings from **idealista.com (Spain), idealista.it (Italy) and idealista.pt (Portugal)**: price,
**price drops** (previous price, amount and %), price per m², rooms, size, plot, floor, lift, exterior, parking,
agency, photos, video / 3D tour flags and badges. Turn on **full details** for the complete description, features
list, bathrooms, year built, energy rating, approximate coordinates and every photo. **Monitor mode** outputs only new
listings, or new listings plus price changes, so a daily schedule never sends you the same flat twice.

**$0.40 per 1,000 listings and no run fee.** That is cheaper than the usual $0.55-$0.85 per 1,000 plus a start fee.
Page fetching is built in, no proxy setup needed.

### What data can you get

| Field | Example |
|---|---|
| `title`, `propertyKind`, `address`, `district`, `municipality` | Piso en Calle Mayor, Palacio, Madrid · Piso · Calle Mayor · Palacio · Madrid |
| `price`, `currency`, `pricePeriod`, `priceText`, `pricePerM2` | 1570000 · EUR · null (sale) / month (rent) · "1.570.000 €" · 9073 |
| `previousListPrice`, `priceDropAmount`, `priceDropPercent` | 1650000 · 80000 · 5 |
| `rooms`, `sizeM2`, `plotSizeM2` | 3 · 177 · 416 |
| `floor`, `floorText`, `hasLift`, `exterior` | 3 · "3ª planta exterior con ascensor" · true · true |
| `hasParking`, `parkingPrice` | true · 39000 (optional garage space) |
| `photoUrl`, `photoCount`, `hasVideo`, `has3dTour`, `hasFloorPlan` | main photo · 31 · true · true · true |
| `isNewDevelopment`, `isFeatured`, `badges`, `publishedText` | false · false · \["Lujo"] · "Publicado ayer" |
| `agencyName`, `agencyUrl`, `isPrivateSeller` | Engel & Völkers Madrid · https://www.idealista.com/pro/engel-volkers-madrid/ · false |
| `id`, `propertyCode`, `url`, `operation`, `country`, `searchUrl`, `page`, `scrapedAt` | es-109053846 · 109053846 · https://www.idealista.com/inmueble/109053846/ · sale · es |
| With **Include full listing details**: `descriptionFull`, `features`, `bathrooms`, `yearBuilt`, `energyRating`, `energyConsumptionKwhM2`, `locationDetails`, `latitude`, `longitude`, `photos` | full text · \["86 m² construidos", "1 baño", ...] · 1 · 1960 · D · 113 · \[...] · 36.71 · -4.45 · 21 URLs |
| Monitor mode: `changeType`, `previousPrice` | new / price_drop / price_increase · 1650000 |

Private sellers are flagged with `isPrivateSeller: true`; no names, phone numbers or emails are ever collected.

### Use cases

- **Market research and price tracking:** asking prices and price per m² by district in Madrid, Barcelona, Milan, Lisbon.
- **Deal hunting:** sort by biggest price drop, or schedule a monitor that only sends price drops and new listings.
- **Rental market analysis:** monthly rents by size and neighbourhood for investors and relocation services.
- **Lead lists for B2B:** which estate agencies list the most in an area (agency name and page).
- **Feeding a CRM, spreadsheet or AI agent** with fresh listings every morning.

### How to use

1. Search on Idealista with any filters you like, copy the URL from your browser, and paste it into **Search URLs**.
   Or type a city in **Locations** and pick the country, sale/rent, property type and filters in the form.
2. Set **Max listings per search** (30 = one results page).
3. Run, then download the dataset as Excel, CSV, JSON or HTML, or use the API.

Prefill (30 homes for sale in Madrid, one results page):

```json
{ "searchUrls": ["https://www.idealista.com/venta-viviendas/madrid-madrid/"], "maxItems": 30 }
```

Flats to rent in Barcelona up to €1,500 a month:

```json
{ "locations": ["Barcelona"], "country": "es", "operation": "rent", "maxPrice": 1500, "maxItems": 30 }
```

Lisbon homes with 2+ bedrooms, biggest price drops first:

```json
{ "locations": ["Lisboa"], "country": "pt", "minRooms": 2, "sortBy": "biggest-price-drop", "maxItems": 30 }
```

Daily monitor of new listings and price changes in Milan:

```json
{ "locations": ["Milano"], "country": "it", "sortBy": "newest", "monitorMode": "changes", "stateKey": "milano-sale", "maxItems": 60 }
```

**Locations:** a one-word city becomes Idealista's own place name ("Madrid" → `madrid-madrid`, "Milano" → `milano-milano`,
"Lisboa" → `lisboa`). For districts, towns or anything else, search on Idealista and paste the whole search URL (or the place part of it).

### Output example

A real row from the prefill run:

```json
{
  "id": "es-109053846",
  "propertyCode": "109053846",
  "url": "https://www.idealista.com/inmueble/109053846/",
  "title": "Piso en Calle Mayor, Palacio, Madrid",
  "propertyKind": "Piso",
  "address": "Calle Mayor",
  "district": "Palacio",
  "municipality": "Madrid",
  "operation": "sale",
  "price": 1570000,
  "currency": "EUR",
  "priceText": "1.570.000 €",
  "previousListPrice": 1650000,
  "priceDropAmount": 80000,
  "priceDropPercent": 5,
  "rooms": 3,
  "sizeM2": 177,
  "floor": 3,
  "floorText": "3ª planta exterior con ascensor",
  "hasLift": true,
  "exterior": true,
  "hasParking": false,
  "photoUrl": "https://img4.idealista.com/blur/591_420_mq/0/id.pro.es.image.master/8a/94/90/1491955642.jpg",
  "photoCount": 31,
  "hasVideo": true,
  "has3dTour": true,
  "hasFloorPlan": true,
  "badges": [],
  "agencyName": "Engel & Völkers Madrid",
  "agencyUrl": "https://www.idealista.com/pro/engel-volkers-madrid/",
  "isPrivateSeller": false,
  "country": "es",
  "page": 1,
  "scrapedAt": "2026-11-18T19:38:19.262Z"
}
```

(Every row has the same keys; detail and monitor fields are `null` when those options are off.)

### Pricing

Pay per event, **no run fee** (only Apify's own $0.00005 start):

- **`listing`: $0.0004 per listing** ($0.40 per 1,000).
- **`listing-details`: $0.005 per listing** extra, only with *Include full listing details* on and only when the listing page was fetched.
- **`monitor-check`: $0.005 per results page checked, monitor mode only.** Checking a search for news means loading a
  live results page, which costs the same whether or not anything is new, so each page checked in monitor mode is
  charged once, even when nothing new is found. Normal runs never pay it.

Examples:

- 1,000 listings ≈ **$0.40**; 1,000 listings with full details ≈ $5.40.
- Monitor, 1 search (1 page) checked **daily**: 30 x $0.005 = **$0.15 per month** + $0.0004 per new or changed listing.
- Monitor, 1 search of 2 pages checked **every hour**: 48 x $0.005 = **$0.24 per day** + $0.0004 per new or changed listing.

Set a *Maximum cost per run* in the run options and the Actor stops cleanly when it is reached.
**Free Apify plan:** runs are limited to 5 page requests (5 results pages = up to 150 listings); any paid Apify plan removes the limit.

### Tips and limits

- **30 listings per results page.** Max listings 30 = 1 page, 300 = 10 pages. `0` = every page of the search, up to
  this Actor's own cap of 100 pages (3,000 listings) per search; split bigger areas into districts or price bands.
  The run stops early when Idealista has no more pages.
- Pages take 10-30 s each; pages of one search are fetched in parallel (*Parallel requests*, default 5), so 90 listings take about 35 s.
- **Sorting:** relevance, cheapest, most expensive and biggest price drop on all three sites. **Newest first works on
  idealista.it and idealista.pt only**; on idealista.com the search runs in Idealista's default order (a pasted
  .com URL sorted by date is run in default order, with a warning).
- **Filters:** min/max price, min rooms and min size are written into the search for *Locations* and also checked on
  every row, so rows outside them never reach your dataset. For other filters (lift, terrace, pool, energy...), set them
  on Idealista and paste the URL.
- **Rooms** are bedrooms in Spain ("3 hab.") and Portugal ("T3"), but *locali* (all rooms) in Italy.
- **Coordinates** (with full details) are the centre of the area Idealista shows on its map, not the exact door:
  many advertisers hide the exact address.
- `bathrooms`, `yearBuilt`, `energyRating` come from the listing page, so they need *Include full listing details*.
- Monitor mode: the first run outputs everything and becomes the baseline. On idealista.com monitor in the default
  order and set Max listings to cover the whole search (or a narrow one), because newest-first is not available there.
- A results page that cannot be loaded is retried 3 times; if it still fails it is skipped (and not charged) and the run carries on.

### FAQ

**Is it legal to scrape Idealista?** This Actor reads public listing pages only, with no login. Idealista's terms
restrict automated access, and you are responsible for how you use the data (GDPR applies to anything personal).
The Actor does not collect names, phone numbers or emails of private sellers; agency names are public business information.

**Do I need a proxy?** No. Page fetching is built in, no proxy setup needed, and there is no proxy option to configure.

**Why is a run limited to 5 pages?** That only applies on the free Apify plan. Any paid plan removes the limit.

**Can I scrape a single listing URL?** Paste search URLs, not listing URLs. Use *Include full listing details* to get the listing page of every result.

**Does it work for rooms, new-build developments, offices, garages and land?** Yes: choose the *Property type*, or paste any
Idealista search URL (including obra nueva / nuove costruzioni / empreendimentos searches). Rooms to rent can be picked
in the form for Spain and Italy; for Portugal, paste the search URL.

**What is the max cost per run?** Set it in the run options; the Actor checks the budget before every push and stops cleanly.

### Integrations

Use the [Apify API](https://docs.apify.com/api/v2), the JavaScript / Python clients, or connect the dataset to
**Make, Zapier, n8n, Google Sheets, Airbyte** and webhooks. AI agents can call it through the
[Apify MCP server](https://docs.apify.com/platform/integrations/mcp).

### Changelog

- **0.1 (2026-11-18):** first release. Spain, Italy and Portugal; search URLs or locations; price drops; full details;
  monitor modes (new, changes).

### More scrapers by the same developer

- [Airbnb Search Scraper & Price Monitor](https://apify.com/rjmacarthy/airbnb-search-scraper)
- [Google Maps Scraper - Places, Phones, Websites, Ratings & Hours](https://apify.com/rjmacarthy/google-maps-scraper)
- [Google Shopping Scraper - Products, Prices, Stores & Ratings](https://apify.com/rjmacarthy/google-shopping-scraper)
- [Luma Events Scraper: Tech, AI & Crypto Events by City](https://apify.com/rjmacarthy/luma-events-scraper)
- [Meetup Events Scraper - Search Events & Groups by Topic & City](https://apify.com/rjmacarthy/meetup-events-scraper)
- [Property Finder Scraper - UAE Real Estate Listings (Dubai)](https://apify.com/rjmacarthy/propertyfinder-scraper)

Browse all my Actors on [my Apify Store profile](https://apify.com/rjmacarthy).

### Support

Found a bug or need a field? Open an issue on the Actor's Issues tab; we usually reply within a day.

# Actor input Schema

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

Idealista search result URLs from idealista.com, idealista.it or idealista.pt, with any filters you set on the site (e.g. https://www.idealista.com/venta-viviendas/madrid-madrid/ or https://www.idealista.it/affitto-case/milano-milano/con-prezzo_1500/). Each page holds 30 listings.

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

Alternative to URLs: a city or the place part of an Idealista URL, one per line (e.g. "Madrid", "Barcelona", "Milano", "Lisboa"). A one-word city becomes Idealista's "city-city" place in Spain and Italy. For districts and other places, search on Idealista and paste the URL into "Search URLs" instead. Combined with the country, operation, type and filters below.

## `country` (type: `string`):

Idealista site used for "Locations" (search URLs keep their own site).

## `operation` (type: `string`):

For sale or for rent (Locations only).

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

What to search (Locations only). Rooms are only listed for rent, and can be picked here for Spain and Italy (for Portugal, paste a search URL).

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

Minimum price (rent: per month). Applied in the search for Locations and checked on every row.

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

Maximum price (rent: per month). Applied in the search for Locations and checked on every row.

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

Minimum bedrooms (Spain, Portugal) or rooms ('locali', Italy). Homes only.

## `minSize` (type: `integer`):

Minimum built area in m². Rows below it are dropped.

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

Order of the results (matters when Max listings cuts the list). Newest first works on idealista.it and idealista.pt; on idealista.com the default order is used instead.

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

Maximum listings output per search URL / location. Idealista shows 30 listings per page, so 30 = 1 page, 90 = 3 pages. 0 = every page of the search (this Actor stops at 100 pages per search).

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

Also open each listing page for the full description, feature list, bathrooms, year built, energy rating, approximate coordinates and all photos. Costs one extra "listing-details" event per listing and makes runs slower.

## `monitorMode` (type: `string`):

For scheduled runs. "new" outputs only listings this monitor has not output before. "changes" also outputs known listings whose price changed (changeType, previousPrice). The first run outputs everything as the baseline. In monitor mode each results page checked costs one "monitor-check" event, even when nothing new is found.

## `stateKey` (type: `string`):

Separate memory for each monitor. Use a different name per saved search you schedule (e.g. "madrid-2bed-rent").

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

Result pages fetched at the same time (pages take 10-30 s each).

## `maxPageRequests` (type: `integer`):

Safety cap on Idealista pages fetched per run (result pages plus listing pages). 0 = automatic (pages needed + 20%, max 2,000). Runs on the free Apify plan are limited to 5 pages per run; any paid plan removes that limit. Page fetching is built in, no proxy setup needed.

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.idealista.com/venta-viviendas/madrid-madrid/"
  ],
  "country": "es",
  "operation": "sale",
  "propertyType": "homes",
  "sortBy": "relevance",
  "maxItems": 30,
  "includeDetails": false,
  "monitorMode": "all",
  "stateKey": "default",
  "maxConcurrency": 5,
  "maxPageRequests": 0
}
```

# Actor output Schema

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

No description

## `runSummary` (type: `string`):

No description

# 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/venta-viviendas/madrid-madrid/"
    ],
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("rjmacarthy/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/venta-viviendas/madrid-madrid/"],
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("rjmacarthy/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/venta-viviendas/madrid-madrid/"
  ],
  "maxItems": 30
}' |
apify call rjmacarthy/idealista-scraper --silent --output-dataset

```

## MCP server setup

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