Habitaclia Scraper: Spain & Catalonia Homes for Sale, Rent avatar

Habitaclia Scraper: Spain & Catalonia Homes for Sale, Rent

Pricing

from $2.00 / 1,000 listings

Go to Apify Store
Habitaclia Scraper: Spain & Catalonia Homes for Sale, Rent

Habitaclia Scraper: Spain & Catalonia Homes for Sale, Rent

Scrape Habitaclia homes for sale and to rent by province and city (Barcelona, Girona, Tarragona, Lleida and more): price, price drop, m², rooms, baths, energy certificate, agency, address, coordinates and photo. No login. $2 per 1,000 listings.

Pricing

from $2.00 / 1,000 listings

Rating

0.0

(0)

Developer

Connor Prussin

Connor Prussin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

Habitaclia Scraper exports homes for sale and to rent from Habitaclia, the leading property portal in Catalonia (Barcelona, Girona, Tarragona, Lleida) that also covers the rest of Spain, as clean JSON, CSV or Excel. It reads the same public search pages the site shows, with no login and no API key:

  • ✅ For sale and to rent, by province and city (or comarca), e.g. Barcelona, Sant Cugat del Vallès, Girona, Baix Llobregat.
  • ✅ Price in euro, price drop and previous price, price per m².
  • ✅ Size and layout: m², plot, bedrooms, bathrooms, floor, condition, year built, features (lift, terrace, parking, A/C, ...).
  • ✅ Energy certificate: consumption and emissions rating (A–G) and values.
  • ✅ Location: address, district, city, comarca, province, latitude and longitude.
  • ✅ Agency name and Habitaclia agency page. Phone numbers and emails are never output.
  • ✅ Main photo and photo count. Deduplicated across pages and cities; fast plain HTTP requests, no browser. Pay only for listings written to your dataset.

Start in one minute

Click Start with the prefilled input:

{
"operation": "buy",
"province": "barcelona",
"city": ["barcelona"],
"maxItems": 20,
"proxyConfiguration": {
"useApifyProxy": true
}
}

You get: 20 homes for sale in Barcelona with price, priceDrop, surfaceM2, rooms, bathrooms, energyConsumption, agency, district and url.

Cost: $0.04: 20 listings × $0.002, plus the $0.00005 actor-start fee.

Use with an AI assistant

Connect the Apify MCP server to Claude, ChatGPT, Cursor or any MCP client (https://mcp.apify.com?tools=cprussin/habitaclia-listings loads only this actor), then paste:

Use the Apify actor cprussin/habitaclia-listings to get 100 flats for rent in Barcelona and list the cheapest per m² with district, rooms and energy rating.

Recipes

Rentals in several towns

{
"operation": "rent",
"province": "barcelona",
"city": ["sabadell", "terrassa", "sant-cugat-del-valles"],
"maxItems": 300
}

A whole comarca for sale

Comarcas work like cities: barcelones, baix-llobregat, maresme, valles-occidental.

{
"operation": "buy",
"province": "barcelona",
"city": ["maresme"],
"maxItems": 1000
}

Price drops in Girona

Run it, then filter priceDrop > 0 in the dataset.

{
"province": "girona",
"city": ["girona"],
"maxItems": 500
}

Who uses Habitaclia data?

  • Investors and buyers: track asking prices, price per m², price drops and energy ratings by district.
  • Estate agents: monitor new listings and competing agencies in their area.
  • Lettings and relocation: compare rents across Barcelona neighbourhoods and nearby towns.
  • Analysts and journalists: study housing supply and prices in Catalonia.
  • AI agents: give an LLM live Spanish property listings through the Apify API or MCP server.

How does the Habitaclia scraper work?

  1. It checks habitaclia.com/robots.txt and only fetches allowed URLs (never pag=, sort or filter parameters, and never the phone-reveal pages).
  2. It loads the search page, e.g. habitaclia.com/comprar/viviendas/barcelona-provincia/barcelona-capital/s, and reads the listing data embedded in it (about 29 per page).
  3. It follows /s/2, /s/3, ... until maxItems listings or the last page.

How do I choose which properties to scrape?

FieldDescriptionExample
operationbuy or rent"rent"
provinceSpanish province"barcelona"
cityCities or comarcas in the province["barcelona", "badalona"]
maxItemsMax listings in total500
proxyConfigurationApify Proxy (on by default; datacenter is enough){ "useApifyProxy": true }
  • City names: plain names work (Sant Cugat del Vallès); the province capital (barcelona, girona, ...) maps to Habitaclia's barcelona-capital. If a name doesn't match, copy the slug from a Habitaclia search URL: habitaclia.com/comprar/viviendas/barcelona-provincia/sant-cugat-del-valles/s.

What data do you get for each property?

{
"id": "487f4118-c563-43af-8214-da7154d3dca8",
"reference": "5740V",
"title": "Piso alto con terraza, excelentes vistas, parking y trastero en Vila Olímpica, Barcelona",
"operation": "buy",
"kind": "secondHand",
"price": 770000,
"priceDrop": null,
"previousPrice": null,
"pricePerM2": 7476,
"currency": "EUR",
"surfaceM2": 103,
"landAreaM2": null,
"rooms": 3,
"bathrooms": 2,
"propertyType": "flat",
"propertySubtype": "flat",
"floor": "SEVENTH",
"condition": "ALMOST_NEW",
"constructionYear": null,
"features": [
"ELEVATOR",
"PRIVATE_PARKING",
"AIR_CONDITIONER",
"OFFICE_KITCHEN",
"SUITE_BATHROOM"
],
"energyConsumption": "D",
"energyConsumptionValue": 94,
"energyEmissions": "D",
"energyEmissionsValue": 16,
"energyCertificateStatus": "AVAILABLE",
"agency": "Walter Haus S.L.",
"agencyUrl": "https://www.habitaclia.com/inmobiliaria/walter-haus-s-l/",
"privateSeller": false,
"address": "Avinguda del Bogatell",
"district": "Sant Martí",
"city": "Barcelona Capital",
"comarca": "Barcelonès",
"province": "Barcelona",
"latitude": 41.39238340019232,
"longitude": 2.191090857316226,
"imageUrl": "https://static.fotocasa.es/images/ads/f378822a-6a07-4c86-be95-fe6c5ae0ed64?rule=original",
"imageCount": 42,
"updatedAt": "2026-10-30T09:27:22.2048697+01:00",
"url": "https://www.habitaclia.com/comprar/planta-intermedia/avinguda-del-bogatell/sant-marti/barcelona-capital/487f4118-c563-43af-8214-da7154d3dca8/d",
"searchUrl": "https://www.habitaclia.com/comprar/viviendas/barcelona-provincia/barcelona-capital/s",
"scrapedAt": "2026-10-30T14:05:46.223Z"
}

How much does it cost to scrape Habitaclia?

Pay per event:

  • $0.002 per listing ($2 per 1,000).
  • $0.00005 per run start. Platform compute is included.

FAQ

Why is there no phone number? The actor never collects phone numbers or emails. Contact the agency through the listing url.

Why is address empty for some listings? The advertiser chose to hide the exact address; coordinates are approximate then.

Can I use sort or price filters? Not yet: Habitaclia's robots.txt disallows the sort and filter parameters, so filter the dataset instead (e.g. by price or rooms).

Is it legal? The actor reads public listing pages that robots.txt allows, without login, and outputs listing data and agency names only. Check Habitaclia's terms for your use case.