# Idealista Scraper - $0.50 / 1000 Listings (`scrapeunblocker/idealista-scraper`) Actor

Scrape idealista listings in Spain, Italy and Portugal by search URL or location with filters: price, price drop, area, rooms, floor, lift, parking, description, photos, agency. Sale and rent; homes, offices, premises, garages, land, rooms. Up to 1800 per search. $0.50 per 1000 listings.

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

## Pricing

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

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

Scrape **idealista property listings** in **Spain (idealista.com), Italy (idealista.it) and Portugal (idealista.pt)** as clean structured JSON: title, price and currency (monthly for rentals), the original price and price-drop percentage after a cut, area, rooms, floor, lift, parking, publication age, description, photos, plan / video / 3D tour flags, tags and the agency (name, page, logo) or a private advertiser. Search by any idealista search URL with its filters, or by location with filters for operation, property type, price, area, rooms, bathrooms and features. No idealista account, no API key, no proxies to configure.

### Features

- **Three countries** - idealista.com, idealista.it and idealista.pt.
- **Any search URL** - paste a search page from the browser with all its filters, or search by location (`madrid-madrid`, `madrid/centro`, `milano-milano`, `lisboa/arroios`, `malaga-provincia`).
- **Built-in filters** - sale or rent; homes, new homes, offices, commercial premises, garages, land, storage rooms, buildings, rooms to rent; price and area ranges; rooms; bathrooms; 14 features (lift, terrace, pool, garden, air conditioning, parking ...).
- **Ten sort orders** - relevance, price, newest, oldest, area, price per m2 and biggest price drop.
- **Up to 1800 listings per search** - 30 per page, up to idealista's own limit of 60 pages per search; duplicates across pages are removed.
- **Price-cut tracking** - `originalPrice` and `priceDropPercent` on every reduced listing.

Need the full listing page (every feature group, bathrooms, year built, energy rating, price breakdown, exact address lines, coordinates, the whole photo gallery and floor plans)? Use our **Idealista Property Detail Scraper** with the listing URLs from this actor.

### Use cases

- **Market research and pricing** - asking prices, price per m2 and price cuts by city, district and property type.
- **Investment sourcing** - new listings, biggest price drops and properties to renovate as soon as they appear.
- **Rental analysis** - monthly rents by area, size and rooms.
- **Agency and lead monitoring** - which agencies list where, private vs professional advertisers.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchUrls` | array | Milan rentals (example) | idealista search URLs with their filters. |
| `locations` | array | - | Or locations as written in idealista URLs. |
| `country` | string | `es` | Site of the locations: `es`, `it` or `pt`. |
| `operation` | string | `sale` | `sale` or `rent`. |
| `propertyType` | string | `homes` | `homes`, `new_homes`, `offices`, `premises`, `garages`, `lands`, `storage`, `buildings`, `rooms`. |
| `minPrice` / `maxPrice` | integer | - | Price range in EUR. |
| `minSize` / `maxSize` | integer | - | Area range in m2. |
| `rooms` | array | - | `0`-`4` bedrooms (Spain, Portugal; 0 = studio, 4 = 4+) or `1`-`5` rooms (Italy). |
| `bathrooms` | array | - | `1`, `2`, `3` (3 = 3+). |
| `features` | array | - | `lift`, `terrace`, `balcony`, `garage`, `pool`, `garden`, `air_conditioning`, `storage_room`, `fitted_wardrobes`, `accessible`, `luxury`, `new_construction`, `good_condition`, `to_renovate`. |
| `sort` | string | `relevance` | Result order for location searches. |
| `maxResultsPerSearch` | integer | `30` | Listings per search (1-1800). |
| `proxyCountry` | string | - | Optional exit-IP country (ISO-2). Leave empty for the most reliable exit. |
| `concurrency` | integer | `2` | Searches read at the same time (1-3). |

The filters apply to `locations`; a search URL keeps its own filters.

#### Example input

```json
{
  "locations": ["lisboa/arroios", "porto"],
  "country": "pt",
  "operation": "rent",
  "maxPrice": 1500,
  "rooms": ["1", "2"],
  "features": ["lift"],
  "sort": "newest",
  "maxResultsPerSearch": 120
}
```

### Output

One dataset item per listing:

```json
{
  "id": "37069070",
  "url": "https://www.idealista.it/immobile/37069070/",
  "title": "Bilocale in Corso Lodi, 110, Corvetto, Milano",
  "priceText": "900 €/mese",
  "price": 900,
  "currency": "EUR",
  "pricePeriod": "month",
  "rooms": 2,
  "area": 56,
  "floor": "4º piano con ascensore",
  "lift": true,
  "published": "20 minuti",
  "description": "IOCASA-A-294 - CORSO LODI - DUE LOCALI CON CUCINA A VISTA - ARREDATO CORSO LODI - LUMINOSO...",
  "images": ["https://img4.idealista.it/blur/480_360_mq/0/id.pro.it.image.master/9e/67/25/845200994.jpg"],
  "imageCount": 17,
  "multimedia": ["PLAN", "VIDEO", "VIRTUAL_TOUR_3D"],
  "agency": {
    "name": "Io casa Immobiliare",
    "url": "https://www.idealista.it/pro/io-casa/",
    "logo": "https://st3.idealista.it/71/7c/47/io-casa.jpg"
  },
  "professional": true,
  "position": 1,
  "country": "it",
  "searchUrl": "https://www.idealista.it/affitto-case/milano-milano/",
  "searchInput": "https://www.idealista.it/affitto-case/milano-milano/"
}
```

A reduced listing also carries `originalPrice` and `priceDropPercent`; listings with a garage space carry `parking`. The key-value store also holds:

- `SEARCHES` - per search: idealista's heading and total count, the listings collected, pages fetched and `viewLimitReached` (the search has more listings than idealista's 60 pages show).
- `ERRORS` - searches that returned no listings (no match, unknown location, blocked) with the reason. These are **not billed**.

### Pricing

**$0.50 per 1000 listings.** You pay only for listings delivered; searches without results are not charged.

### Notes

- idealista shows at most 60 pages (1800 listings) per search. For bigger areas, split the search by district or price range; `viewLimitReached` in `SEARCHES` tells when that is needed.
- Texts come in the site's language (Spanish, Italian, Portuguese); prices are in EUR.
- The smallest / largest first sort orders do not exist on idealista.it; there they fall back to relevance.
- The search page shows the first photo and a shortened description; the full gallery and text are on the listing page.

# Actor input Schema

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

idealista search pages with their filters, copied from the browser: https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/con-precio-hasta_2000,de-dos-dormitorios/, https://www.idealista.it/affitto-case/milano-milano/, https://www.idealista.pt/comprar-casas/lisboa/. The filters below do not apply to these. Empty runs use the example only when Locations is empty too.

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

Or search by location, written as in idealista URLs: a municipality (madrid-madrid, barcelona-barcelona, milano-milano, lisboa), a district (madrid/centro, lisboa/arroios) or a province (malaga-provincia). Uses the country and filters below.

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

Which idealista site the locations are on.

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

Sale or rent.

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

What kind of property to list.

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

Optional. Monthly rent when Operation is rent.

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

Optional. Monthly rent when Operation is rent.

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

Optional.

## `maxSize` (type: `integer`):

Optional.

## `rooms` (type: `array`):

Optional. Bedrooms in Spain and Portugal (0 = studio / T0, 4 = four or more); total rooms in Italy (1 to 5, 5 = five or more).

## `bathrooms` (type: `array`):

Optional.

## `features` (type: `array`):

Optional. Listings must have all of these.

## `sort` (type: `string`):

Result order for location searches.

## `maxResultsPerSearch` (type: `integer`):

How many listings to collect for each search URL or location (1-1800). idealista shows 30 listings per page and at most 60 pages per search.

## `proxyCountry` (type: `string`):

Optional exit-IP country (ISO-2). Leave empty: the exit is chosen for idealista automatically, which is the most reliable.

## `concurrency` (type: `integer`):

How many searches to read at the same time (1-3).

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.idealista.it/affitto-case/milano-milano/"
  ],
  "country": "es",
  "operation": "sale",
  "propertyType": "homes",
  "sort": "relevance",
  "maxResultsPerSearch": 30,
  "concurrency": 2
}
```

# Actor output Schema

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

One item per listing, with the search it came from and its position

## `searches` (type: `string`):

Per search: idealista's heading and total count, listings collected, pages fetched and whether idealista's 60-page view limit was reached

## `errors` (type: `string`):

Searches that returned no listings (no match, unknown location or blocked), with the reason (not billed)

# 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.it/affitto-case/milano-milano/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/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.it/affitto-case/milano-milano/"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/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.it/affitto-case/milano-milano/"
  ]
}' |
apify call scrapeunblocker/idealista-scraper --silent --output-dataset

```

## MCP server setup

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