# Idealista (`happyendpoint/idealista-scraper-by-url`) Actor

Scraped Idealista Listing by URL. Extract real estate data from Spain, Italy, and Portugal on idealista.com, including pricing, property features, and contact information. Scrape listings for residential, office, and commercial properties available for sale or rent.

- **URL**: https://apify.com/happyendpoint/idealista-scraper-by-url.md
- **Developed by:** [Happy Endpoint](https://apify.com/happyendpoint) (community)
- **Categories:** Real estate, Integrations, Developer tools
- **Stats:** 2 total users, 1 monthly users, 94.4% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Scraper by URL

### **No Proxies Needed**

---

### 🌟 Overview

The **Idealista Scraper by URL** is a lightning-fast, production-ready Apify actor designed to extract property listings from Idealista.com / .es / .it / .pt. 

Instead of dealing with complex geo-targeting, IP rotation, and anti-scraping blocks, you can simply paste any **public Idealista search URL** (from your browser address bar, a saved search, or email alert) and get clean structured JSON data back instantly.

### 🚀 Key Features

* **No Proxies Needed**: The actor utilizes a premium built-in proxy system that handles rotating IPs, browser mimicking, and geo-unlocking natively.
* **Multi-Country Support**: Auto-detects the region from the URL host (works seamlessly with Spain `.es` / `.com`, Italy `.it`, and Portugal `.pt`).
* **Auto-Pagination**: Crawls through multiple result pages sequentially up to your customized limit.
* **Description Translations**: Translates listing descriptions into your target language (default: `en`).
* **Rich Dataset Export**: Downloads comprehensive details including prices, sizes, rooms, bathrooms, address, coordinates, and descriptions.

---

### 📥 Input Parameters

The actor accepts the following input parameters:

| Field | Type | Required | Default | Description |
| :--- | :--- | :--- | :--- | :--- |
| `url` | String | **Yes** | — | A public Idealista search URL (e.g., `https://www.idealista.com/en/venta-viviendas/madrid-madrid/`). |
| `country` | Select | No | `auto` | Override auto-detection. Options: `Auto-detect`, `es` (Spain), `it` (Italy), `pt` (Portugal). |
| `maxPages` | Number | No | `5` | Maximum number of result pages to crawl and paginate through. |
| `result_count` | Number | No | `30` | Number of listings to fetch per page (1 to 50). |
| `language` | String | No | `en` | Response language code for translating property descriptions. |

#### Example Input JSON

```json
{
    "country": "es",
    "language": "en",
    "maxPages": 1,
    "result_count": 30,
    "url": "https://www.idealista.com/en/venta-viviendas/madrid-madrid/"
}
````

***

### 📤 Output Structure

Each listing in the dataset contains clean, parsed fields:

```json
{
  "propertyCode": "106387165",
  "price": 3490000,
  "propertyType": "duplex",
  "operation": "sale",
  "size": 263,
  "rooms": 4,
  "bathrooms": 5,
  "address": "Duplex in Calle de Alcalá, Goya, Madrid",
  "province": "Madrid",
  "municipality": "Madrid",
  "country": "es",
  "url": "https://www.idealista.com/inmueble/106387165/",
  "description": "Top-floor duplex in the Salamanca district..."
}
```

***

### 💡 Pro Tips & Usage

1. **How to get the URL**: Perform any search on Idealista.com, apply your filters (price, bedrooms, location, property type), and copy the final URL from your browser's address bar. Paste it directly into the actor's inputs!
2. **Speed & Scale**: The actor fetches pages sequentially to respect source limits while completing runs in seconds. Adjust `maxPages` according to the depth of data you need.
3. **Data Export**: Once the scraping job is complete, you can download your dataset as **JSON**, **CSV**, **Excel**, or connect it directly to **Google Sheets**, **Webhooks**, or other workflow automations.

***

### 🔗 Related Actors

If you need more than property scraping, check out the other actors in this series:

- [**Bayut Property Scraper**](https://apify.com/happyendpoint/bayut-property-scraper) — scrape property listings from Bayut with filters for location, price, type, and more
- [**Bayut Agent Finder**](https://apify.com/happyendpoint/bayut-agents-scraper) — full agent workflow on Bayut: location search → agent search → agent details → agent's property listings
- [**Bayut & PropertyFinder Agent Search**](https://apify.com/happyendpoint/bayut-propertyfinder-agent-search) — find and extract agent profiles from both major UAE portals.

***

### 📞 Contact & Custom Solutions

Need something specific? We provide tailored web scraping solutions and large-scale datasets.

Contact us for **custom data scraping** or to **purchase UAE real estate historical data**.

- **Website:** [happyendpoint.com](https://happyendpoint.com)
- **Email:** <happyendpointhq@gmail.com>

# Actor input Schema

## `url` (type: `string`):

Paste a public Idealista search results URL. The region is automatically detected from the domain, but you can override it using the 'Country' filter below.

Examples:
· `https://www.idealista.com/en/venta-viviendas/madrid-madrid/`
· `https://www.idealista.it/en/affitto-case/milano-milano/`
· `https://www.idealista.pt/en/comprar-casas/lisboa/`

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

Override the country auto-detected from the URL host. By default, the actor automatically detects the country from the domain.

## `maxPages` (type: `integer`):

The maximum number of result pages to scrape. The scraper will auto-paginate starting from page 1 up to this page limit or until the last page is reached. Each page contains up to 50 listings.

## `result_count` (type: `integer`):

Number of results to fetch per page. Valid range is 1 to 50. Default is 30.

## `language` (type: `string`):

Response language code for translation of listing descriptions (e.g. `en`, `es`, `it`, `pt`, `fr`, `de`).

## Actor input object example

```json
{
  "country": "auto",
  "maxPages": 5,
  "result_count": 30,
  "language": "en"
}
```

# Actor output Schema

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

// Run the Actor and wait for it to finish
const run = await client.actor("happyendpoint/idealista-scraper-by-url").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("happyendpoint/idealista-scraper-by-url").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 happyendpoint/idealista-scraper-by-url --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=happyendpoint/idealista-scraper-by-url",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Idealista",
        "description": "Scraped Idealista Listing by URL. Extract real estate data from Spain, Italy, and Portugal on idealista.com, including pricing, property features, and contact information. Scrape listings for residential, office, and commercial properties available for sale or rent.",
        "version": "0.0",
        "x-build-id": "ZPiflp7Q8QLcnpukO"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/happyendpoint~idealista-scraper-by-url/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-happyendpoint-idealista-scraper-by-url",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/happyendpoint~idealista-scraper-by-url/runs": {
            "post": {
                "operationId": "runs-sync-happyendpoint-idealista-scraper-by-url",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/happyendpoint~idealista-scraper-by-url/run-sync": {
            "post": {
                "operationId": "run-sync-happyendpoint-idealista-scraper-by-url",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "url": {
                        "title": "Idealista Search URL",
                        "type": "string",
                        "description": "Paste a public Idealista search results URL. The region is automatically detected from the domain, but you can override it using the 'Country' filter below.\n\nExamples:\n· `https://www.idealista.com/en/venta-viviendas/madrid-madrid/`\n· `https://www.idealista.it/en/affitto-case/milano-milano/`\n· `https://www.idealista.pt/en/comprar-casas/lisboa/`"
                    },
                    "country": {
                        "title": "Country (Override)",
                        "enum": [
                            "auto",
                            "es",
                            "it",
                            "pt"
                        ],
                        "type": "string",
                        "description": "Override the country auto-detected from the URL host. By default, the actor automatically detects the country from the domain.",
                        "default": "auto"
                    },
                    "maxPages": {
                        "title": "Maximum Pages to Scrape",
                        "minimum": 1,
                        "type": "integer",
                        "description": "The maximum number of result pages to scrape. The scraper will auto-paginate starting from page 1 up to this page limit or until the last page is reached. Each page contains up to 50 listings.",
                        "default": 5
                    },
                    "result_count": {
                        "title": "Results Per Page",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Number of results to fetch per page. Valid range is 1 to 50. Default is 30.",
                        "default": 30
                    },
                    "language": {
                        "title": "Language for Descriptions",
                        "type": "string",
                        "description": "Response language code for translation of listing descriptions (e.g. `en`, `es`, `it`, `pt`, `fr`, `de`).",
                        "default": "en"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
