# Idealista Scraper: Property Listings PT, ES, IT, FR (`pintostudio/idealista`) Actor

Scrape Idealista property listings in Portugal, Spain, Italy and France. Search sale and rent listings, get full details, totals, map data, locations and agency info as clean JSON.

- **URL**: https://apify.com/pintostudio/idealista.md
- **Developed by:** [Pinto Studio](https://apify.com/pintostudio) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.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?

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 Actor

The Idealista Scraper Actor is a web scraping tool deployed on the Apify platform that searches
and extracts property listing data from **Idealista** — Portugal, Spain, Italy and France —
through one operation-based input. It also exposes Idealista's own specialized endpoints (map
data, location autocomplete, zone experts, translations, microsites...) that sit behind its
search pages.

### Overview

Idealista doesn't publish an official public API, so this Actor talks to the real site's own
internal `ajax` endpoints — the same ones its search pages call — on every run; there's no
stored database or stale snapshot. The `operation` input field picks which one. `search` (and
its three variants) and `listing-detail` return a normalized, consistent listing shape; every
other operation returns Idealista's own response close to as-is, since it doesn't fit a
normalized listing schema.

### Features

- **Search**: keyword/location search for sale or rent, with price/bedroom/property-type
  filters, auto-paginated up to a configurable page count, one dataset row per listing.
- **Listing detail**: fetch one listing, or many in a single run — photos, description, energy
  rating, advertiser, amenities and more — a failed listing never stops the others.
- **32 operations total**: everything above, plus every map variant, location autocomplete,
  zone experts, breadcrumbs, translations, agency branding and microsite variants of all of the
  above.
- **Resilient by design**: a `search`/`listing-detail` run reports per-page / per-listing
  failures in its output rather than failing the whole run; only a hard input error (bad
  country, missing proxy) fails the run.

### Input Configuration

The `operation` field decides which other fields matter — a field used by an operation you
didn't pick is simply ignored. All operations accept the proxy/advanced fields at the bottom
(**required** for real results — see
[Rate Limits and Best Practices](#rate-limits-and-best-practices)).

#### `operation: "search"` (default) / `"free-text"` / `"zones-of-interest"` / `"microsite-search"`

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `country` | string | `pt` | `pt` | `es` | `it` | `fr` |
| `location` | string | — | City/area name or Idealista location slug |
| `type` | string | `sale` | `sale` | `rent` |
| `propertyType` | string | any | `apartment` | `house` |
| `minPrice` / `maxPrice` | integer | — | Price range, EUR |
| `bedrooms` | integer | — | Bedroom count; `6` means "6 or more" (ignored for `it`/`fr`) |
| `page` | integer | `1` | First page to fetch |
| `maxPagesToScrape` | integer | `1` | How many consecutive pages to fetch and combine, 1-20 |
| `freeText` | string | — | Used by `"free-text"` only |
| `zoneOfInterest` | string | — | Used by `"zones-of-interest"` only |
| `micrositeName` | string | — | Used by `"microsite-search"` only |

#### `operation: "listing-detail"`

| Parameter | Type | Description |
|-----------|------|-------------|
| `country` | string | Default country for any bare numeric id in `listingId`/`listingIds` |
| `listingId` | string | A single listing's numeric id |
| `listingIds` | array of strings | Fetch several listings in one run — each entry is `"country:id"` (e.g. `"pt:35410511"`) or a bare id, falling back to `country` above. Takes priority over `listingId`. |

#### `operation: "totals"` / `"microsite-totals"`

Same parameters as `search` above — returns Idealista's own result-count payload instead of a
listing page.

#### Map operations

`"map"`, `"map-grouped"`, `"map-no-pins"`, `"draw-map"`, `"draw-map-no-pins"`, `"live-map"`,
`"live-map-no-pins"`, `"microsite-map"`: the pin/cluster data behind Idealista's map view, in
Idealista's own shape.

| Parameter | Type | Description |
|-----------|------|-------------|
| `country`, `location`, `type`, `propertyType`, `minPrice`, `maxPrice`, `bedrooms`, `page` | — | Same as `search` |
| `northEast` / `southWest` | string | Map viewport corners, `"lat,lng"` (e.g. `"49,3"`) |
| `zoom` | integer | Map zoom level |

`"map-item"` / `"microsite-map-item"` take a map pin/item identifier (from one of the map
operations above) via `adId` or `extraParams` — return that item's detail.

#### `operation: "locations"`

| Parameter | Type | Description |
|-----------|------|-------------|
| `country` | string | `pt` | `es` | `it` | `fr` |
| `searchField` | string | The text a user would be typing into Idealista's location search box |
| `type` | string | `sale` | `rent` — changes which result set comes back |

#### `operation: "zone-experts"`

The "recommended agents for this area" panel Idealista shows on search pages. Parameters:
`location`, `country`, `type`.

#### `operation: "agency-branding"`

Numeric `adId` — an agency's branding shown on one of its ads.

#### `operation: "microsite-configuration"`

`micrositeName` — that microsite's configuration/theming payload.

#### Listing media / detail helpers

`"comment"`, `"translation"`, `"static-map"`, `"signed-map"`, `"slideshow"` — pass `adId` (and
for `"translation"`: `language`, `requestTranslation`).

#### Geography / URL-building helpers

`"breadcrumbs"` / `"microsite-breadcrumbs"`, `"free-text-url"`, `"draw-search-url"`,
`"live-search-url"`, `"draw-search-area"` — thin pass-throughs mirroring the small internal
calls Idealista's own search UI makes while you type or draw a search area. These don't have
individually modeled fields above; use `extraParams` (see below) to pass whatever Idealista
itself expects.

#### Advanced: extra params and proxy configuration (all operations)

| Parameter | Description |
|-----------|-------------|
| `extraParams` | Extra upstream query parameters forwarded as-is, merged on top of (and able to override) every field above. The escape hatch for any niche endpoint's own parameter names. |
| `baseProxyUrl` | A generic HTTP(S) proxy URL, e.g. `http://user:pass@host:port` |
| `residentialProxyUrl` | A residential rotating-exit proxy, retried once if the base proxy gets blocked |
| `impitProxyMethodUrl` | A service that fetches a URL with a real browser TLS fingerprint — **this is how every request to Idealista is actually made; required for real results** |
| `requestUserAgent`, `requestTimeoutMs`, `searchCacheTtlMs`, `detailCacheTtlMs` | Advanced overrides — leave blank for sane built-in defaults |

### Parameter Options

#### Country (`country`)

- `pt` — idealista.pt (Portugal)
- `es` — idealista.com (Spain)
- `it` — idealista.it (Italy)
- `fr` — idealista.fr (France)

#### Location (`location`)

There's no address-autocomplete/geocoding service behind this field — it's passed straight
through (slugified) to Idealista. Use the `"locations"` operation first to find the exact
slug/path Idealista itself resolves a place name to, especially for anything more specific than
a well-known city. Leaving it empty falls back to a nationwide (map-bounded) search.

### Usage Examples

#### Basic search

```json
{
  "operation": "search",
  "country": "pt",
  "location": "braga",
  "type": "sale",
  "propertyType": "apartment"
}
```

#### Search, auto-paginated across 5 pages

```json
{
  "operation": "search",
  "country": "es",
  "location": "madrid",
  "type": "rent",
  "maxPagesToScrape": 5
}
```

#### Fetch several listings' full detail in one run

```json
{
  "operation": "listing-detail",
  "listingIds": ["pt:35410511", "pt:34938548"]
}
```

#### Resolve a location slug before searching it

```json
{
  "operation": "locations",
  "country": "pt",
  "searchField": "Braga"
}
```

#### Map pins for a drawn viewport

```json
{
  "operation": "map-grouped",
  "country": "fr",
  "location": "paris",
  "northEast": "49,3",
  "southWest": "48,2",
  "zoom": 12
}
```

### Output Format

#### `search` / `free-text` / `zones-of-interest` / `microsite-search`

One **dataset row per listing** — the normalized listing shape:

```json
{
  "id": "idealista:pt:35410511",
  "source": "idealista",
  "title": "Apartamento T2 na Rua Germão Galharde, 16, São Victor",
  "url": "https://www.idealista.pt/imovel/35410511/",
  "transaction": "sale",
  "propertyType": "apartment",
  "price": { "amount": 270000, "currency": "EUR" },
  "pricePerSquareMeter": { "amount": 3292.68, "currency": "EUR" },
  "areaSquareMeters": 82,
  "bedrooms": 2,
  "location": { "district": null, "council": null, "parish": null, "neighborhood": null, "address": "...", "latitude": null, "longitude": null },
  "agency": { "name": "Tânia Cruz - RE/MAX", "type": "agency" },
  "isPrivateOwner": false,
  "postedAt": null
}
```

The run's `OUTPUT` key-value record holds a summary instead (`operation`, `query`,
`pagesFetched`, `pagination`, `errors`, `count`) — the listings themselves are in the dataset.

#### `listing-detail`

One **dataset row per listing**, with extra fields on top of the shape above:
`description`, `images`, `characteristics`, plus normalized fields where available —
`bathrooms`, `floor`, `constructionYear`, `condition`, `orientation`, `hasElevator`,
`isFurnished`, `amenities`, `advertiser`, `energy`, `media`, `coordinates`. `OUTPUT` holds a
summary (`listingIds`, `count`, `errors`) rather than the listings themselves.

#### Every other operation

**One dataset row for the whole run**, since there's no repeatable "item" in these responses:

```json
{ "operation": "locations", "country": "pt", "params": { "searchField": "Braga" }, "result": { "...": "Idealista's own response" } }
```

`OUTPUT` holds this exact same object.

### Data Storage

- **Dataset**: one row per listing for `search`-like and `listing-detail` operations; one row
  for the whole run for every other operation (see [Output Format](#output-format) above).
- **Key-value store**: a summary (or, for non-listing operations, the full result) is also saved
  under `OUTPUT` for quick viewing in the Apify Console.

### Error Handling

- `search`/`listing-detail`: a single page or listing failing doesn't fail the run — check
  `errors` in `OUTPUT`.
- Every other operation: a failure (bad country, missing location, no proxy configured) fails
  the run with a descriptive message, visible in the run log and as the run's status message.
- `listing-detail` returns a clear per-id error if a listing doesn't exist, rather than an empty
  success.

### Performance Tips

1. Resolve a location with the `"locations"` operation first rather than guessing a slug —
   an unrecognized location falls back to a much coarser nationwide search.
2. Keep `maxPagesToScrape` as low as you actually need; each page is a separate upstream
   request.
3. For `listing-detail`, batch many ids into one `listingIds` run instead of one run per id —
   it's the same number of upstream requests either way, but far less Actor run overhead.
4. Results are cached briefly in memory within a single run (`searchCacheTtlMs` /
   `detailCacheTtlMs`) — this doesn't help across separate runs, so don't rely on it for
   de-duplication across runs.

### Rate Limits and Best Practices

- **A proxy is required, not optional, here.** Idealista reliably blocks naive server-side
  fetches. `impitProxyMethodUrl` (a service that fetches with a real browser TLS fingerprint)
  combined with `baseProxyUrl` is how every request in this Actor is actually made — without
  them, every operation fails fast with a clear `MY_PROXY_METHOD must be configured` error
  rather than silently trying and getting blocked.
- Expect an occasional `502`/access-challenge error even with a good proxy configured — retrying
  after a short delay usually succeeds.
- Don't scrape or expose Idealista's authenticated features (saved alerts, messaging an
  advertiser, account data) through this Actor — it deliberately only talks to Idealista's
  public, logged-out pages, and sends no messages or forms on anyone's behalf.
- Treat `price`/`pricePerSquareMeter` as the current *asking* price, not a confirmed achieved
  sale/rental price.

### Integration Examples

#### JavaScript/Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const input = {
  operation: 'search',
  country: 'pt',
  location: 'braga',
  type: 'sale',
};

const run = await client.actor('YOUR_ACTOR_ID').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();

items.forEach((listing) => {
  console.log(`${listing.title} — ${listing.price?.amount} ${listing.price?.currency}`);
});
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {
    "operation": "search",
    "country": "pt",
    "location": "braga",
    "type": "sale",
}

run = client.actor("YOUR_ACTOR_ID").call(run_input=run_input)
items = client.dataset(run["defaultDatasetId"]).list_items().items

for listing in items:
    price = listing.get("price") or {}
    print(f"{listing['title']} — {price.get('amount')} {price.get('currency')}")
```

### Support

If you have any questions or encounter any issues, please consult the Apify documentation or
reach out to us through one of the following channels:

- **Telegram**: [@pintoflow](https://t.me/pintoflow)
- **Email**: <pintoflowpt@gmail.com>
- **Apify Platform**: You can also contact us directly through this platform.

***

# Actor input Schema

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

Which Idealista endpoint this run calls. "search" (the main use case) searches listings for sale/rent. "listingDetail" fetches one or more listings' full detail. Every other value is one of Idealista's own specialized endpoints (maps, location autocomplete, translations, microsites...) — see each field's description below for which operation(s) use it.

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

Which Idealista site to use. Applies to every operation.

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

City/area name or Idealista location slug (e.g. "braga", "lisboa/lisboa/sao-vicente"). Used by "search", "free-text", "zones-of-interest", "microsite-search", the map operations, "zone-experts" and the breadcrumb/URL-retriever operations. Resolve the exact slug first with the "locations" operation if unsure. Leave empty for a nationwide (map-bounded) search.

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

Sale or rent. Used by every search-like operation, the map operations, "locations" and "zone-experts".

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

Filter by apartment or house. Used by every search-like operation. Leave as "Any" for no filter.

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

Minimum price filter, in EUR. Used by every search-like operation.

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

Maximum price filter, in EUR. Used by every search-like operation.

## `bedrooms` (type: `integer`):

Number of bedrooms. Used by every search-like operation except Italy/France (those count all rooms, not bedrooms specifically, so this filter is ignored there). 6 means "6 or more".

## `page` (type: `integer`):

First page to fetch, starting at 1. Used by every search-like operation and the map operations.

## `maxPagesToScrape` (type: `integer`):

For search-like operations ("search", "free-text", "zones-of-interest", "microsite-search") only: how many consecutive pages, starting at "Page" above, to fetch and combine into one result. Stops early once Idealista's own last page is reached. Ignored by every other operation.

## `freeText` (type: `string`):

Free-text search string. Used by the "free-text" operation.

## `zoneOfInterest` (type: `string`):

Idealista's own curated zone-of-interest id/slug. Used by the "zones-of-interest" operation.

## `micrositeName` (type: `string`):

An agency's branded Idealista microsite slug (the part of a microsite URL after the domain). Used by every "microsite-\*" operation.

## `northEast` (type: `string`):

"lat,lng" of the map viewport's north-east corner, e.g. "49,3". Used by the map operations.

## `southWest` (type: `string`):

"lat,lng" of the map viewport's south-west corner, e.g. "48,2". Used by the map operations.

## `zoom` (type: `integer`):

Map zoom level. Used by the map operations.

## `adId` (type: `string`):

A listing's numeric ad id (the same number as in a listing URL / this Actor's own "country:id" listing id). Used by "comment", "translation", "static-map", "signed-map", "slideshow", "agency-branding" and "map-item" — for a couple of these Idealista's own parameter name may differ; if a run comes back empty, pass it via "Extra params" below instead under the exact name Idealista expects.

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

Target language code (e.g. "en"). Used by the "translation" operation.

## `requestTranslation` (type: `boolean`):

Used by the "translation" operation.

## `searchField` (type: `string`):

The text a user would be typing into Idealista's own location search box. Used by the "locations" operation.

## `listingId` (type: `string`):

A single listing's numeric id. Used by "listing-detail" when "Listing ids" below is empty. Combined with "Country" above.

## `listingIds` (type: `array`):

Fetch several listings' detail in one run. Each entry is either "country:id" (e.g. "pt:35410511") or a bare numeric id, which then falls back to the "Country" field above. Used by "listing-detail"; takes priority over the single "Listing id" field. A listing that fails doesn't stop the run — it's recorded with its own error instead.

## `extraParams` (type: `object`):

Advanced: extra upstream query parameters forwarded as-is to Idealista's endpoint, merged on top of (and able to override) every field above. Use this for the handful of niche endpoints whose own parameter names aren't individually modeled above ("map-item", "microsite-map-item", "breadcrumbs"/"microsite-breadcrumbs", "free-text-url", "draw-search-url", "live-search-url", "draw-search-area").

## `baseProxyUrl` (type: `string`):

A generic HTTP(S) proxy URL (e.g. http://user:pass@host:port) used as the primary outbound proxy. Idealista reliably blocks naive server-side fetches, so this (or the impit service below) is required for real results — not needed only when the actor's own BASE_PROXY/MY_PROXY_METHOD/RESIDENTIAL_PROXY environment variables are already set on this Actor.

## `residentialProxyUrl` (type: `string`):

A residential rotating-exit proxy, retried once if the base proxy above gets blocked. Optional.

## `impitProxyMethodUrl` (type: `string`):

Base URL of a service that fetches a URL with a real browser TLS fingerprint (impit, Firefox impersonation) through the proxy above and returns { status_code, content, headers }. This is how every outbound request to Idealista is actually made — required for any real (non-test) run.

## `requestUserAgent` (type: `string`):

Advanced: override the User-Agent header sent to Idealista. Leave blank to use the built-in default.

## `requestTimeoutMs` (type: `integer`):

Advanced: override the outbound fetch deadline per request. Leave blank to use the built-in default (18000).

## `searchCacheTtlMs` (type: `integer`):

Advanced: how long a search-results page stays cached in memory during this run. Leave blank to use the built-in default (600000).

## `detailCacheTtlMs` (type: `integer`):

Advanced: how long a listing-detail page stays cached in memory during this run. Leave blank to use the built-in default (1800000).

## Actor input object example

```json
{
  "operation": "search",
  "country": "pt",
  "type": "sale",
  "propertyType": "",
  "page": 1,
  "maxPagesToScrape": 1,
  "requestTranslation": false,
  "listingIds": [],
  "extraParams": {}
}
```

# Actor output Schema

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

Dataset items: normalized listings or operation results.

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

Summary or single-object result of the run (pagination, totals, errors).

# 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("pintostudio/idealista").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("pintostudio/idealista").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 pintostudio/idealista --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pintostudio/idealista"
        }
    }
}
```

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/KkWVccyDZdWzeZVzk/builds/TSdU7vF6tvu0zdwDM/openapi.json
