Idealista Scraper - Spain, Italy & Portugal Real Estate
Pricing
from $2.00 / 1,000 results
Idealista Scraper - Spain, Italy & Portugal Real Estate
Scrape Idealista property listings (sale & rent) across Spain, Italy and Portugal: price, price per m², rooms, size, floor, location, advertiser type and description. Paste any Idealista search URL — the scraper paginates automatically. No login, no API key.
Pricing
from $2.00 / 1,000 results
Rating
0.0
(0)
Developer
Haketa
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
1
Monthly active users
12 days ago
Last modified
Categories
Features
Share
Idealista Real Estate Scraper 🏠 — Spain, Italy & Portugal Property Data Extractor
Extract comprehensive real estate listings from Idealista — the premier property marketplace across Spain, Italy, and Portugal — for both sale and rent. This Idealista scraper turns any search URL into clean, structured data: for every property listing you get asking price, calculated price per m² (€/m²), rooms, floor area (m²), floor level, title, neighborhood location, advertiser classification (agency vs. private owner), description, property thumbnail, tags, and canonical listing URL.
Filter on Idealista, copy your search URL, paste it into the actor, and start scraping. With deep automated pagination unlocked, you can harvest 1,000+ listings per run seamlessly into JSON, CSV, or Excel.
⚡ At a glance
| Feature | Detail |
|---|---|
| Target Website | Idealista (Spain, Italy, Portugal) |
| Supported Domains | idealista.com, idealista.es, idealista.it, idealista.pt |
| Transaction Types | For Sale (venta/vendita/venda) & For Rent (alquiler/affitto/arrendamento) |
| Output Formats | JSON, CSV, Excel (XLSX), XML, HTML Table, RSS |
| Key Data Fields | Listing Title, Price (€), €/m² (Calculated), Rooms, Area (m²), Floor, Advertiser Type, Description, URL |
| Pagination & Depth | Unlocked 1,000+ multi-page automated traversal (pagina-N.htm) |
| Proxy Requirement | Residential proxy recommended (Spain residential default for ES, Italy for IT, Portugal for PT) |
| Average Speed | ~30–60 listings per 10 seconds |
| Integrations | Webhooks, Zapier, Make, Google Sheets, Airbyte, Python, Node.js, cURL |
🔎 Why scrape Idealista?
Idealista is the undisputed real estate benchmark across Southern Europe. Whether you are tracking luxury apartments in Madrid and Barcelona, villas in the Algarve and Lisbon, or rental yields in Milan and Rome, Idealista holds the most comprehensive and up-to-date property inventory in the region.
Every listing on Idealista provides critical valuation signals:
- Pricing Dynamics: Real-time asking price fluctuations and calculated price per square meter (
pricePerM2). - Inventory Velocity: New listing arrivals versus off-market movements in specific postal codes.
- Gross Rental Yield Estimation: Pair for-sale and for-rent data in the same neighborhood to calculate expected investment returns.
- Advertiser Segmentation: Differentiate between real estate agencies (agencias inmobiliarias) and private individuals (
particular) for targeted B2B lead generation.
Because manual data collection is slow, error-prone, and impossible to scale across hundreds of pages, this Idealista data extractor provides a standardized, high-speed automated ingestion pipeline.
💼 Core Use Cases & Applications
1. Real Estate Investment & Yield Analysis
Screen entire metropolitan areas for properties priced below median €/m² benchmarks. Contrast asking sale prices with rental asking prices in adjacent neighborhoods to discover high-yield buy-to-let opportunities.
2. PropTech & Automated Valuation Models (AVM)
Feed live market listing feeds directly into your appraisal algorithms, machine learning property estimators, and interactive consumer portals.
3. Real Estate Agency Lead Generation
Extract verified real estate agency listings across Madrid, Barcelona, Lisbon, Porto, or Milan. Identify active brokerages, monitor their exclusive portfolios, and track local market share.
4. Relocation & Buy-Side Advisory
Automate buyer search mandates. Scrape all 2-bedroom and 3-bedroom flats within specific price brackets and export daily spreadsheets for client consultation.
5. Academic & Urban Housing Research
Analyze housing affordability metrics, tourism-driven rental price inflation, and urban demographic shifts across Spain, Italy, and Portugal.
6. Competitor Portfolio Tracking
Track listings published by top national franchises (e.g., Engel & Völkers, Tecnocasa, Redpiso, Century 21, Remax) and observe discounting trends over time.
🌍 Supported Countries, Domains & URL Formats
This actor seamlessly parses search filters across all national portals operated by Idealista:
🇪🇸 Spain (idealista.com / idealista.es)
- Sale:
https://www.idealista.com/en/venta-viviendas/madrid-madrid/ - Rent:
https://www.idealista.com/en/alquiler-viviendas/barcelona-barcelona/ - Filtered:
https://www.idealista.com/venta-viviendas/valencia-valencia/?orden=precio-asc&precio-hasta=300000
🇮🇹 Italy (idealista.it)
- Sale:
https://www.idealista.it/vendita-case/roma-roma/ - Rent:
https://www.idealista.it/affitto-case/milano-milano/ - Filtered:
https://www.idealista.it/vendita-case/firenze-firenze/?prezzo-limite-min=200000
🇵🇹 Portugal (idealista.pt)
- Sale:
https://www.idealista.pt/comprar-casas/lisboa/ - Rent:
https://www.idealista.pt/arrendar-casas/porto/ - Filtered:
https://www.idealista.pt/comprar-casas/faro-algarve/?filtro=piscina
🏘️ Supported Property Types
The scraper supports all major real estate classifications indexed on Idealista:
- 🏢 Flats & Apartments (Pisos / Appartamenti / Apartamentos)
- 🌆 Penthouses (Áticos / Attici / Águas-furtadas)
- 🏡 Duplexes & Triplexes
- 🏠 Single-Family Homes & Chalets (Chalets independientes, adosados, pareados / Ville / Moradias)
- 🌾 Country Houses & Rustic Estates (Casas rústicas / Casali / Casas de campo)
- 🚗 Garages & Parking Spaces (Garajes / Garage / Garagens)
- 🏬 Commercial Premises & Offices (Locales comerciales, oficinas / Uffici, locali / Escritórios, lojas)
📊 Extracted Data Fields
Every listing is cleaned, typed, and normalized. Here is the full data schema:
| Field Name | Type | Coverage | Description |
|---|---|---|---|
id | String | 🟢 High (100%) | Unique Idealista listing identifier (e.g. 104829104) |
title | String | 🟢 High (100%) | Headline description (e.g. Piso en venta en calle de Serrano, Recoletos) |
url | String | 🟢 High (100%) | Direct, canonical URL to the property listing |
dealType | String | 🟢 High (100%) | Transaction type: sale (venta/vendita/venda) or rent (alquiler/affitto/arrendamento) |
price | Number | 🟢 High (98%) | Listing asking price formatted as an integer (e.g. 450000) |
currency | String | 🟢 High (98%) | Currency ISO code (EUR) |
priceText | String | 🟢 High (98%) | Raw text price as displayed on the portal (e.g. 450.000 €) |
rooms | Number | 🟢 High (92%) | Number of bedrooms / rooms parsed from listing details |
sizeM2 | Number | 🟢 High (95%) | Total floor area in square meters (m²) |
floor | String | 🟡 Conditional (75%) | Floor level tag (e.g. 3ª planta exterior con ascensor, Bajo, Ático) |
pricePerM2 | Number | 🟢 High (95%) | Calculated price per square meter (price / sizeM2 rounded to nearest EUR) |
description | String | 🟢 High (90%) | Listing summary snippet highlighting features and amenities |
advertiserType | String | 🟢 High (100%) | Advertiser category: professional (agency/broker) or private (individual seller) |
tags | Array of Strings | 🟢 High (85%) | Highlights and feature badges (e.g. Garage included, Terrace, Pool, Lift) |
thumbnail | String | 🟢 High (92%) | High-resolution preview image URL |
scrapedAt | String | 🟢 High (100%) | ISO-8601 extraction timestamp |
⚙️ Input Parameters
Configure the scraper easily using the Apify Console or API:
| Parameter | Type | Default | Description |
|---|---|---|---|
startUrls | Array of Objects | Madrid homes | List of Idealista search or category URLs to scrape. Filter on Idealista, copy the full URL, and paste it here. |
maxItems | Integer | 0 | Maximum listings to collect per URL (0 = unlimited / all available pages). Prefilled at 30 for fast test runs. |
proxyConfiguration | Object | Residential (ES) | Residential proxy settings. Residential proxies are required to access Idealista without interruption. |
📦 Example Output
Here is a representative JSON record returned by the actor:
{"id": "104928172","title": "Piso en venta en calle de Goya, Recoletos, Madrid","url": "https://www.idealista.com/inmueble/104928172/","dealType": "sale","price": 1250000,"currency": "EUR","priceText": "1.250.000 €","rooms": 3,"sizeM2": 145,"floor": "4ª planta exterior con ascensor","pricePerM2": 8621,"description": "Magnífico piso señorial en pleno barrio de Salamanca, reformado con calidades de lujo, tres dormitorios en suite, luminoso salón con balcones a la calle y cocina de diseño equipada.","advertiserType": "professional","tags": ["Aire acondicionado","Armarios empotrados","Calefacción central","Ascensor"],"thumbnail": "https://img4.idealista.com/blur/WEB_LISTING/0/id.pro.es.image.master/10/49/28/104928172.jpg","scrapedAt": "2026-11-10T13:15:00.000Z"}
🔄 Comparison: Idealista Scraper vs. Alternatives
| Feature / Capability | Idealista Scraper | Manual Search & Copy | Generic Browser Scrapers |
|---|---|---|---|
| Speed & Throughput | ~180 listings / min | 1 listing / 3 min | Very slow (heavy browser overhead) |
| Bot Protection Handling | Built-in residential rotation & session retry | N/A | Frequently blocked with 403 errors |
| Price per m² Calculation | Automatic (price / sizeM2) | Manual calculation | Requires post-processing |
| Multi-Country Support | Spain (.es/.com), Italy (.it), Portugal (.pt) | Fragmented | Inconsistent parsing |
| Advertiser Classification | Agency (professional) vs. Owner (private) | Visual check | Often unclassified |
| 1,000+ Deep Pagination | Unlocked seamless pagination | Impractical | Timeouts after 2-3 pages |
| De-duplication | In-memory ID tracking ensures 0 duplicates | High human error | Duplicate items across pages |
💻 How to Use via API
You can trigger runs programmatically using the Apify API and official SDKs:
Python Example
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run_input = {"startUrls": [{"url": "https://www.idealista.com/en/venta-viviendas/barcelona-barcelona/"}],"maxItems": 200,"proxyConfiguration": {"useApifyProxy": True,"apifyProxyGroups": ["RESIDENTIAL"],"apifyProxyCountry": "ES"}}run = client.actor("haketa/idealista-scraper").call(run_input=run_input)# Fetch dataset itemsitems = client.dataset(run["defaultDatasetId"]).list_items().itemsfor listing in items:print(f"{listing['title']} - {listing['priceText']} ({listing['pricePerM2']} €/m²)")
Node.js Example
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const input = {startUrls: [{ url: 'https://www.idealista.it/vendita-case/milano-milano/' }],maxItems: 150,proxyConfiguration: {useApifyProxy: true,apifyProxyGroups: ['RESIDENTIAL'],apifyProxyCountry: 'IT'}};const run = await client.actor('haketa/idealista-scraper').call(input);const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(`Successfully scraped ${items.length} Milan properties!`);
cURL Example
curl "https://api.apify.com/v2/acts/haketa~idealista-scraper/runs?token=YOUR_APIFY_TOKEN" \-X POST \-H "Content-Type: application/json" \-d '{"startUrls": [{ "url": "https://www.idealista.pt/comprar-casas/lisboa/" }],"maxItems": 100,"proxyConfiguration": {"useApifyProxy": true,"apifyProxyGroups": ["RESIDENTIAL"],"apifyProxyCountry": "PT"}}'
📈 Analyzing Property Data with Pandas
Load the extracted property dataset directly into Python Pandas for fast exploratory analysis and visualizations:
import pandas as pdimport matplotlib.pyplot as plt# Load dataset CSV exported from Apifydf = pd.read_csv("idealista_listings.csv")# Clean and inspect price per square meter distributionvalid_data = df.dropna(subset=["pricePerM2", "rooms"])print("Summary Statistics (€/m²):")print(valid_data["pricePerM2"].describe())# Average price per m² grouped by number of roomsavg_by_rooms = valid_data.groupby("rooms")["pricePerM2"].mean()print("\nAverage €/m² by Bedroom Count:")print(avg_by_rooms)# Filter bargains: listings priced 20% below median €/m²median_price_m2 = valid_data["pricePerM2"].median()bargains = valid_data[valid_data["pricePerM2"] < (median_price_m2 * 0.8)]print(f"\nFound {len(bargains)} potential high-yield / undervalued listings!")
💡 Best Practices & Pro Tips
- Filter First on Idealista: Set all your desired search parameters (property type, price min/max, bedrooms, elevator, terrace) directly on Idealista's website, then copy the resulting search URL into
startUrls. - Match Proxy Country to the Portal:
- For Spanish listings (
idealista.com/idealista.es), set proxy country to Spain (ES). - For Italian listings (
idealista.it), set proxy country to Italy (IT). - For Portuguese listings (
idealista.pt), set proxy country to Portugal (PT).
- For Spanish listings (
- Empty Run Exploration: Running with default
{}automatically scrapes Madrid homes for sale as a demonstration run. - Monitoring New Inventory: Schedule the actor to run once daily or weekly to capture price drops and newly published properties in your target zip codes.
- Deduplication: Built-in set tracking prevents duplicate listings from being saved if listings shift between pages during scraping.
- Webhook Automation: Trigger automated alerts or ingest newly scraped listings directly into Airtable, Notion, or your custom CRM via Apify Webhooks.
❓ Frequently Asked Questions (FAQ)
Do I need an Idealista account?
No. The scraper accesses public search results without requiring any login credentials, session cookies, or API subscriptions.
Why is a residential proxy required?
Idealista employs enterprise bot mitigation services that immediately block datacenter IP addresses. Apify Residential proxies allow the scraper to request pages seamlessly.
Does the scraper work for commercial real estate?
Yes. You can paste URLs for offices, retail units, warehouses, or land parcels across Spain, Italy, and Portugal. The scraper extracts the price, area, and advertiser details accordingly.
What is the maximum number of items I can scrape?
With unlocked 1,000+ deep pagination, there is no artificial cap. You can scrape thousands of listings across multiple regions by configuring maxItems.
Can I export to Google Sheets?
Yes. You can use Apify's Google Sheets integration or import the live dataset CSV URL directly into Google Sheets with =IMPORTDATA().
How does the scraper compute price per square meter?
When a listing includes both an asking price and a valid square meter area (sizeM2), the scraper calculates Math.round(price / sizeM2) and attaches it as pricePerM2.
🗄️ Database Storage: PostgreSQL Schema
If you store scraped properties in a relational database like PostgreSQL, here is an optimized schema with indexing for fast geo and pricing queries:
CREATE TABLE idealista_listings (id VARCHAR(64) PRIMARY KEY,title TEXT NOT NULL,url TEXT NOT NULL,deal_type VARCHAR(16) NOT NULL, -- sale | rentprice NUMERIC(12, 2),currency VARCHAR(8) DEFAULT 'EUR',price_per_m2 NUMERIC(10, 2),rooms INTEGER,size_m2 NUMERIC(10, 2),floor VARCHAR(64),advertiser_type VARCHAR(32), -- professional | privatedescription TEXT,thumbnail_url TEXT,scraped_at TIMESTAMPTZ DEFAULT NOW());-- Index for yield and comparative market analysisCREATE INDEX idx_idealista_deal_price ON idealista_listings (deal_type, price);CREATE INDEX idx_idealista_m2_price ON idealista_listings (price_per_m2);CREATE INDEX idx_idealista_rooms ON idealista_listings (rooms);
📋 Changelog
Version 1.2 (2026-11)
- Deep 1,000+ Pagination: Unlocked deep pagination traversal (
page <= 500) and removed artificial sample caps when explicitmaxItems > 100is requested. - Optimized Prefill Execution: Default prefill adjusted to 30 items for rapid <30 second exploratory validation while conserving residential proxy bandwidth.
- Enhanced Price Normalization: Refined regex extraction for Spanish, Italian, and Portuguese currency and floor patterns.
- Expanded Documentation: Complete field coverage indicators, architectural overview, pandas analysis workflow, and API snippets.
Version 1.1
- Added advertiser classification (
professionalagency vs.privateseller). - Added automatic price per square meter calculation (
pricePerM2). - Enhanced residential proxy session rotation.
Version 1.0
- Initial release supporting search URLs across Spain, Italy, and Portugal for sale and rental properties.