Export Idealista listings to CSV or JSON, with price drops

Idealista is where most homes for sale and rent in Spain, Italy and Portugal are listed. If you're researching asking prices in a Madrid district, comparing rents in Barcelona, or hunting for flats whose price was just cut, you want those listings in a spreadsheet. Idealista gives you 30 at a time on a results page, with no export button.
I built a scraper that turns an Idealista search into rows, one per listing, and a monitor that sends only what's new or re-priced. Here's what I learned about Idealista's data along the way.
What to watch for
- 30 listings per results page.
maxItems30 is one page, 300 is ten.0means every page of the search, up to the scraper's own cap of 100 pages (3,000 listings). Split bigger areas into districts or price bands. - It's not fast. Pages take 10 to 30 seconds each. Pages of one search run 5 at a time, so 90 listings take about 35 seconds.
- Newest first doesn't work on idealista.com. It works on idealista.it and idealista.pt. On the Spanish site a search runs in Idealista's default order, which matters for monitors (see below). Cheapest, most expensive and biggest price drop work on all three.
- "Rooms" means different things. Bedrooms in Spain ("3 hab.") and Portugal ("T3"), but *locali*, all rooms, in Italy.
- Coordinates are approximate. With full details on,
latitudeandlongitudeare the centre of the area Idealista shows on its map, not the exact door. Many advertisers hide the exact address. - Some fields need the listing page.
bathrooms,yearBuilt,energyRatingand the full description only come with full details on, which costs extra. - Typed locations are simple. A one-word city becomes Idealista's place name ("Madrid" becomes
madrid-madrid). For districts, towns or filters like lift, terrace or pool, search on Idealista and paste the URL.
Getting the data
I packaged this as an Apify Actor, Idealista Scraper. A Madrid flat from a search, with its price cut, comes back like this (trimmed):
{
"id": "es-109053846",
"url": "https://www.idealista.com/inmueble/109053846/",
"title": "Piso en Calle Mayor, Palacio, Madrid",
"propertyKind": "Piso",
"district": "Palacio",
"municipality": "Madrid",
"operation": "sale",
"price": 1570000,
"currency": "EUR",
"priceText": "1.570.000 €",
"previousListPrice": 1650000,
"priceDropAmount": 80000,
"priceDropPercent": 5,
"rooms": 3,
"sizeM2": 177,
"floor": 3,
"floorText": "3ª planta exterior con ascensor",
"hasLift": true,
"exterior": true,
"hasParking": false,
"photoCount": 31,
"has3dTour": true,
"agencyName": "Engel & Völkers Madrid",
"isPrivateSeller": false,
"country": "es",
"changeType": null,
"previousPrice": null
}
Every row has the same keys, and detail and monitor fields are null when those options are off. You can paste Idealista search URLs into searchUrls, or type locations and pick the filters. Flats to rent in Barcelona up to €1,500 a month:
curl -X POST "https://api.apify.com/v2/acts/rjmacarthy~idealista-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"locations": ["Barcelona"],
"country": "es",
"operation": "rent",
"maxPrice": 1500,
"maxItems": 30
}'
country is es, it or pt. Min and max price, minRooms and min size are written into the search and also checked on every row, so nothing outside them reaches your dataset. Set sortBy to biggest-price-drop for the deepest cuts first.
Monitoring new listings and price changes
Set monitorMode to changes and give the search a stateKey:
{
"locations": ["Milano"],
"country": "it",
"sortBy": "newest",
"monitorMode": "changes",
"stateKey": "milano-sale",
"maxItems": 60
}
- The first run outputs everything and becomes the baseline.
- Schedule it daily or hourly in Apify. Later runs output only new listings and price changes, with
changeTypeset tonew,price_droporprice_increase, andpreviousPricefilled in. - Send each row to Slack, email or Google Sheets with a webhook or a Make, Zapier or n8n step.
Use new instead of changes if you only want new listings. On idealista.com, where newest first isn't available, monitor in the default order and set maxItems to cover the whole search, or keep the search narrow, so new listings don't land outside the pages you check.
Pricing
Pay per event, no run fee beyond Apify's $0.00005 start:
- $0.0004 per listing, so 1,000 listings cost about $0.40.
- $0.005 extra per listing with full details on, only when the listing page was fetched, so $0.0054 a listing.
- $0.005 per results page checked in monitor mode, even when nothing new is found. One one-page search checked daily is about $0.15 a month; a two-page search checked hourly is $0.24 a day. Add $0.0004 per new or changed listing. Normal runs never pay this fee.
On the free Apify plan each run is limited to 5 page requests, 5 results pages or up to 150 listings. Any paid plan removes the limit. You can also set a maximum cost per run and the Actor stops cleanly when it's reached. A results page that still fails after 3 retries is skipped and not charged.
It reads public listing pages only, with no login. Private sellers are flagged with isPrivateSeller, and no names, phone numbers or emails are collected.