Export Idealista listings to CSV or JSON, with price drops

· All my Apify Actors

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

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
}
  1. The first run outputs everything and becomes the baseline.
  2. Schedule it daily or hourly in Apify. Later runs output only new listings and price changes, with changeType set to new, price_drop or price_increase, and previousPrice filled in.
  3. 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:

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.