# Idealista Scraper (`axlymxp/idealista-scraper`) Actor

Scrape Idealista property listings across Spain, Italy, and Portugal. Search any location, filter by operation (sale/rent) and property type, and export full data — price, size, rooms, address, GPS coordinates, images, and agency contact. Pay only for the results you get.

- **URL**: https://apify.com/axlymxp/idealista-scraper.md
- **Developed by:** [axly](https://apify.com/axlymxp) (community)
- **Categories:** Real estate, Lead generation
- **Stats:** 279 total users, 8 monthly users, 100.0% runs succeeded, 8 bookmarks
- **User rating**: 4.89 out of 5 stars

## Pricing

$1.00 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Idealista Property Scraper

An [Apify](https://apify.com) actor for scraping real estate listings from [Idealista.com](https://www.idealista.com/), Spain's leading real estate platform. This scraper extracts detailed property information including prices, features, locations, and more.

### 🚀 Features

- Scrapes property listings from Idealista.com
- Extracts comprehensive property details:
  - Basic information (price, size, rooms, bathrooms)
  - Location details (address, neighborhood, city, province)
  - Property features and amenities
  - Images and descriptions
  - Energy certification
  - Contact information
- Handles pagination automatically
- Respects website's robots.txt and implements polite scraping
- Stores results in structured format
- Supports various search filters

### 📋 Input Parameters

The actor accepts the following input parameters:

```json
{
    "country": "es",
    "locationName": "Callosa de Segura, Alicante",
    "distance": 0,
    "locationId": "0-EU-ES-03-05-015-049",
    "propertyType": "homes",
    "sort": "desc",
    "operation": "sale",
    "order": "weigh",
    "locale": "en",
    "quality": "high",
    "gallery": true,
    "maxItems": 30,
    "numPage": 1
}
```

| Parameter | Type | Description | Default |
|-----------|------|-------------|---------|
| `country` | String | Country code to search in (es: Spain, it: Italy, pt: Portugal) | `es` |
| `locationName` | String | Name of the location to search in | `Callosa de Segura, Alicante` |
| `locationId` | String | Idealista location ID | `0-EU-ES-03-05-015-049` |
| `propertyType` | String | Type of property to search for:<br>- newDevelopments: New Developments<br>- homes: Homes<br>- offices: Offices<br>- premises: Commercial Property<br>- transfers: Transfers<br>- garages: Garages<br>- lands: Land<br>- storageRooms: Storage Rooms<br>- buildings: Buildings | `homes` |
| `sort` | String | Sort direction for results (asc/desc) | `desc` |
| `operation` | String | Type of operation (sale/rent) | `sale` |
| `order` | String | Field to order results by:<br>- weigh: Relevance<br>- price: Price<br>- publicationDate: Publication Date<br>- priceDown: Price Reduction<br>- ratioeurm2: Price per m²<br>- size: Size | `weigh` |
| `locale` | String | Language for results (en/es/it/pt) | `en` |
| `quality` | String | Quality of images (high/medium/low) | `high` |
| `gallery` | Boolean | Whether to include image gallery | `true` |
| `maxItems` | Integer | Maximum number of items per page (1-50) | `30` |
| `numPage` | Integer | Page number to start scraping from | `1` |

**Required Parameters:**

- `country`
- `propertyType`
- `operation`
- `locationName`
- `locationId`

**Note:** For locationName ane locationId , use actor [Idealista Location Scraper](https://apify.com/axlymxp/idealista-location-scraper)

**Note:** The actor uses Apify's proxy infrastructure by default to avoid IP-based blocking. You don't need to configure proxy settings manually.

### 📊 Output Dataset

The actor stores results in a dataset with the following schema:

```json
{
    "propertyCode": "String - Unique property identifier",
    "url": "String - Property listing URL",
    "thumbnail": "String - Main property image URL",
    "numPhotos": "Number - Total number of photos",
    "price": "Number - Property price in euros",
    "priceInfo": {
        "price": {
            "amount": "Number - Price amount",
            "currencySuffix": "String - Currency symbol",
            "priceDropInfo": {
                "formerPrice": "Number - Previous price",
                "priceDropValue": "Number - Price reduction amount",
                "priceDropPercentage": "Number - Percentage of price reduction"
            }
        }
    },
    "propertyType": "String - Type of property (e.g., countryHouse)",
    "operation": "String - Sale or rent",
    "size": "Number - Size in square meters",
    "rooms": "Number - Number of rooms",
    "bathrooms": "Number - Number of bathrooms",
    "address": "String - Street address",
    "province": "String - Province name",
    "municipality": "String - Municipality name",
    "country": "String - Country code",
    "locationId": "String - Idealista location identifier",
    "latitude": "Number - Geographic latitude",
    "longitude": "Number - Geographic longitude",
    "description": "String - Full property description",
    "multimedia": {
        "images": [
            {
                "url": "String - Image URL",
                "tag": "String - Image type (e.g., bedroom, bathroom, livingRoom)"
            }
        ]
    },
    "contactInfo": {
        "phone1": {
            "phoneNumber": "String - Contact phone number",
            "formattedPhone": "String - Formatted phone number",
            "prefix": "String - Country prefix",
            "phoneNumberForMobileDialing": "String - Full international number",
            "nationalNumber": "Boolean - Is national number"
        },
        "contactName": "String - Contact person name",
        "userType": "String - Type of seller (private/professional)",
        "contactMethod": "String - Preferred contact method"
    },
    "features": {
        "hasSwimmingPool": "Boolean - Has swimming pool",
        "hasTerrace": "Boolean - Has terrace",
        "hasAirConditioning": "Boolean - Has air conditioning",
        "hasBoxRoom": "Boolean - Has storage room",
        "hasGarden": "Boolean - Has garden"
    },
    "parkingSpace": {
        "hasParkingSpace": "Boolean - Has parking",
        "isParkingSpaceIncludedInPrice": "Boolean - Parking included in price"
    },
    "priceByArea": "Number - Price per square meter",
    "detailedType": {
        "typology": "String - Main property type",
        "subTypology": "String - Specific property type"
    },
    "status": "String - Property condition",
    "hasVideo": "Boolean - Has video tour",
    "has3DTour": "Boolean - Has 3D tour",
    "has360": "Boolean - Has 360° view",
    "labels": [
        {
            "name": "String - Label identifier",
            "text": "String - Label display text"
        }
    ]
}
```

**Note:** Some fields may be null or missing depending on the property listing. The schema above represents all possible fields that can be returned by the scraper.

Key features of the output:

- Detailed price information including price history
- Comprehensive property features and amenities
- Complete multimedia content (images with tags)
- Precise location data including coordinates
- Contact information for the seller
- Property status and special features (video, 3D tour, etc.)

### Pagination and Search Results

- Apply your search parameters to search, and get the first page (numPage = 1)
- Check the total number of results from the key-value store
- Increment numPage to 2, and maintain the same search parameters
- Continue this process until you have retrieved all available results

# Actor input Schema

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

Country code (es: Spain, it: Italy, pt: Portugal)

## `locationName` (type: `string`):

Name of the location to search in

## `locationId` (type: `string`):

Idealista location ID

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

Type of property to search for

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

Sort direction for results

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

Type of operation

## `order` (type: `string`):

Field to order results by

## `locale` (type: `string`):

Language for results

## `quality` (type: `string`):

Quality of images

## `gallery` (type: `boolean`):

Whether to include image gallery

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

Maximum number of items per page

## `numPage` (type: `integer`):

Page number to start scraping from

## Actor input object example

```json
{
  "country": "es",
  "locationName": "Callosa de Segura, Alicante",
  "locationId": "0-EU-ES-03-05-015-049",
  "propertyType": "homes",
  "sort": "desc",
  "operation": "sale",
  "order": "weigh",
  "locale": "en",
  "quality": "high",
  "gallery": true,
  "maxItems": 30,
  "numPage": 1
}
```

# 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 = {};

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

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

```

## MCP server setup

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