Idealista Scraper - Spain, Italy & Portugal Real Estate avatar

Idealista Scraper - Spain, Italy & Portugal Real Estate

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Idealista Scraper - Spain, Italy & Portugal Real Estate

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

Haketa

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

1

Monthly active users

12 days ago

Last modified

Features

Limited permissions

Share

Idealista Real Estate Scraper 🏠 — Spain, Italy & Portugal Property Data Extractor

Apify Actor Data Format: JSON / CSV / Excel Pagination: 1,000+ Deep Maintenance: Active Coverage: Spain, Italy, Portugal

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

FeatureDetail
Target WebsiteIdealista (Spain, Italy, Portugal)
Supported Domainsidealista.com, idealista.es, idealista.it, idealista.pt
Transaction TypesFor Sale (venta/vendita/venda) & For Rent (alquiler/affitto/arrendamento)
Output FormatsJSON, CSV, Excel (XLSX), XML, HTML Table, RSS
Key Data FieldsListing Title, Price (€), €/m² (Calculated), Rooms, Area (m²), Floor, Advertiser Type, Description, URL
Pagination & DepthUnlocked 1,000+ multi-page automated traversal (pagina-N.htm)
Proxy RequirementResidential proxy recommended (Spain residential default for ES, Italy for IT, Portugal for PT)
Average Speed~30–60 listings per 10 seconds
IntegrationsWebhooks, 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 NameTypeCoverageDescription
idString🟢 High (100%)Unique Idealista listing identifier (e.g. 104829104)
titleString🟢 High (100%)Headline description (e.g. Piso en venta en calle de Serrano, Recoletos)
urlString🟢 High (100%)Direct, canonical URL to the property listing
dealTypeString🟢 High (100%)Transaction type: sale (venta/vendita/venda) or rent (alquiler/affitto/arrendamento)
priceNumber🟢 High (98%)Listing asking price formatted as an integer (e.g. 450000)
currencyString🟢 High (98%)Currency ISO code (EUR)
priceTextString🟢 High (98%)Raw text price as displayed on the portal (e.g. 450.000 €)
roomsNumber🟢 High (92%)Number of bedrooms / rooms parsed from listing details
sizeM2Number🟢 High (95%)Total floor area in square meters (m²)
floorString🟡 Conditional (75%)Floor level tag (e.g. 3ª planta exterior con ascensor, Bajo, Ático)
pricePerM2Number🟢 High (95%)Calculated price per square meter (price / sizeM2 rounded to nearest EUR)
descriptionString🟢 High (90%)Listing summary snippet highlighting features and amenities
advertiserTypeString🟢 High (100%)Advertiser category: professional (agency/broker) or private (individual seller)
tagsArray of Strings🟢 High (85%)Highlights and feature badges (e.g. Garage included, Terrace, Pool, Lift)
thumbnailString🟢 High (92%)High-resolution preview image URL
scrapedAtString🟢 High (100%)ISO-8601 extraction timestamp

⚙️ Input Parameters

Configure the scraper easily using the Apify Console or API:

ParameterTypeDefaultDescription
startUrlsArray of ObjectsMadrid homesList of Idealista search or category URLs to scrape. Filter on Idealista, copy the full URL, and paste it here.
maxItemsInteger0Maximum listings to collect per URL (0 = unlimited / all available pages). Prefilled at 30 for fast test runs.
proxyConfigurationObjectResidential (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 / CapabilityIdealista ScraperManual Search & CopyGeneric Browser Scrapers
Speed & Throughput~180 listings / min1 listing / 3 minVery slow (heavy browser overhead)
Bot Protection HandlingBuilt-in residential rotation & session retryN/AFrequently blocked with 403 errors
Price per m² CalculationAutomatic (price / sizeM2)Manual calculationRequires post-processing
Multi-Country SupportSpain (.es/.com), Italy (.it), Portugal (.pt)FragmentedInconsistent parsing
Advertiser ClassificationAgency (professional) vs. Owner (private)Visual checkOften unclassified
1,000+ Deep PaginationUnlocked seamless paginationImpracticalTimeouts after 2-3 pages
De-duplicationIn-memory ID tracking ensures 0 duplicatesHigh human errorDuplicate 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 ApifyClient
client = 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 items
items = client.dataset(run["defaultDatasetId"]).list_items().items
for 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 pd
import matplotlib.pyplot as plt
# Load dataset CSV exported from Apify
df = pd.read_csv("idealista_listings.csv")
# Clean and inspect price per square meter distribution
valid_data = df.dropna(subset=["pricePerM2", "rooms"])
print("Summary Statistics (€/m²):")
print(valid_data["pricePerM2"].describe())
# Average price per m² grouped by number of rooms
avg_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

  1. 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.
  2. 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).
  3. Empty Run Exploration: Running with default {} automatically scrapes Madrid homes for sale as a demonstration run.
  4. 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.
  5. Deduplication: Built-in set tracking prevents duplicate listings from being saved if listings shift between pages during scraping.
  6. 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 | rent
price 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 | private
description TEXT,
thumbnail_url TEXT,
scraped_at TIMESTAMPTZ DEFAULT NOW()
);
-- Index for yield and comparative market analysis
CREATE 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 explicit maxItems > 100 is 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 (professional agency vs. private seller).
  • 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.