Crawl: the most reliable web crawler APISee what’s new
Zenrows
Talk to sales Start free

Idealista scraper

The Zenrows Idealista scraper turns an Idealista search URL into structured JSON: listing ID, title, monthly rent or price, size in square meters, bedrooms, floor, property type, tags, agency, photo count and publish time, plus the area's average price per m². Fetch in Adaptive Stealth Mode opens the page and Extract returns the fields. Run it from an API call, the CLI or an AI agent.

Site
idealista.com
Returns
Listings, prices, size, rooms and agencies in Spain, Portugal and Italy
Runs on
Fetch, Extract, Batch, Crawl
Updated
{
  "search_context": {
    "location_name": "Barcelona",
    "total_listings": 2167,
    "average_price_per_sqm": 33.27
  },
  "listings": [
    {
      "listing_id": "112554326",
      "title": "Piso en Calle de Sagués, Sant Gervasi - Galvany, Barcelona",
      "price_eur_per_month": 1600,
      "area_sqm": 50,
      "bedrooms": 1,
      "floor_description": "5ª planta exterior con ascensor",
      "property_type": "Piso",
      "tags": ["Alquiler de temporada"],
      "agency_name": "Carolina Martí",
      "agency_profile_url": "/pro/carolinamarti/",
      "is_professional_ad": true,
      "photo_count": 17,
      "listing_url": "/inmueble/112554326/",
      "thumbnail_url": "https://img4.idealista.com/blur/480_360_mq/0/id.pro.es.image.master/f8/c4/a5/1482884681.jpg"
    },
    {
      "listing_id": "112855924",
      "title": "Piso en Avenida de Roma, L'Antiga Esquerra de l'Eixample, Barcelona",
      "price_eur_per_month": 3300,
      "area_sqm": 169,
      "bedrooms": 4,
      "floor_description": "4ª planta exterior con ascensor",
      "property_type": "Piso",
      "tags": null,
      "agency_name": null,
      "is_professional_ad": true,
      "photo_count": 28,
      "time_since_published": "4 horas",
      "listing_url": "/inmueble/112855924/"
    }
  ]
}

Request and output of a live call to an Idealista rental search in Barcelona on Oct 20, 2026, trimmed for length. A field is returned when the page shows it.

What data can you scrape from Idealista?

A search page returns every listing card on it, plus a summary of the area.

The values keep Idealista's own language, so a Barcelona search returns Spanish titles and tags. These are the fields teams use most, with the path where each lives in the JSON.

FieldWhat it holdsExample
listings[].listing_id Idealista's ad ID, the number in /inmueble/ID/ 112554326
listings[].title Property type, street and neighborhood Piso en Calle de Sagués, Sant Gervasi - Galvany, Barcelona
listings[].price_eur_per_month Monthly rent in euros on a rental search 1600
listings[].area_sqm Built area in square meters 50
listings[].bedrooms Number of bedrooms 1
listings[].floor_description Floor, exterior or interior, and lift 5ª planta exterior con ascensor
listings[].property_type Flat, house, penthouse, studio and so on Piso
listings[].tags[] Labels on the card, such as seasonal rental or luxury ["Alquiler de temporada"]
listings[].garage_included Whether parking is included, when the card says so null
listings[].agency_name The agency or professional behind the ad BLUEGROUND BARCELONA
listings[].agency_profile_url The agency's Idealista profile /pro/bluegroundbarcelona/
listings[].is_professional_ad Agency ad (true) or private owner true
listings[].photo_count Number of photos in the ad 18
listings[].time_since_published How recently the ad went up, as Idealista shows it 2 horas
listings[].description_snippet The first lines of the ad text Siéntete como en casa en este acogedor apartamento…
listings[].listing_url The ad page, relative to the site /inmueble/111800752/
search_context.total_listings How many ads match the search 2167
search_context.average_price_per_sqm The area's average price per m² for this search 33.27

How to scrape Idealista with Zenrows

  1. Create a free Zenrows account and copy your API key from the dashboard.
  2. Build the search on Idealista and copy the URL. Rentals are /alquiler-viviendas/<city>/, sales /venta-viviendas/<city>/, on idealista.com for Spain, idealista.pt for Portugal and idealista.it for Italy. Filters you set in the browser stay in the URL.
  3. Send it with the default configuration: Adaptive Stealth Mode to open the page, Extract to return the fields, and the country of the site (es, pt or it).
  4. Read parsed from the response. listings holds the cards and search_context tells you how many ads match.
  5. Walk the result pages with pagina-2.htm, pagina-3.htm and so on, and send them as one Batch job.
# pip install requests
import json
import requests

params = {
    "apikey": "YOUR_ZENROWS_API_KEY",
    "url": "https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/",
    "mode": "auto",          # Adaptive Stealth Mode
    "extract": "auto",       # structured JSON
    "proxy_country": "es",   # Idealista Spain
}
response = requests.get("https://api.zenrows.com/v1/", params=params, timeout=180)
response.raise_for_status()

data = response.json()["parsed"]
print(data["search_context"]["total_listings"], "ads,", data["search_context"]["average_price_per_sqm"], "EUR/m2")
for ad in data["listings"]:
    print(ad["listing_id"], ad["price_eur_per_month"], ad["area_sqm"], ad["bedrooms"], ad["title"])

Input

The scraper takes one Idealista URL per request, plus the options below.

The same parameters go into every task of a Batch job, so the input for a whole city is the list of its result pages with these settings.

ParameterTypeDefaultDescription
url string required An Idealista search (rentals, sales, a city, district or neighborhood, with filters) or an ad page (/inmueble/ID/), on idealista.com, idealista.pt or idealista.it
mode string auto Adaptive Stealth Mode: starts with the lightest setup and adds rendering and protected-site handling only when the page needs them
extract string auto Returns the page's fields as JSON in parsed, next to the raw html
extract_fields string all fields Comma-separated paths to keep, such as listings.listing_id,listings.price_eur_per_month
proxy_country string any Two-letter country code. Match the site: es for idealista.com, pt for idealista.pt, it for idealista.it
wait_for string none A CSS selector to wait for before the page is read
session_id integer none Reuse the same session across several requests, up to 10 minutes, such as the result pages of one search
Batch input
{
  "type": "regular",
  "status": "closed",
  "zenrows_params": {
    "mode": "auto",
    "extract": "auto",
    "proxy_country": "es"
  },
  "tasks": [
    { "url": "https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/", "external_id": "bcn-rent-p1" },
    { "url": "https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/pagina-2.htm", "external_id": "bcn-rent-p2" },
    { "url": "https://www.idealista.com/venta-viviendas/madrid-madrid/", "external_id": "mad-sale-p1" }
  ]
}

Output

Every response is JSON with two keys: html, the page as Idealista served it, and parsed, the structured record. A search page returns search_context and a listings array, one object per ad card. The sample below is the trimmed output of a live request to the Barcelona rentals search.

listing_url and agency_profile_url are relative: prefix them with https://www.idealista.com (or the .pt or .it domain) before you request them. For a spreadsheet, flatten listings with pd.json_normalize(...); for an LLM, ask for the page as Markdown.

Search results
{
  "search_context": {
    "location_name": "Barcelona",
    "total_listings": 2167,
    "average_price_per_sqm": 33.27
  },
  "listings": [
    {
      "listing_id": "111800752",
      "title": "Piso en Calle de Casanova, Sant Gervasi - Galvany, Barcelona",
      "price_eur_per_month": 5342,
      "area_sqm": 56,
      "bedrooms": 2,
      "floor_description": null,
      "garage_included": null,
      "property_type": "Piso",
      "tags": ["Lujo"],
      "agency_name": "BLUEGROUND BARCELONA",
      "agency_profile_url": "/pro/bluegroundbarcelona/",
      "is_professional_ad": true,
      "photo_count": 18,
      "time_since_published": "2 horas",
      "description_snippet": "Siéntete como en casa en este acogedor apartamento de 55 m² en Barcelona, ubicado en la planta baja…",
      "listing_url": "/inmueble/111800752/",
      "thumbnail_url": "https://img4.idealista.com/blur/480_360_mq/0/id.pro.es.image.master/73/79/5d/1448853820.jpg"
    },
    {
      "listing_id": "112554326",
      "title": "Piso en Calle de Sagués, Sant Gervasi - Galvany, Barcelona",
      "price_eur_per_month": 1600,
      "area_sqm": 50,
      "bedrooms": 1,
      "floor_description": "5ª planta exterior con ascensor",
      "garage_included": null,
      "property_type": "Piso",
      "tags": ["Alquiler de temporada"],
      "agency_name": "Carolina Martí",
      "agency_profile_url": "/pro/carolinamarti/",
      "is_professional_ad": true,
      "photo_count": 17,
      "time_since_published": null,
      "description_snippet": "Alquiler temporal en Sagués, Sant Gervasi-Galvany\nUn dormitorio, terraza y aire acondicionado…",
      "listing_url": "/inmueble/112554326/"
    }
  ]
}

Connect the MCP server (Claude Code)

claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp

MCP config (Cursor, Claude Desktop, Windsurf)

{
  "mcpServers": {
    "zenrows": {
      "command": "npx",
      "args": ["-y", "@zenrows/mcp"],
      "env": { "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY" }
    }
  }
}

Or run the CLI

npx -y @zenrows/cli init
zenrows extract "https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/" --proxy-country es

Then ask your agent

Use Zenrows to read the first three result pages of
https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/
and give me a table of ads with rent, m², bedrooms and rent per m².
Flag seasonal rentals separately and leave out ads above 3,000 euros.

Scrape Idealista from your coding agent

Claude Code, Cursor, Codex and any MCP client can scrape Idealista from a prompt.

The agent runs the same Fetch and Extract request and gets the same listings, so it can answer "which two-bedroom flats in Gràcia rent for under 1,500 euros" from one search URL. Connect the Zenrows MCP server once, or install the CLI and let the agent run it in the terminal.

Scrape Idealista at scale with Batch and Crawl

Batch runs a list of Idealista URLs as one job, in parallel, with your own ID on each result. The usual input is every result page of the cities you track (pagina-2.htm, pagina-3.htm and so on), run each morning so new ads and price changes show up the same day.

Crawl collects the ad pages for you. Start it on a search, keep only links that contain /inmueble/, and it returns every ad page it reaches, with the listing ID in each URL.

Scheduled jobs run the same Batch job on a timetable, on Zenrows' side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can tell your app when a run finishes, and you can pause or resume the schedule at any time, with no cron server to keep alive.

curl -X POST "https://async.api.zenrows.com/v1/jobs" \
  -H "X-API-Key: YOUR_ZENROWS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "regular",
    "status": "closed",
    "zenrows_params": { "mode": "auto", "extract": "auto", "proxy_country": "es" },
    "tasks": [
      { "url": "https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/", "external_id": "bcn-rent-p1" },
      { "url": "https://www.idealista.com/alquiler-viviendas/barcelona-barcelona/pagina-2.htm", "external_id": "bcn-rent-p2" }
    ]
  }'

# Read the results when the job finishes
curl "https://async.api.zenrows.com/v1/jobs/JOB_ID/results?status=successful" \
  -H "X-API-Key: YOUR_ZENROWS_API_KEY"

What teams do with Idealista data

Use caseData they pullWho runs it
Rent and price per m² tracking Price, area and average_price_per_sqm per city and district, stored daily Investors, funds and research teams in Spain, Portugal and Italy
Deal sourcing New ads under a price per m² threshold, with listing ID and publish time Buy-to-let investors and property buyers
Agency market share Agency name and ad count per neighborhood, private versus professional ads Real estate agencies and franchise networks
Seasonal and short-term rental supply Ads tagged as seasonal rentals, with rent, size and location Short-term rental operators and housing researchers
Valuation models Price, size, bedrooms, floor and property type as training data Proptech and lending teams
Lead lists of agencies Agency names and Idealista profile URLs in a target area Proptech and services sales teams

Tips for scraping Idealista

  • Match the country to the domain. Request idealista.com from Spain, idealista.pt from Portugal and idealista.it from Italy. Prices, language and results follow the site.
  • Paginate with pagina-N.htm. Page two of any search is the same path plus pagina-2.htm. Divide total_listings by the cards per page to know how many pages to queue.
  • Sort by newest to catch new ads. Add ?ordenado-por=fecha-publicacion-desc to a search, then read only the first page or two each day.
  • Use the listing ID as your key. listing_id is the number in /inmueble/ID/. Store it to dedupe across pages and to follow price changes on the same ad.
  • Rentals and sales use different paths and price fields. Rentals live under alquiler-viviendas and return a monthly price; sales live under venta-viviendas. Keep them in separate tables.
  • Text stays in the site's language. Titles, tags and floor descriptions come back in Spanish, Portuguese or Italian. Map tags such as "Alquiler de temporada" to your own labels once, then reuse the mapping.

Frequently asked questions

  • Collecting publicly available listing data from Idealista, such as prices, sizes and locations shown to every visitor, is common practice for market research. Ads from private owners can include personal data, which the GDPR protects in Spain, Portugal and Italy, so collect only what you have a legitimate reason to use and leave out names and phone numbers you do not need. Check Idealista's terms for your use case and ask your lawyer if you are unsure.

  • Yes. Idealista runs a developer API for property search in Spain, Portugal and Italy. You request access with a form, Idealista decides who gets a key, and approved keys come with a small monthly request quota. It covers its own search filters rather than any page you can open in a browser, so teams that need full cities every day use a scraper instead.

  • Search pages for rentals and sales at city, district and neighborhood level, with any filters in the URL, on idealista.com, idealista.pt and idealista.it. Ad pages (/inmueble/ID/) open with the same request.

  • Yes. Send an idealista.pt URL with Portugal as the country, or an idealista.it URL with Italy. Searches such as idealista.pt/arrendar-casas/lisboa/ and idealista.it/affitto-case/milano-milano/ return the same structure, in the site's language.

  • Send a GET request to https://api.zenrows.com/v1/ with your API key, the Idealista URL, Adaptive Stealth Mode and Extract turned on and Spain as the country, as in the Python example above. response.json()["parsed"]["listings"] is a list with one dictionary per ad. The zenrows package on PyPI wraps the same request.

  • Send one URL per request, or every result page of a search as a Batch job that runs them in parallel with your own ID on each result. One Batch job accepts more than 10,000 URLs, sent inline or as a CSV file.

  • Yes. Extract has a canonical real estate schema: send extract=standard instead of extract=auto and Idealista, Zillow and Redfin pages come back with the same field names. The default stays auto, which keeps Idealista's own fields such as the price per month.

  • Yes. Connect the Zenrows MCP server to Claude, Cursor, Codex or any MCP client, or give your agent the Zenrows CLI. Ask in plain language, in English or Spanish, and the agent calls Fetch and Extract for you.

  • Yes. Create a scheduled Batch job with your Idealista URLs and the same settings as a single request, and Zenrows runs it on its side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can notify your app when a run finishes, and the schedule can be paused or resumed at any time.

  • Zenrows works with n8n, Make, Zapier, Clay, Dify, LangChain, LlamaIndex, CrewAI and Mastra, plus the Python, Node.js and Go SDKs and any HTTP client. A daily Make or n8n workflow that writes new ads to Google Sheets or Airtable is the common starting point. See the integrations page for the full list.

  • JSON by default, with the structured record in parsed and the original page in html. You can also ask for the page as Markdown or plain text, which is what most LLM and RAG pipelines want.

Turn the live web into usable data.

Start building free 5,000 credits/month, always