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

Collect Idealista sale and rental property listings across Spain, Italy, Portugal and France as a real estate data API. Export prices, areas, rooms, agencies and photos, with optional addresses, coordinates and property details through the actor's HTTP API, its OpenAPI definition or an MCP server.

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

## Pricing

from $1.50 / 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

Idealista Scraper collects property listings for sale and rent in Spain, Italy, Portugal and France. Export asking prices, surface areas, rooms, photographs and agency names as structured rows, with optional property details for location analysis and comparison across portals.

Use the actor to build a property watchlist, compare asking prices by area, follow the rental market or prepare a dataset for a proptech application. Every row identifies its source and retrieval time. Missing values remain null, so an undisclosed address or an unavailable bathroom count cannot be mistaken for a confirmed value.

### Idealista Scraper input

Start with an Idealista search URL in `startUrls`, or provide `country`, `operation` and `location`. The actor resolves a location through Idealista's own suggestions. This matters because a city name entered as a general text search can return properties elsewhere that merely mention that city. Location suggestions select the actual geographical search instead.

`country` accepts `es`, `it`, `pt` and `fr`. `operation` accepts `sale` or `rent`. The default country is Spain and the default operation is sale. A supplied URL chooses its own portal and operation, so several country URLs can be included together. URL entries may be plain strings or objects with a `url` property. Property detail URLs are also accepted and return one listing each.

Use `postalCodes` for geographical postal-code zones in Spain, Italy and France. Portugal does not offer these zones; use a city or a search URL there. A postal code on a row comes only from an explicit postal-code search zone. It is never copied from an agency's office address.

`minPrice`, `maxPrice`, `minSize` and `maxSize` filter searches generated from locations and postal codes. Prices are in euros and rental prices are monthly. Sizes are square metres. Minimum values must not exceed maximum values. `sortBy` accepts `relevance`, `newest`, `price_asc` and `price_desc`. In Portugal, newest follows the portal's recently updated ordering. Existing filters and ordering in a supplied search URL are preserved.

`maxItems` limits the number of unique listings over the entire run, including all searches. Its default is 100, with a supported range of 1 to 5,000. `includeDetails` requests property details; `fetchDetails` is an alternative input name. The actor removes duplicate listing identifiers across pages and searches before delivery.

An example input using a search that was actually collected:

```json
{
  "startUrls": ["https://www.idealista.com/venta-viviendas/madrid-madrid/"],
  "maxItems": 100,
  "includeDetails": false
}
```

### Output and field meanings

The default dataset contains one row per unique delivered listing. Core fields include `listing_id`, `url`, `listing_type`, `price`, `currency`, `living_area`, `living_area_unit`, `bedrooms`, `rooms`, `broker`, `image_url`, `country_code`, `source` and `fetched_at`. Extra fields describe previous asking prices, advertised reductions, the floor, lift availability, parking, tags and photographs.

For a concrete recorded property, listing `110822401` was offered for EUR 680,000 with 85 m², three bedrooms and a previous price of EUR 695,000. Its calculated `price_per_m2` was 8,000. This is a historical example collected on 10 November 2026, rather than a promise about the property's current availability or price.

Room labels have different meanings by country. Spanish `hab.` and Portuguese `T3` indicate bedrooms. Italian `locali` means rooms and is delivered in `rooms`, while `bedrooms` remains null. French listings may supply both pieces and chambres, which populate rooms and bedrooms separately. Surface area follows the portal: built area for Spain and France, commercial area for Italy and gross area for Portugal. Compare properties with these differences in mind.

`price_per_m2` is calculated as asking price divided by displayed surface area, rounded to two decimals. `price_period` is `month` for rentals and null for sale listings. Source descriptions and property types keep their original language. Country codes follow the source location identifiers; the French portal can also advertise properties in neighbouring countries.

### Optional property details

Enable `includeDetails` for address components, map coordinates, bathrooms, construction year, full descriptions, feature lists, energy information and the full photo gallery when available. Floor plans have their own `floorplan_urls`. `detail_fetched` confirms that the property page was successfully retrieved and parsed.

Hidden addresses remain approximate. `coordinate_precision` and `coordinate_radius_m` describe the source map's precision. A map coordinate does not establish an exact street number. Address components come from the property page, while a search title stays in `title`. These distinctions help when joining a property to another portal: use address components and coordinates together and review approximate matches.

The actor delivers professional agency and developer names. Private advertiser names and telephone numbers are not included. Unavailable detail information does not discard an otherwise valid search row. The run output reports warnings and marks an incomplete requested phase with `partial`.

### Pagination and coverage

Idealista exposes at most 60 pages, usually 1,800 listings, for an individual search. A higher total displayed by the portal does not make every result accessible through that search. Split a large city by smaller geographical areas or price bands to improve coverage. The actor does not automatically partition searches in this version.

Large collections continue in chunks. The Apify actor follows continuation automatically within its run budget. Direct API users repeat the same input with the returned `next_cursor` until it becomes null. Tokens expire after 24 hours. Run output includes per-search counts and warnings, allowing you to distinguish a complete search from a partial collection.

### Idealista Scraper compared with the alternatives

Four ways to get Idealista data exist today, and they differ on coverage, upkeep and price.

**Your own script.** Tutorials that parse one search page work until the markup changes, and they
usually cover one country and one operation. Maintaining four portals, four URL schemes and four
pagination variants is a permanent job. This actor holds that maintenance: one input shape for
Spain, Italy, Portugal and France, sale and rent alike, with the per-country differences already
translated into documented output fields.

**A hosted scraping API.** Good for ad-hoc single pages, but you pay per request, you still
assemble pages into rows yourself, and postal-code zones, sort orders and property details become
extra calls. Here they are inputs: `postalCodes`, `sortBy` and `includeDetails`.

**Another Idealista actor on this Store.** Several exist and most of them serve Spain alone or
trade detail depth for a low price per thousand results. Compare them on the three things that
decide a dataset: which countries and operations are covered, whether sale and rent arrive in the
same schema, and whether a run tells you where it stopped. This actor covers four countries and
both operations in one schema, records previous asking prices and advertised reductions on the
row, and reports per-search counts plus `partial` when a run hits its limit.

**Another portal entirely.** Idealista is not the whole southern European market. Where a Spanish
comparison matters, our Fotocasa Scraper collects the same property concepts from a second portal,
and the rows are built to join on address and postcode so a price difference per listing is
measurable rather than guessed.

### Pricing

The current event rates are shown in the Apify pricing panel. The event mapping is explicit: `run_start` counts one run, `listing` counts delivered unique dataset rows and `listing_detail` counts delivered rows whose property detail was successfully collected. A failed detail request does not count as a successful detail. An empty result creates no listing or detail charges; an applicable run-start event still follows the listed run pricing. The non-paying account limit is ten delivered rows per run and does not imply those rows are uncharged.

### FAQ

#### Can I get the original publication date or days on market?

The web source provides a last-update message, not a reliable first-publication date. `last_updated_text` and `days_since_update` describe that update. They are never presented as days on market. Track repeated snapshots yourself if you need observed first-seen dates.

#### Why is the postcode or address missing?

Search cards do not supply a property's postal code or full address. A postal-code zone supplies its own postcode, and optional property details supply the published address components. Hidden or absent source values remain null.

#### Can I collect both sales and rentals across countries?

Yes. Supply the relevant search URLs together, or run generated searches for each country and operation. `listing_type` distinguishes sale from rent and `country_code` preserves the property's source location.

#### What happens if a listing disappears?

A missing property URL is skipped. If details disappear after the search card was collected, the actor preserves that card, leaves `detail_fetched` false and reports the unavailable detail. Counts and row events reflect the rows actually delivered.

#### Is there an official Idealista API, and how does this compare?

Idealista runs its own partner programme with an official API for registered integrations. The
Idealista Scraper does not use it: it reads the public search and property pages, so no
application, approval or API key is involved, and it returns the listing fields a buyer sees,
including agency names and previous asking prices.

#### Can I call the Idealista Scraper from my own code, outside this Store page?

Yes. The same input shape works over the actor's HTTP API, its published OpenAPI definition and
its MCP server, and each response carries the delivered rows plus a `next_cursor` you pass back
until it is null for collection beyond a single run budget. Datasets, CSV and JSON export remain
available in the standard Apify run storage.

#### Is there a real estate data API for Spain, Italy, Portugal and France?

Yes. Idealista Scraper is a real estate data API for southern Europe: the actor's HTTP API, its
published OpenAPI definition and its MCP server all take the same input as a Store run and return
the same rows, so a property data API call and a manual run never disagree on fields. Coverage is
the difference to keep in mind when comparing: many property data APIs answer for the United
States and charge per record, while this one covers four European portals and bills delivered
rows, with previous asking prices and agency names on the row itself.

#### Can I scrape Idealista with Python?

Yes. Web scraping Idealista with Python does not have to mean parsing the portals yourself: the
official `apify-client` Python package starts this actor, passes the input shown above and reads
the dataset rows back into a list of dictionaries, and the same input works over the actor's HTTP
API if you prefer a plain request. Anything you would otherwise parse in Python — four portals,
four pagination schemes, four room conventions — arrives already shaped as rows, so your Python
code spends its time on analysis instead of on maintenance. A per-property detail page costs one
`includeDetails` request and is only counted when the detail was actually delivered.

#### Is there a real estate database for Spain, Italy, Portugal and France?

Yes, and it starts from the same rows. Run the actor for a market and the dataset becomes a
real estate database you can filter locally — asking prices, areas, rooms, agencies and previous
asking prices — or query the identical rows live over the actor's HTTP API, which is what a
Spanish search for an api inmobiliaria (a real estate API) is asking for. Spanish, Italian,
Portuguese and French searches land in one schema, so one database covers four portals instead
of one country per vendor, and the CSV and JSON export of the run storage gives analysts a file
without a second tool.

# Actor input Schema

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

Idealista search or property URLs (HTTPS, www.idealista.com/.it/.pt/.fr); strings or objects with url. Existing filters are preserved.

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

Country for location and postal-code searches; explicit URLs select their own country.

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

Buy or rent when resolving a location or postal code.

## `location` (type: `string`):

City, district or location resolved through Idealista location suggestions, for example Madrid or Milano.

## `postalCodes` (type: `array`):

Postal-code zones in Spain, Italy or France. Portugal does not offer this search.

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

Order for generated searches. Portuguese newest means recently updated. Explicit URLs retain their order.

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

Maximum unique rows over the entire run, including all cursor continuations. Each search exposes at most 1800 listings.

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

Fetch full descriptions, map coordinates, address components, bathrooms, gallery and last-update text. Missing details preserve the search row and produce warnings.

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

Alias for includeDetails; includeDetails wins when both are explicitly provided.

## `cursor` (type: `string`):

Signed next_cursor from the previous response. Repeat the same search input and maxItems. Expires after 24 hours.

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

Minimum asking price, or monthly rent, in EUR. Applies to generated searches only.

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

Maximum asking price, or monthly rent, in EUR. Applies to generated searches only.

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

Minimum displayed surface area in square metres. Applies to generated searches only.

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

Maximum displayed surface area in square metres. Applies to generated searches only.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.idealista.com/venta-viviendas/madrid-madrid/"
  ],
  "country": "es",
  "operation": "sale",
  "sortBy": "relevance",
  "maxItems": 100
}
```

# Actor output Schema

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

One row per unique delivered listing.

## `output` (type: `string`):

Run counts, continuation and warnings.

# 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/"
    ]
};

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

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

```

## MCP server setup

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