Habitaclia Spain Property Scraper
Independent tool. Trademarks referenced on this page are the property of their respective owners and are used only to identify the public website this tool reads. No affiliation or endorsement.
Habitaclia Spain Property Scraper
Collect property listings from Habitaclia (habitaclia.com), one of Spain's biggest property portals and the strongest one in Catalonia. Covers homes for sale and for rent, offices, commercial premises, parking, land, investment properties and industrial buildings in all 52 Spanish provinces.
What does the Habitaclia Spain Property Scraper do?
- Returns complete listings: price, price per square metre, price drops, full description, exact coordinates, postal code, rooms, bathrooms, built and plot area, floor, condition, energy rating with consumption and emissions, features, photos and the advertiser's contact details
- Covers every province in Spain, from Barcelona and Madrid to the Balearic and Canary Islands, Ceuta and Melilla
- Handles sale and rental listings, and seven property types, in a single run
- Reaches every listing, including provinces and cities with tens of thousands of ads
- Narrows by price, built area, bedrooms and bathrooms, or by pasting any Habitaclia search page (a city, district or neighbourhood) with its filters kept
What data does it extract?
| Field | Description |
|---|---|
listing_id |
Habitaclia listing id |
reference |
Advertiser's own reference for the property |
listing_url |
Link to the listing on Habitaclia |
title |
Listing headline (empty when the advertiser left it blank) |
price |
Asking price in EUR, or monthly rent for rentals. Empty when the price is on request |
price_per_sqm |
Asking price per square metre of built area, in EUR |
price_drop |
How much the asking price was cut, in EUR, when the listing shows a price drop |
currency |
EUR |
transaction_type |
sale or rent |
property_type |
Subtype such as flat, house, penthouse, chalet, office |
address |
Street and number |
neighborhood, district, municipality, province |
Location hierarchy |
region, autonomous_community, postal_code |
Comarca, autonomous community and postal code |
location_precision |
How precisely the advertiser shows the location: exact, street or zone |
latitude, longitude |
Coordinates |
rooms, bathrooms |
Bedroom and bathroom counts |
area_sqm |
Built area in square metres |
land_area_sqm |
Plot area in square metres, for houses and land |
floor |
Floor number, or mezzanine |
construction_year |
Year the building was constructed |
condition |
Condition of the property, such as GOOD or NEEDS_RENOVATION |
listing_kind, property_category |
How Habitaclia classes the listing (for example secondHand) and its broad category (flat, house) |
orientation, heating, hot_water |
Facing direction, heating type and hot water system |
energy_certificate |
Energy efficiency rating, A to G |
energy_consumption_kwh_m2 |
Energy consumption in kWh per square metre per year |
energy_emissions_rating, energy_emissions_kg_co2_m2 |
Emissions rating, A to G, and emissions in kg CO2 per square metre per year |
description |
Full listing text, in the language the advertiser wrote it |
features |
Listed amenities such as ELEVATOR or TERRACE |
property_traits |
Extra tags such as IS_EXTERIOR, IS_VILLA or HAS_A_FIREPLACE |
agency_name, agency_url |
Advertiser name and website |
agency_id, agency_profile_url |
Advertiser id and profile page on Habitaclia |
agent_phone, agent_email |
Contact details |
image_urls, image_count |
Photo URLs and the number of photos |
video_urls |
Video URLs, when the listing has a video |
updated_at |
When the listing was last updated |
scraped_at |
When the record was collected |
Fields the advertiser did not fill in come back empty. In a sample of 300 listings from Barcelona, Madrid and Girona, price, coordinates, area, description and contact phone were present on every listing, bathrooms on 96 percent, rooms on 90 percent and the energy rating on 62 percent.
How to use it
- Choose Transaction Types (for sale, for rent, or both) and Property Types.
- Choose the Provinces to cover. Leave the list empty to cover the whole country.
- Set Max Items to the number of listings you want.
- Optionally set a price range, a built-area range, a minimum number of bedrooms or a minimum number of bathrooms.
- Run it and download the dataset as JSON, CSV or Excel.
Input
| Field | Type | Default | Description |
|---|---|---|---|
maxItems |
integer | 10 | Maximum number of listings to return |
transactionTypes |
array | ["buy"] |
buy, rent, or both |
propertyTypes |
array | ["home"] |
home, parking, commercial, office, land, investment, industrial |
provinces |
array | ["barcelona"] |
Provinces to cover. Empty means all of Spain |
searchUrls |
array | empty | Habitaclia search page URLs. When set, these replace the province selection |
minPrice |
integer | none | Lowest price in EUR (monthly rent for rentals) |
maxPrice |
integer | none | Highest price in EUR (monthly rent for rentals) |
minArea |
integer | none | Smallest built area in square metres |
maxArea |
integer | none | Largest built area in square metres |
minRooms |
integer | none | Fewest bedrooms |
minBathrooms |
integer | none | Fewest bathrooms |
Example, 500 flats for rent in Madrid under 1,500 EUR a month:
{
"maxItems": 500,
"transactionTypes": ["rent"],
"propertyTypes": ["home"],
"provinces": ["madrid"],
"maxPrice": 1500
}
Example, everything on sale in one neighbourhood:
{
"maxItems": 2000,
"searchUrls": ["https://www.habitaclia.com/comprar/viviendas/barcelona-provincia/barcelona-capital/eixample/s"]
}
Resuming a large crawl
Every run emits a resumeCursor in its Output. If a large crawl stops before it finishes — because it hit maxItems, your spend cap (maxTotalChargeUsd), or was aborted — start a new run with the same input plus that resumeCursor to continue from where it left off. The crawl resumes from the queued work the previous run didn't reach.
- You are not re-charged for records the earlier run already delivered.
- Resume within your account's run-retention window — on the free tier, roughly your 10 most recent runs. Once the source run is pruned, its
resumeCursoris no longer valid. resumeCursoris opaque — supply it unmodified.
Output example
{
"listing_id": "d5645052-64df-4a30-917f-407945b02da0",
"reference": "V02363",
"listing_url": "https://www.habitaclia.com/comprar/planta-intermedia/de-la-riera/centre/vic/d5645052-64df-4a30-917f-407945b02da0/d",
"price": 395000,
"currency": "EUR",
"transaction_type": "sale",
"property_type": "flat",
"address": "De la Riera",
"district": "Centre",
"municipality": "Vic",
"province": "Barcelona",
"latitude": 41.9294,
"longitude": 2.2533,
"rooms": 3,
"bathrooms": 2,
"area_sqm": 104,
"energy_certificate": "E",
"agency_name": "CODOLGESTIO",
"agent_phone": "+34938863638"
}
Good to know
- Each listing appears once per run, identified by
listing_id. - Listing text is returned as written, mostly Spanish or Catalan.
- Listings change all day. Counts reflect the portal at the moment of the run.
Support
Questions or a field you need? Write to actor-support@orbtop.com.