   [Home](https://scrapfly.io/)/[Scrapers](https://scrapfly.io/scrapers)/**Idealista** 

Spain · Portugal · Italy · listings · search results

# // Idealista Scraper API

Get Idealista property listings from Spain, Portugal and Italy with price, price per m², property type, bedrooms, bathrooms, built area, amenities and energy rating, plus search results with totals, including rentals in Spain, as clean JSON. Send a URL to Scrapfly and read the data.

- **Clone it and run it.** An open-source Idealista scraper for idealista.com property pages, for-sale search results and province area lists, tested against live Idealista every night.
- **Unblocker handles the bot check.** Idealista answers plain datacenter requests with a challenge page. Turn on Unblocker, set the country, and the listing comes back in the first response, no browser needed.
 
 [Get free API key](https://scrapfly.io/register) [View GitHub scraper](https://github.com/scrapfly/scrapfly-scrapers/tree/main/idealista-scraper) [Read the API docs](https://scrapfly.io/docs/scrape-api/getting-started) 

1,000 free credits. No credit card required.

 [  ](https://scrapeway.com/web-scraping-api/scrapfly) [  ](https://www.capterra.com/p/212653/Scrapfly/reviews/)  

 4.8/5 from 248 reviews 

 

 

 

 

 Idealista listings · illustration

  

 

 Listing JSON**Output**

```
{
  <span class="c-str">"id"</span>: <span class="c-str">"112948251"</span>,
  <span class="c-str">"type"</span>: <span class="c-str">"Detached house"</span>,
  <span class="c-str">"operation"</span>: <span class="c-str">"sale"</span>,
  <span class="c-str">"city"</span>: <span class="c-str">"Marbella"</span>,
  <span class="c-str">"price"</span>: <span class="c-num">4600000</span>,
  <span class="c-str">"currency"</span>: <span class="c-str">"€"</span>,
  <span class="c-str">"bedrooms"</span>: <span class="c-num">4</span>,
  <span class="c-str">"bathrooms"</span>: <span class="c-num">5</span>,
  <span class="c-str">"built_m2"</span>: <span class="c-num">727</span>,
  <span class="c-str">"plot_m2"</span>: <span class="c-num">1071</span>,
  <span class="c-str">"amenities"</span>: [
    <span class="c-str">"Air conditioning"</span>,
    <span class="c-str">"Swimming pool"</span>,
    <span class="c-str">"Garden"</span>
  ]
}
```

Printed by the Python request below[See the request ↓](#implementation)

   

  

What you can scrape from Idealista

Four kinds of Idealista data you can scrape with Scrapfly, no Idealista account required.

 

## // Scrape Idealista property listings

Asking price and price per m², property type, neighbourhood and city, built and usable floor area, plot size, bedrooms, bathrooms, number of floors, condition, parking, amenities such as air conditioning, pool or garden, the building floor and lift, the energy certificate, the full description, photos tagged by room, floor plans and the advertiser's name.

- price
- €/m²
- m² built
- bedrooms
- bathrooms
- Amenities
- Energy performance certificate
- fullScreenGalleryPics

  

## // Scrape Idealista rental listings

On idealista.com, rentals use the same request as a sale listing. They carry the monthly rent and rent per m², furnishing and kitchen, rooms, floor area, condition, amenities, the building floor and the energy certificate.

- €/month
- €/m²
- Furnished
- m² built
- Amenities

  

## // Scrape Idealista search results

Searches by area, including sale and rental searches in Spain. Each results page lists properties with title, link, price, rooms, floor area, floor, tags such as sea views or short-term rental, the agency name and a thumbnail, and the heading carries the total number of matching listings. Idealista limits how deep a search goes (the open-source scraper stops at 60 pages), so split large areas by district, property type or price.

- h1#h1-container
- item-link
- item-price
- item-detail-char
- listing-tags-container
- logo-branding

  

## // Scrape idealista.com, idealista.pt and idealista.it

Spain, Portugal and Italy share one page layout, so the same selectors work on all three sites, with labels in each site's language. Send each request from the site's own country. Search pages turn with `pagina-2.htm` on idealista.com, `pagina-2` on idealista.pt and `lista-2.htm` on idealista.it. Province pages list every municipality with its own search URL, a good starting point for covering a whole region.

- country=ES
- country=PT
- country=IT
- \#location\_list

  

 

  

Reliability

## // Load Idealista pages through its bot check

Idealista runs DataDome in front of idealista.com and a Cloudflare check in front of idealista.pt and idealista.it. A plain request from a datacenter IP gets HTTP 403 and a captcha page instead of the listing. Turn on [Unblocker](https://scrapfly.io/products/unblocker) (formerly ASP) and set the country of the site you scrape.

 `unblocker=true`

Enable Scrapfly's Unblocker for Idealista's bot check. Requests then run through residential proxies.

 

 `country=ES`

Use ES for idealista.com, PT for idealista.pt and IT for idealista.it.

 

 `.main-info__title-main`

Check for the listing title before parsing, so a challenge page never reaches your dataset.

 

 

 

  

Choose your tools

## // Scrapfly products for Idealista scraping

Start with the Web Scraping API, Unblocker and residential proxies. Add a property extraction model, screenshots or a browser session as your workflow needs them, or start from the open-source scraper. One API key covers every product.

 

### Web Scraping API for Idealista

Fetch listing and search URLs with Unblocker and residential proxies in Spain, Portugal or Italy, one request per page. The listing comes in the page HTML, ready to parse.

Read the price, the feature lists and the photo gallery from the listing page, or the result cards and total from a search page. JavaScript rendering is not needed.

```
GET /scrape?url=https://www.idealista.com/en/inmueble/112948251/&unblocker=true&country=ES
```

 [Explore Web Scraping API →](https://scrapfly.io/products/web-scraping-api)  

### Data Extraction API for Idealista listings

Add `extraction_model=<wbr>real_estate_property</wbr>` for a standard property record, with no parser to write.

Get the address, price in euros and price per m², sale or rent, room counts, property type, floor area, equipment, description, the advertiser and the main image, in the same schema you use for other property sites.

```
GET /scrape?url=https://www.idealista.com/en/inmueble/112948251/&unblocker=true&country=ES&extraction_model=real_estate_property
```

 [Explore Data Extraction API →](https://scrapfly.io/products/extraction-api)  

### Screenshot API for Idealista listings

Capture a listing or search page with its photos, price, rooms and floor area. `options=<wbr>block_banners</wbr>` removes the cookie dialog first.

Keep a dated visual record of each listing alongside your JSON.

```
GET /screenshot?url=https://www.idealista.com/en/inmueble/112948251/&country=es&options=block_banners&resolution=1920x1080&format=png
```

 [Explore Screenshot API →](https://scrapfly.io/products/screenshot-api)  

### Cloud Browser API for Idealista sessions

Call the Cloud Browser Unblock API with an Idealista URL to get a hosted Chromium session that has already passed the bot check.

Connect Playwright or Puppeteer to the returned `ws_url` and work with the loaded listing or search page in a real browser.

```
POST https://browser.scrapfly.io/unblock?key=KEY {"url": "https://www.idealista.com/en/inmueble/112948251/", "country": "es"}
```

 [Explore Cloud Browser API →](https://scrapfly.io/products/cloud-browser-api)  

### Open-source Idealista scraper on GitHub

Clone the maintained Python scraper for idealista.com property pages, for-sale search results and province area lists.

It runs on the Web Scraping API with Unblocker and Spanish proxies, parses listings into named fields, and is tested against live Idealista every night.

- scrape\_properties
- scrape\_search
- crawl\_search
- scrape\_provinces

 [View the scraper on GitHub →](https://github.com/scrapfly/scrapfly-scrapers/tree/main/idealista-scraper)  

 

  

One request

## // Fetch an Idealista listing and read its price, rooms and floor area

The JSON at the top is what this code printed on November 24, 2026, for a four-bedroom detached house for sale in Marbella: one request with Unblocker through a Spanish IP, then selected fields from the listing page.

Install `scrapfly-sdk` and `parsel`, then replace the key below. Swap the listing ID for any idealista.com listing.

**Prefer the full scraper?** The open-source [Idealista scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/idealista-scraper) scrapes idealista.com property pages, for-sale search results and province area lists, in Python 3.12. It runs against live Idealista every night. Clone it, set `SCRAPFLY_KEY`, and point it at your own listings or area.

 

 Python · scrapfly-sdkscrape + parse

```
<span class="c-key">import</span> json
<span class="c-key">import</span> re
<span class="c-key">from</span> scrapfly <span class="c-key">import</span> ScrapeConfig, ScrapflyClient

LISTING = <span class="c-str">"112948251"</span>
client = ScrapflyClient(key=<span class="c-str">"YOUR_SCRAPFLY_KEY"</span>)
result = client.scrape(ScrapeConfig(
    f"https://www.idealista.com/en/inmueble/{LISTING}/",
    unblocker=<span class="c-key">True</span>,
    country=<span class="c-str">"ES"</span>,
))
page = result.selector
title = page.css(<span class="c-str">".main-info__title-main::text"</span>).get()
<span class="c-key">if</span> <span class="c-key">not</span> title:
    <span class="c-key">raise</span> RuntimeError(<span class="c-str">"Idealista returned no listing"</span>)

<span class="c-key">def</span> block(name):
    items = page.xpath(
        f"//h2[contains(., '{name}')]"
        <span class="c-str">"/following-sibling::div[1]//li"</span>)
    lines = []
    <span class="c-key">for</span> li <span class="c-key">in</span> items:
        text = <span class="c-str">" "</span>.join(li.xpath(<span class="c-str">".//text()"</span>).getall())
        lines.append(text.strip())
    <span class="c-key">return</span> lines

basic = block(<span class="c-str">"Basic features"</span>)

<span class="c-key">def</span> number(pattern):
    <span class="c-key">for</span> line <span class="c-key">in</span> basic:
        found = re.search(pattern, line)
        <span class="c-key">if</span> found:
            <span class="c-key">return</span> int(found.group(<span class="c-num">1</span>).replace(<span class="c-str">","</span>, <span class="c-str">""</span>))

price = page.css(<span class="c-str">".info-data-price span::text"</span>).get()
currency = page.css(<span class="c-str">".info-data-price::text"</span>).get()
location = page.css(<span class="c-str">".main-info__title-minor::text"</span>).get()
home = {
    <span class="c-str">"id"</span>: LISTING,
    <span class="c-str">"type"</span>: title.split(<span class="c-str">" for "</span>)[<span class="c-num">0</span>],
    <span class="c-str">"operation"</span>: <span class="c-str">"rent"</span> <span class="c-key">if</span> <span class="c-str">" for rent"</span> <span class="c-key">in</span> title <span class="c-key">else</span> <span class="c-str">"sale"</span>,
    <span class="c-str">"city"</span>: location.split(<span class="c-str">","</span>)[-<span class="c-num">1</span>].strip(),
    <span class="c-str">"price"</span>: int(price.replace(<span class="c-str">","</span>, <span class="c-str">""</span>)),
    <span class="c-str">"currency"</span>: currency.strip(),
    <span class="c-str">"bedrooms"</span>: number(<span class="c-str">r"(\d+) bedroom"</span>),
    <span class="c-str">"bathrooms"</span>: number(<span class="c-str">r"(\d+) bathroom"</span>),
    <span class="c-str">"built_m2"</span>: number(<span class="c-str">r"([\d,]+) m² built"</span>),
    <span class="c-str">"plot_m2"</span>: number(<span class="c-str">r"plot of ([\d,]+) m²"</span>),
    <span class="c-str">"amenities"</span>: block(<span class="c-str">"Amenities"</span>),
}
print(json.dumps(home, indent=<span class="c-num">2</span>, ensure_ascii=<span class="c-key">False</span>))
```

 

 

 

  

What the data is used for

## // Common Idealista scraping use cases

### Price tracking

Track asking prices and price per m² for a neighbourhood or town, keyed on the listing ID.

 

### Rental market research

Compare monthly rents, rent per m² and furnished homes across Spanish, Portuguese and Italian cities.

 

### Investment screening

Filter listings by floor area, plot size, condition, energy rating and price per m² before a viewing.

 

### Market sizing

Count active listings for sale or rent per area from the search result totals.

 

### Agency analysis

See which agencies market the most listings in an area.

 

### Listing data enrichment

Fill property records with amenities, energy certificates, photos and floor plans.

 

 

 

  

Common questions

## // Idealista scraping FAQ

 Is scraping Idealista legal?

There is no universal answer. Legality depends on your jurisdiction, the data, the access method and how you use the result. Keep the workflow to public listing pages, avoid signed-in features such as saved searches and messages, treat advertiser names and phone numbers under GDPR where they identify a person, review Idealista's terms of use, and get legal advice for commercial use.

 Do I need Idealista API access to scrape it?

No. Idealista's Search API is for integrating its listings into your own site or app, and you request a key by describing your project to Idealista. These requests read public Idealista pages signed out, so you need a Scrapfly API key, not an Idealista account or API key.

 Do I need JavaScript rendering to scrape Idealista?

No. Listing and search pages carry their data in the first response once Unblocker has passed the bot check. Use Cloud Browser when you want to work with the page itself in a browser.

 Can I scrape Idealista rental listings?

Yes. On idealista.com, a rental listing uses the same request as a sale listing and carries the monthly rent, rent per m², furnishing, rooms, floor area and amenities. Not every listing fills every field, so check for each one before you store it.

 How do I scrape more than one page of Idealista search results?

Add `pagina-2.htm` to an idealista.com search URL for the second page, `pagina-2` on idealista.pt and `lista-2.htm` on idealista.it. Idealista limits how deep a search goes, and a page number past the limit can come back as the first page, so compare the final URL and split large areas by district, property type or price.

 Can I scrape idealista.pt and idealista.it as well as idealista.com?

Yes. The three sites share one layout, so the same selectors work on Spanish, Portuguese and Italian listings. Send each request with the matching country: ES, PT or IT. Labels follow each site's language: Portuguese listings give the typology, such as T3, where Spanish ones count bedrooms, and Italian ones count rooms (locali).

 How much does scraping Idealista cost?

An idealista.com listing or search page with Unblocker costs about 25 credits, for the residential proxy. idealista.pt and idealista.it pages add a Cloudflare check: about 40 to 75 credits a page, and more when a fresh check has to be solved in a browser. The property extraction model adds 5 credits, and 5 more for each 500 KB of page past the first 500 KB. A screenshot costs 60 credits by default, and 1 more for every 100 KB of page over 4 MB. Every request shows its cost in your dashboard log, and every account starts with 1,000 free credits.

 What are the rate limits when scraping Idealista?

Scrapfly sets no Idealista-specific limit. Your maximum parallelism is the concurrency quota on your plan, or a lower cap configured for the project. Each in-flight request uses one slot until it finishes.

 

 

  

Start with one request

## Fetch the URL. Read the JSON.

Web Scraping API with Unblocker and residential proxies, one call per Idealista URL.

Proxies across 75+ countries

[Idealista scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/idealista-scraper)[How to scrape Idealista](https://scrapfly.io/blog/posts/how-to-scrape-idealista)[All scraper pages](https://scrapfly.io/scrapers)

 

[Get free API key](https://scrapfly.io/register)[Read the docs](https://scrapfly.io/docs/scrape-api/getting-started)