# Idealista Scraper - Spain, Portugal, Italy & France (`tugascrapper/idealista-scraper`) Actor

Scrape idealista.com (Spain), idealista.pt (Portugal), idealista.it (Italy) and idealista.fr (France): price, price drops, m², rooms, floor, address, agency. Complete results for large searches, pay per listing.

- **URL**: https://apify.com/tugascrapper/idealista-scraper.md
- **Developed by:** [David Marques](https://apify.com/tugascrapper) (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.70 / 1,000 listings saved

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/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 - Spain, Portugal, Italy & France

Extract homes for sale and for rent from **Idealista** in four countries: **idealista.com** (Spain), **idealista.pt** (Portugal), **idealista.it** (Italy) and **idealista.fr** (France).

Paste any Idealista search URL, with any filters, and get one clean row per listing: price, **price drops**, size, rooms, floor, lift, parking, street, neighbourhood, agency and more. Export to JSON, CSV or Excel, or read it through the API.

- **Complete results.** Searches larger than Idealista's 1,800-listing limit are split automatically and come back whole.
- **One format for four countries.** The same fields and the same property-type codes in Spanish, Portuguese, Italian and French.
- **Pay per listing delivered.** No monthly rental. A run that returns nothing costs you nothing for listings.

### Contents

- [What you get](#what-you-get)
- [Supported countries and URLs](#supported-countries-and-urls)
- [Tested results](#tested-results)
- [How to use](#how-to-use)
- [Input](#input)
- [Output](#output)
- [How large searches are handled](#how-large-searches-are-handled)
- [Pricing](#pricing)
- [Speed and limits](#speed-and-limits)
- [Use it from code](#use-it-from-code)
- [Use cases](#use-cases)
- [FAQ](#faq)
- [Support](#support)

### What you get

| Group | Fields |
| --- | --- |
| Identity | `id`, `url`, `title`, `country`, `operation` (sale or rent), `propertyType` |
| Price | `price`, `currency`, `pricePerM2`, **`previousPrice`**, **`priceDropPercent`** |
| Size | `areaM2`, `plotAreaM2`, `bedrooms`, `rooms` |
| Building | `floor`, `hasLift`, `exterior`, `parkingIncluded`, `parkingPrice` |
| Location | `address`, `street`, `streetNumber`, `neighborhood`, `municipality` |
| Listing | `description`, `tags`, `details`, `photosCount`, `imageUrl` |
| Advertiser | `agencyName`, `agencyId`, `agencyUrl` |
| Run | `searchUrl`, `scrapedAt` |

All fields come from the search results pages. The Actor does not open each listing's detail page, which keeps runs fast and cheap. See [Speed and limits](#speed-and-limits) for what that leaves out.

### Supported countries and URLs

| Country | Site | For sale | For rent |
| --- | --- | --- | --- |
| Spain | idealista.com | `https://www.idealista.com/venta-viviendas/madrid-madrid/` | `https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/` |
| Portugal | idealista.pt | `https://www.idealista.pt/comprar-casas/lisboa/` | `https://www.idealista.pt/arrendar-casas/porto/` |
| Italy | idealista.it | `https://www.idealista.it/vendita-case/milano-milano/` | `https://www.idealista.it/affitto-case/roma-roma/` |
| France | idealista.fr | `https://www.idealista.fr/achat-logement/paris-paris-75/` | `https://www.idealista.fr/location-logement/paris-paris-75/` |

Any filter you can apply on the website works, because the Actor reads the URL you give it: price range, number of rooms, lift, new builds, a single neighbourhood, and so on. For example, `https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/con-precio-hasta_1500/` returns Barcelona rentals up to €1,500.

URLs in any language version of the site (`/en/`, `/pt/`...) are accepted, and you can mix countries in one run.

### Tested results

Real runs on the Apify platform, November 2026:

| Search | Listings on the site | Listings delivered | Run time |
| --- | --- | --- | --- |
| Madrid, for sale | 20,000+ | 20,111 | 2 h 13 min |
| Braga (Portugal), for sale | 2,102 | 2,102 | 6 min 50 s |
| Coimbra (Portugal), for sale | 1,128 | 1,127 | 5 min 50 s |
| Naples (Italy), for sale, limited to 1,500 | 3,761 | 1,500 | 5 min 50 s |
| Paris (France), for sale, limited to 2,000 | 12,755 | 2,000 | 5 min 15 s |

Listings are added and removed on the site while a run is in progress, so the delivered number can differ from the announced one by a few listings.

### How to use

1. Open Idealista in your browser, search for a place and apply the filters you want.
2. Copy the URL of the results page.
3. Paste it in **Idealista search URLs** (you can add several) and click **Start**.
4. Download the results from the **Output** tab, or read them through the API.

### Input

| Field | Type | Description |
| --- | --- | --- |
| `startUrls` | array | Idealista search result URLs from any of the four countries. Sale or rent, any filters. |
| `maxItems` | integer | Maximum number of listings in total. `0` means no limit. |
| `proxyConfiguration` | object | Advanced. Residential proxies in the country of each search are used by default; changing this is not recommended. |

Example:

```json
{
  "startUrls": [
    { "url": "https://www.idealista.com/venta-viviendas/madrid-madrid/con-precio-hasta_300000/" },
    { "url": "https://www.idealista.pt/arrendar-casas/porto/" }
  ],
  "maxItems": 5000
}
```

### Output

One item per listing. Two real examples.

**Spain, a listing with a price drop:**

```json
{
  "id": "109908457",
  "url": "https://www.idealista.com/inmueble/109908457/",
  "title": "Piso en Estrella, Madrid",
  "propertyType": "flat",
  "operation": "sale",
  "price": 715000,
  "currency": "EUR",
  "previousPrice": 745000,
  "priceDropPercent": 4,
  "pricePerM2": 8033.71,
  "areaM2": 89,
  "plotAreaM2": null,
  "bedrooms": 3,
  "rooms": null,
  "floor": "2",
  "hasLift": true,
  "exterior": true,
  "parkingIncluded": null,
  "parkingPrice": null,
  "address": "Estrella, Madrid",
  "street": null,
  "streetNumber": null,
  "neighborhood": "Estrella",
  "municipality": "Madrid",
  "description": "Piso exterior con reforma top junto a Doctor Esquerdo...",
  "tags": [],
  "details": ["3 hab.", "89 m²", "2ª planta exterior con ascensor"],
  "photosCount": 29,
  "imageUrl": "https://img4.idealista.com/blur/591_420_mq/0/id.pro.es.image.master/c8/a5/ff/1415675258.jpg",
  "agencyName": "Engel & Völkers Madrid",
  "agencyId": "engel-volkers-madrid",
  "agencyUrl": "https://www.idealista.com/pro/engel-volkers-madrid/",
  "country": "es",
  "searchUrl": "https://www.idealista.com/venta-viviendas/madrid-madrid/",
  "scrapedAt": "2026-11-11T22:31:40Z"
}
```

**France, a flat with parking included:**

```json
{
  "id": "1376240",
  "url": "https://www.idealista.fr/immeuble/1376240/",
  "title": "Appartement dans le quartier République-Saint Ambroise, Paris",
  "propertyType": "flat",
  "operation": "sale",
  "price": 398000,
  "currency": "EUR",
  "previousPrice": null,
  "priceDropPercent": null,
  "pricePerM2": 7370.37,
  "areaM2": 54,
  "plotAreaM2": null,
  "bedrooms": 1,
  "rooms": 2,
  "floor": "1",
  "hasLift": false,
  "exterior": null,
  "parkingIncluded": true,
  "parkingPrice": null,
  "address": "République-Saint Ambroise, Paris",
  "street": null,
  "streetNumber": null,
  "neighborhood": "République-Saint Ambroise",
  "municipality": "Paris",
  "description": "Ce charmant appartement de 2 pièces de 54,3 m2 se situe au 1er étage d'un immeuble ancien ...",
  "tags": [],
  "details": ["Parking inclus", "2 pièces (1 chambre)", "54 m²", "1ᵉʳ étage sans ascenseur"],
  "photosCount": 16,
  "imageUrl": "https://img4.idealista.fr/blur/480_360_mq/0/id.pro.fr.image.master/54/af/16/16098630.jpg",
  "agencyName": null,
  "agencyId": null,
  "agencyUrl": null,
  "country": "fr",
  "searchUrl": "https://www.idealista.fr/achat-logement/paris-paris-75/",
  "scrapedAt": "2026-11-16T01:17:42Z"
}
```

#### Field notes

| Field | Notes |
| --- | --- |
| `propertyType` | The same codes in every country: `flat`, `studio`, `penthouse`, `duplex`, `loft`, `house`, `detachedHouse`, `semiDetachedHouse`, `terracedHouse`, `townHouse`, `countryHouse`, `building`, `land`. Empty when the site uses a type the Actor does not know yet; the original wording is always in `title`. |
| `previousPrice`, `priceDropPercent` | Filled only when Idealista itself shows that the price was lowered. |
| `bedrooms`, `rooms` | Spain and Portugal show bedrooms. Italy shows the total number of rooms ("3 locali"), so `rooms` is filled and `bedrooms` is empty. France shows both ("2 pièces (1 chambre)"). |
| `floor` | `"0"` is the ground floor. Empty when the listing does not say. |
| `hasLift`, `exterior` | `true`, `false`, or empty when the listing does not say. |
| `parkingIncluded`, `parkingPrice` | `true` when parking is included in the price; `false` with a `parkingPrice` when it is sold separately. |
| `street`, `streetNumber`, `neighborhood`, `municipality` | Split from the listing title. Many listings give only a neighbourhood, in which case `street` is empty. |
| `details` | The raw detail labels exactly as the site shows them, in the site's language. |
| `agencyName` | Empty for private sellers and when the results page does not show the advertiser. |
| `currency` | Always `EUR`. |

The dataset has two views, **Overview** and **Price drops**. You can also connect it to Google Sheets, Make, Zapier or n8n.

### How large searches are handled

Idealista shows at most 60 pages per search, which is 1,800 listings. A search for a whole city has far more.

When a search is larger than that, the Actor splits it into price ranges, runs each range as its own search, and splits a range again if it is still too large. Listings that appear in two ranges are delivered once. You do not need location IDs or any preparation: paste the city URL and the Actor does the rest.

Paid "promoted" listings from other areas, which Idealista inserts into results, are removed.

### Pricing

You pay per listing saved to the dataset. The current price is on the **Pricing** tab; platform and proxy costs are included in it.

At $0.70 per 1,000 listings (the price in November 2026):

| Run | Listings | Cost |
| --- | --- | --- |
| A neighbourhood | 300 | $0.21 |
| A mid-sized city (Braga) | 2,100 | $1.47 |
| A whole capital (Madrid) | 20,000 | $14.00 |

To cap your spending, set **Maximum cost per run** in the run options, or use `maxItems`. The Actor stops when the limit is reached and you keep everything collected so far.

### Speed and limits

- **Speed:** about 300 to 400 listings per minute once a run is going.
- **Start-up:** Spain and France start in under a minute. Portugal and Italy use a different anti-bot system and take 1 to 3 minutes to start.
- **Long runs:** for searches above roughly 15,000 listings, raise the run timeout in the run options. If a run stops because of the timeout, use **Resurrect** and it continues where it stopped without duplicates.
- **Built for homes:** the Actor is tested on home searches (sale and rent). Searches for offices, garages, land or new developments are not tested and may return incomplete fields.
- **Search pages only:** it does not open listing detail pages, so it does not return GPS coordinates, the full photo gallery, energy certificates or phone numbers.
- **No personal data:** phone numbers and e-mail addresses are not collected.

### Use it from code

Python, with the official `apify-client` package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("tugascrapper/idealista-scraper").call(run_input={
    "startUrls": [{"url": "https://www.idealista.pt/comprar-casas/coimbra/"}],
    "maxItems": 500,
})
for listing in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(listing["price"], listing["areaM2"], listing["title"])
```

The Actor also works with Apify Schedules, webhooks and the Apify MCP server.

### Use cases

- **Market analysis:** price per m² by neighbourhood, city or country, with comparable fields across four markets.
- **Price-drop tracking:** find listings whose asking price was lowered, and by how much.
- **Investment screening:** filter a whole city by price, size and floor in a spreadsheet instead of page by page.
- **Agency intelligence:** see which agencies advertise the most in an area.
- **Recurring datasets:** schedule the same searches daily or weekly and compare runs.

### FAQ

**Do I get every listing of a large city?**
Yes. Searches above 1,800 listings are split by price automatically. See [Tested results](#tested-results).

**Am I charged if a run is blocked or fails?**
You are charged per listing saved. If a run delivers nothing, there is nothing to charge for listings.

**What happens if Idealista blocks a session in the middle of a run?**
The Actor detects it, switches to a new residential IP and continues from the same page. Results are saved as they arrive, so nothing collected is lost.

**Can I track new listings and price changes every day?**
Schedule the Actor with the same URLs and compare the runs by `id`. A built-in "changes only" mode is planned.

**Does it open each listing's detail page?**
Not in this version. See [Speed and limits](#speed-and-limits).

**Can I scrape a whole country?**
Add one URL per province or city. A single URL for a very large area works too, but takes long; raise the timeout.

**Why is `bedrooms` empty in Italy?**
The Italian site shows the total number of rooms, not bedrooms. Use `rooms`.

**Is it legal?**
The Actor collects publicly available listing data only, without logging in and without personal contact details. You are responsible for how you use the data; check Idealista's terms and the laws that apply to you, such as the GDPR.

### Support

Found a problem or need a field? Open an issue in the **Issues** tab and include the URL you used and the run link.

# Actor input Schema

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

Search result pages copied from your browser on idealista.com (Spain), idealista.pt (Portugal), idealista.it (Italy) or idealista.fr (France). Sale or rent, with any filters you like (price, rooms, lift...). Large searches are split automatically so you get every listing, not just the first 1,800.

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

Stop after this many listings in total (across all URLs). 0 = no limit.

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

Residential proxies in the country of each search are used by default. Changing this is not recommended.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.idealista.com/venta-viviendas/segovia-segovia/"
    }
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "startUrls": [
        {
            "url": "https://www.idealista.com/venta-viviendas/segovia-segovia/"
        }
    ],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tugascrapper/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 = {
    "startUrls": [{ "url": "https://www.idealista.com/venta-viviendas/segovia-segovia/" }],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("tugascrapper/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 '{
  "startUrls": [
    {
      "url": "https://www.idealista.com/venta-viviendas/segovia-segovia/"
    }
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call tugascrapper/idealista-scraper --silent --output-dataset

```

## MCP server setup

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