Home / How-to guides / Spain Property Scraper: Pisos.com & Habitaclia, Sale & Rent

How to export Pisos.com and Habitaclia listings

Homes for sale and rent in Spain from Pisos.com and Habitaclia, with new-listing and price-drop alerts.

Open on Apify ↗Actor page

Updated 2026-11-24

The problem

To compare prices in a Spanish city you would copy listings from two portals into a sheet. The same flat is often on both, with slightly different data.

Steps

  1. Open the Actor on Apify. Create a free Apify account if you do not have one. Every account gets free monthly credit, enough to try this on real data. Spain Property Scraper: Pisos.com & Habitaclia, Sale & Rent ↗
  2. Fill in the input. The input is a small JSON. These are the first fields and example values:
input.json
{
  "operation": "sale",
  "cities": [
    "madrid",
    "barcelona"
  ],
  "portals": [
    "pisos.com",
    "habitaclia"
  ]
}
  1. Run it. Press Start in the console, or call it from the API, a schedule, n8n, Make or Zapier. See the run guide for code you can copy. Run guide (API, n8n, Make, MCP)
  2. Take the results. Open the Output tab to preview the dataset and download it as JSON, CSV or Excel. Through the API you read the same dataset items.

A tip for this Actor

Use onlyNewOrChanged on a schedule to catch new listings and price changes without paying again for the ones you already have.

Input fields

FieldTypeDescription
operationstringsale or rent.
citiesarrayCities or provinces as they appear in portal URLs.
portalsarraypisos.com, habitaclia or both.
propertyTypestringPisos.com only: pisos (apartments) or casas (houses).
startUrlsarrayOptional search-result pages from either portal with your own filters.
maxListingsPerSourceintegerPer city and portal. In incremental mode, how many listings are checked.
onlyNewOrChangedbooleanReturn only listings that are new or whose price changed since your last run.
minPrice / maxPriceintegerOptional price filters in EUR.
minRooms / minAreaM2integerOptional rooms and area filters.

Real output sample

First item of 16 from a real run, shortened for display. The full sample is a download on the Actor page.

spain-property-listings.json
{
  "portal": "pisos.com",
  "id": "69258610464.280500",
  "url": "https://www.pisos.com/comprar/piso-prado_de_somosaguas-69258610464_280500/",
  "operation": "sale",
  "propertyType": "pisos",
  "title": "Piso en calle Solano",
  "price": 1060000,
  "currency": "EUR",
  "pricePerM2": 5146,
  "areaM2": 206,
  "rooms": 4,
  "bathrooms": 3,
  "floor": "1ª planta",
  "zone": "Prado de Somosaguas",
  "city": "Pozuelo de Alarcón",
  "region": null,
  "postalCode": null,
  "latitude": 40.4115232,
  "longitude": -3.7959546,
  "sellerType": "agency",
  "agency": "Inmobaralia",
  "agencyUrl": "https://www.pisos.com/inmobiliaria-inmobaralia/",
  "description": "Inmobaralia presenta esta magnífica vivienda situada en prado de somosaguas, una de las zonas residenciales…",
  "imageUrl": "https://fotos.imghs.net/mm-wp/2805/69258610464.280500/2805_69258610464_a727b564-8be6-4d7f-a20a-4ec6137290a7…"
}

What it costs

Pay per event: listing is charged $0.00 each. Apify platform usage is billed separately and is usually a few cents per run.

ResultsResult events
100$0.07
1,000$0.65
10,000$6.50
100,000$65

Limits you should know

  • Only public search-result pages are read. The Actor does not log in and does not open each listing's detail page.
  • It does not collect phone numbers or names of private sellers: only property data and the agency name for professional listings.
  • Pisos.com's city page for a big city can include nearby municipalities from the same province. Habitaclia returns the city itself.
  • Listings can appear on both portals. Use portal and id, or compare title, price and areaM2, to deduplicate.

Questions

Do I need an account or API key?

No.

Does it work for rent and for sale?

Yes. Set operation to rent or sale.

Can I use my own filters?

Yes. Paste a search URL with your filters from either portal into startUrls.

How do I get only price drops?

Turn on onlyNewOrChanged and keep the items where changeType is price_changed and price is below previousPrice.

Does it collect phone numbers or private sellers' names?

No. It returns property data and the agency name for professional listings only.

Rate it on Apify

Used it? A rating or review on Apify helps other people judge it, and tells us what to fix.

Rate it on Apify ↗

Related guides

More guides