# Idealista Property Search Scraper (`thescrappa/idealista-search-scraper`) Actor

Search Idealista listings with prices, size, rooms, photos, location, and links. Batch location searches and page through property results across supported European markets.

- **URL**: https://apify.com/thescrappa/idealista-search-scraper.md
- **Developed by:** [Scrappa](https://apify.com/thescrappa) (community)
- **Categories:** Real estate
- **Stats:** 2 total users, 1 monthly users, 92.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.20 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Property Search Scraper

Search Idealista by location, operation, and property type. Collect listing IDs, prices, sizes, rooms, locations, coordinates, photo totals, and links across pages.

### What data can you extract?

| Field | Type | Description |
| --- | --- | --- |
| `propertyCode` | String | Unique Idealista code identifying this property listing. |
| `thumbnail` | String | Preview image URL for the Idealista property. |
| `numPhotos` | Integer | Number of property photos attached to the listing. |
| `price` | Integer | Advertised sale or rent price in the listing currency. |
| `propertyType` | String | Idealista property category, such as a home, room, or office. |
| `operation` | String | Whether the listing advertises a sale or rental. |
| `size` | Integer | Advertised property area in square metres when reported. |
| `rooms` | Integer | Number of rooms reported in the property listing. |
| `bathrooms` | Integer | Number of bathrooms reported in the property listing. |
| `municipality` | String | Municipality where Idealista places the property. |
| `province` | String | Province containing the property listing. |
| `country` | String | Country associated with this Idealista result. |
| `locationId` | String | Idealista location code for the listing area. |
| `latitude` | Number | Latitude of the property location in decimal degrees. |
| `longitude` | Number | Longitude of the property location in decimal degrees. |
| `url` | String | Public Idealista page URL for this property. |
| `description` | String | Listing summary describing the property and its features. |
| `input_location_id` | String | Idealista location code searched for this result set. |
| `scraped_at` | String | UTC date and time when this property listing was collected. |

### Use cases

- Property investors can compare listing prices, areas, and room counts by location.
- Housing analysts can track supply across Idealista markets.
- Real-estate teams can collect listing links and photos for property shortlists.

### How to use

1. Add a location ID to `location_ids` for each area.
2. Choose country, operation, and property type, then add filters.
3. Set `maxPages` and `maxResults`, then export listing rows.

```json
{
  "location_ids": [
    {
      "location_id": "0-EU-ES-28-07-001-079"
    }
  ],
  "country": "es",
  "operation": "sale",
  "property_type": "homes",
  "maxResults": 20,
  "maxPages": 2
}
```

### Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `location_ids` | Array\<object> | Yes | Idealista location IDs to search. |
| `location_ids[].location_id` | string | Yes per entry | Idealista location id such as 0-EU-ES-28. |
| `location_ids[].country` | string | No | Market: es, it, pt, or fr. Default es. |
| `location_ids[].operation` | string | No | sale or rent. Room stock uses bedrooms + rent. |
| `location_ids[].property_type` | string | No | homes, newDevelopments, bedrooms, offices, premises, transfers, buildings, storageRooms, garages, vacationRentals, luxury, or lands. |
| `location_ids[].center` | string | No | lat,lon for near-me search. |
| `location_ids[].distance` | integer | No | Radius in meters when using center. |
| `location_ids[].max_items` | integer | No | Page size honored by origin, 1-5. |
| `location_ids[].num_page` | integer | No | 1-based page number. |
| `location_ids[].order` | string | No | Sort direction or ordering mode for property results. |
| `location_ids[].sort` | string | No | Listing sort mode, such as price or publication date. |
| `location_ids[].quality` | string | No | Filter results by listing quality when supported. |
| `location_ids[].gallery` | boolean | No | Filter for listings that include gallery photos. |
| `location_ids[].locale` | string | No | Language and regional formatting for the listing search. |
| `location_ids[].microsite_short_name` | string | No | Anonymous agency stock filter, for example clikalia. |
| `location_ids[].chalet` | boolean | No | Apply-filter key. Send true on homes. |
| `location_ids[].current_occupation_type` | string | No | free, bareOwnership, tenanted, illegallyOccupied, or viager. |
| `location_ids[].auction` | string | No | IT only: onlyAuctions or excludeAuctions. |
| `location_ids[].home_type` | string | No | Idealista home subtype, such as an apartment or house. |
| `location_ids[].bank_offer` | string | No | Filter listings associated with a bank offer. |
| `location_ids[].advertiser_type` | string | No | Filter results by advertiser category. |
| `location_ids[].min_price` | integer | No | Minimum asking price for a property listing. |
| `location_ids[].max_price` | integer | No | Maximum asking price for a property listing. |
| `location_ids[].min_size` | integer | No | Minimum property area in square metres. |
| `location_ids[].max_size` | integer | No | Maximum property area in square metres. |
| `location_ids[].min_rooms` | integer | No | Minimum room count for a property listing. |
| `location_ids[].max_rooms` | integer | No | Maximum room count for a property listing. |
| `location_ids[].shape` | string | No | Geographic search shape used to restrict Idealista results. |
| `country` | string | Yes | Market: es, it, pt, or fr. Default es. |
| `operation` | string | Yes | sale or rent. Room stock uses bedrooms + rent. |
| `property_type` | string | Yes | homes, newDevelopments, bedrooms, offices, premises, transfers, buildings, storageRooms, garages, vacationRentals, luxury, or lands. |
| `center` | string | No | lat,lon for near-me search. |
| `distance` | integer | No | Radius in meters when using center. |
| `max_items` | integer | No | Page size honored by origin, 1-5. |
| `num_page` | integer | No | 1-based page number. |
| `order` | string | No | Sort direction or ordering mode for property results. |
| `sort` | string | No | Listing sort mode, such as price or publication date. |
| `quality` | string | No | Filter results by listing quality when supported. |
| `gallery` | boolean | No | Filter for listings that include gallery photos. |
| `locale` | string | No | Language and regional formatting for the listing search. |
| `microsite_short_name` | string | No | Anonymous agency stock filter, for example clikalia. |
| `chalet` | boolean | No | Apply-filter key. Send true on homes. |
| `current_occupation_type` | string | No | free, bareOwnership, tenanted, illegallyOccupied, or viager. |
| `auction` | string | No | IT only: onlyAuctions or excludeAuctions. |
| `home_type` | string | No | Idealista home subtype, such as an apartment or house. |
| `bank_offer` | string | No | Filter listings associated with a bank offer. |
| `advertiser_type` | string | No | Filter results by advertiser category. |
| `min_price` | integer | No | Minimum asking price for a property listing. |
| `max_price` | integer | No | Maximum asking price for a property listing. |
| `min_size` | integer | No | Minimum property area in square metres. |
| `max_size` | integer | No | Maximum property area in square metres. |
| `min_rooms` | integer | No | Minimum room count for a property listing. |
| `max_rooms` | integer | No | Maximum room count for a property listing. |
| `shape` | string | No | Geographic search shape used to restrict Idealista results. |
| `maxResults` | integer | No | Maximum dataset items to save across this entire run. |
| `maxPages` | integer | No | Maximum pages to request for each batch entry. |

### Output example

```json
{
  "propertyCode": "10000001",
  "thumbnail": "https://images.unsplash.com/photo-1600607687939-ce8a6c25118c",
  "numPhotos": 8,
  "price": 250000,
  "propertyType": "flat",
  "operation": "sale",
  "size": 75,
  "rooms": 3,
  "bathrooms": 1,
  "municipality": "Madrid",
  "province": "Madrid",
  "country": "Spain",
  "locationId": "0-EU-ES-28",
  "latitude": 40.4,
  "longitude": -3.7,
  "url": "https://www.idealista.com/en/inmueble/10000001/",
  "description": "Bright three-room apartment with a balcony near public transport.",
  "input_location_id": "0-EU-ES-28-07-001-079",
  "scraped_at": "2026-10-01T12:00:00Z"
}
```

### Pricing

$0.30 per 1,000 results. Apify saves one dataset item per result and applies the Actor’s per-result price to saved items.

Pagination follows the source response. Set **maxPages** per batch entry and **maxResults** across the run.

### FAQ

#### Is scraping this information legal?

Rules depend on the source, location, data type, and intended use. Check applicable laws and source terms, and make sure your workflow follows privacy and data protection requirements.

#### What limits apply?

Submit up to 100 batch entries per run. Use **maxResults** to cap saved items and **maxPages** to limit pages for each entry. Results also depend on source availability and your Scrappa API plan.

#### Can I start runs through the Apify API?

Yes. Send a POST request to `https://api.apify.com/v2/acts/thescrappa~idealista-search-scraper/runs` with your Actor input, or use an Apify client library. Read the output from the run dataset.

#### Can I connect the results to other tools?

Yes. Apify integrations and APIs can pass dataset results to Make, Zapier, n8n, Google Sheets, and other data workflows.

#### What happens when one input fails?

The Actor logs a short source error and continues with the remaining entries. Transient rate limits and gateway errors are retried; if every entry fails, the run reports an error.

#### How does pagination stop?

Collection stops when the source reports no next page, the reported page does not advance, or your configured limits are reached.

### Related Scrappa Actors

- [ImmobilienScout24 Search Scraper](https://apify.com/thescrappa/immobilienscout24-search-scraper)
- [Immowelt Property Search Scraper](https://apify.com/thescrappa/immowelt-property-search-scraper)
- [Redfin Property Search Scraper](https://apify.com/thescrappa/redfin-property-search-scraper)

# Actor input Schema

## `location_ids` (type: `array`):

Idealista location IDs to search.

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

Market: es, it, pt, or fr. Default es.

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

sale or rent. Room stock uses bedrooms + rent.

## `property_type` (type: `string`):

homes, newDevelopments, bedrooms, offices, premises, transfers, buildings, storageRooms, garages, vacationRentals, luxury, or lands.

## `center` (type: `string`):

lat,lon for near-me search.

## `distance` (type: `integer`):

Radius in meters when using center.

## `max_items` (type: `integer`):

Page size honored by origin, 1-5.

## `num_page` (type: `integer`):

1-based page number.

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

Sort direction or ordering mode for property results.

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

Listing sort mode, such as price or publication date.

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

Filter results by listing quality when supported.

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

Filter for listings that include gallery photos.

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

Language and regional formatting for the listing search.

## `microsite_short_name` (type: `string`):

Anonymous agency stock filter, for example clikalia.

## `chalet` (type: `boolean`):

Apply-filter key. Send true on homes.

## `current_occupation_type` (type: `string`):

free, bareOwnership, tenanted, illegallyOccupied, or viager.

## `auction` (type: `string`):

IT only: onlyAuctions or excludeAuctions.

## `home_type` (type: `string`):

Idealista home subtype, such as an apartment or house.

## `bank_offer` (type: `string`):

Filter listings associated with a bank offer.

## `advertiser_type` (type: `string`):

Filter results by advertiser category.

## `min_price` (type: `integer`):

Minimum asking price for a property listing.

## `max_price` (type: `integer`):

Maximum asking price for a property listing.

## `min_size` (type: `integer`):

Minimum property area in square metres.

## `max_size` (type: `integer`):

Maximum property area in square metres.

## `min_rooms` (type: `integer`):

Minimum room count for a property listing.

## `max_rooms` (type: `integer`):

Maximum room count for a property listing.

## `shape` (type: `string`):

Geographic search shape used to restrict Idealista results.

## `maxResults` (type: `integer`):

Maximum dataset items to save across this entire run.

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

Maximum pages to request for each batch entry.

## Actor input object example

```json
{
  "location_ids": [
    {
      "location_id": "0-EU-ES-28-07-001-079"
    }
  ],
  "country": "es",
  "operation": "sale",
  "property_type": "homes",
  "max_items": 5,
  "num_page": 1,
  "sort": "desc",
  "gallery": false,
  "maxResults": 20,
  "maxPages": 2
}
```

# Actor output Schema

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

All results from this run in the default dataset.

# 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 = {
    "location_ids": [
        {
            "location_id": "0-EU-ES-28-07-001-079"
        }
    ],
    "country": "es",
    "operation": "sale",
    "property_type": "homes",
    "maxResults": 20,
    "maxPages": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrappa/idealista-search-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 = {
    "location_ids": [{ "location_id": "0-EU-ES-28-07-001-079" }],
    "country": "es",
    "operation": "sale",
    "property_type": "homes",
    "maxResults": 20,
    "maxPages": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("thescrappa/idealista-search-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 '{
  "location_ids": [
    {
      "location_id": "0-EU-ES-28-07-001-079"
    }
  ],
  "country": "es",
  "operation": "sale",
  "property_type": "homes",
  "maxResults": 20,
  "maxPages": 2
}' |
apify call thescrappa/idealista-search-scraper --silent --output-dataset

```

## MCP server setup

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