Habitaclia Scraper: Spain Property Listings
Pricing
from $1.00 / 1,000 results
Habitaclia Scraper: Spain Property Listings
Scrape Habitaclia.com property listings (inmuebles) in Spain from a URL or filters. Extract price, EUR/m², price drops, energy certificate, amenities, coordinates, agency contacts, zone price comparison, rental yield estimate, risk flags, radius search, and monitor mode. Export JSON, CSV or Excel.
Pricing
from $1.00 / 1,000 results
Rating
0.0
(0)
Developer
Karen Gisela Gallegos Aguilar
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Features
Share
Habitaclia Scraper: Spain property listings API
Use this Habitaclia API alternative to scrape Habitaclia.com listings (inmuebles en venta y alquiler) in Spain and export JSON, CSV or Excel.
Looking for a flat in Barcelona, tracking rents in Girona, or hunting for investment deals in Catalonia? This scraper gets you clean Habitaclia.com data, and it also tells you if a listing is cheap for its zone, what it could earn as a rental, and if the ad hides a risk like an okupa, an auction, or a tenant inside.
Paste an input_url from your browser after filtering on Habitaclia (great for people), or use structured filters such as operation, property type, location, price, bedrooms, bathrooms, and surface (great for AI agents). When input_url is set, it overrides the filters. You get up to 1000 listings per run as CSV, Excel, or JSON.
Perfect for...
- Investors: Find listings priced below their district median and check the estimated gross rental yield in one run.
- Home buyers and renters: Watch new listings and price drops near your work, school, or the beach with a radius search.
- Real estate agencies: Track competitor stock and get agency contact data for professional listings.
- Market research: Get a ready-made market report with median price, EUR per m2, and price drop share per district.
- Data analysts: Download flat snake_case rows ready for spreadsheets, dashboards, or models.
- AI agents and workflows: Simple structured input and clean output for LangChain, CrewAI, n8n, Make, and MCP clients.
Why you'll love this scraper
- 📉 Zone price comparison: Every listing gets
zone_median_price_per_m2,price_vs_zone_pct, and adeal_label(well_below_zone...well_above_zone). It compares each listing with the other listings of the same district (or city) found in the run. - 💶 Rental yield estimate: Turn on
estimate_rental_yieldand, for sale listings, the Actor also reads a small sample of rentals in the same area. You getest_monthly_rentandgross_rental_yield_pct. The rent sample rows are not saved and not charged. - ⚠️ Investor risk flags: The Actor reads the title and description (Spanish and Catalan) and flags
occupied(okupa),auction,bare_ownership,rented_with_tenant,needs_renovation,social_housing(VPO),no_visits, andcash_only. Useexclude_riskyto drop them. - 📍 Radius search: Give a center point (
center_lat,center_lng) and getdistance_kmon every listing. Addradius_kmto keep only nearby homes. - 🏷️ Price drop details:
price_reduced_by,original_price, andprice_drop_pct, plus sorting by biggest price drop. - 🔔 Monitor mode: Schedule the same search and get only new or price-changed listings, with
previous_price,price_change,first_seen_at, anddays_tracked. - 📊 Market report: Each run saves a
MARKET_REPORTrecord with medians per city and district. - 🏙️ Many places in one run: Add several cities or provinces in
locations.max_propertiesis shared fairly between them. - ⚡ Fast and cheap: No browser. Habitaclia sends the data inside each results page, so 29 complete listings cost one request.
- 🔋 Rich data out of the box: Energy certificate (rating, kWh/m2, CO2), 15 amenity flags, floor, condition, construction year, coordinates, all photos, and agency phone, email, and website for professional listings.
What's inside the data?
Core
id,reference,title,url,short_url,operation(sale or rent),property_type,property_subtype,is_new_build,promotion_name
Pricing
price,currency,price_period(month for rentals),price_per_m2,is_price_reduced,price_reduced_by,original_price,price_drop_pct
Specs
rooms,bathrooms,surface_m2,land_area_m2,terrace_m2,floor(number),floor_label,construction_year,condition,orientation,heating,hot_water
Energy certificate
energy_certificate_status,energy_rating,energy_consumption_kwh_m2,emissions_rating,emissions_kg_co2_m2
Amenities
has_elevator,has_parking,has_terrace,has_balcony,has_pool,has_garden,has_air_conditioning,has_heating,has_storage_room,has_doorman,is_furnished,has_equipped_kitchen,is_exterior,has_sea_view,is_wheelchair_accessible, plus theamenitiesandtagslists.truemeans yes,falsemeans the listing says no, andnullmeans unknown.
Location
address,street,street_number,neighborhood,district,city,comarca,province,region,zip_code,latitude,longitude,location_precision(exact,street, orzone),distance_km
Description and media
description_snippet(always),description(optional),main_image,images,image_count,video_count,has_virtual_tour,floor_plan_count
Advertiser
advertiser_type(professional or private),agency_name,agency_legal_name,agency_id,agency_url,agency_website,agency_logo,agency_phone,agency_email,is_opportunity,is_premium
Investor insights
zone_median_price_per_m2,zone_level,zone_sample_size,price_vs_zone_pct,deal_labelrent_median_per_m2,rent_sample_level,rent_sample_size,est_monthly_rent,gross_rental_yield_pct(whenestimate_rental_yieldis on)risk_flags,has_risk_flags
Monitor and meta
monitor_status(neworchanged),previous_price,price_change,first_seen_at,days_tracked,updated_at,source,search_url,scraped_at
Sort options
Use sort_by (ignored when input_url is set, because the URL has its own order):
| Value | Order |
|---|---|
| empty | Relevance (Habitaclia default) |
newest | Newest listings first (best for monitor mode) |
price_asc | Price, low to high |
price_desc | Price, high to low |
price_drop | Biggest price drop first |
Quick start
Option A. Input URL (great for people)
- Open habitaclia.com, search a place, and apply your filters.
- Copy the results URL from the address bar (it ends in
/s, sometimes with?and filters). - Paste it into
input_url. - Set
max_propertiesand click Start.
Option B. Structured filters (great for AI agents)
- Leave
input_urlempty. - Pick
operation,property_type, andlocation(for exampleBarcelona,Sant Cugat del Vallès, orgirona-provincia). - Add any price, bedroom, bathroom, or surface filters.
- Turn on the investor options you want, set
max_properties, and click Start.
Tech details for developers
Input example (investor search)
{"operation": "comprar","location": "Valencia","locations": ["girona-provincia"],"min_rooms": 2,"max_price": 350000,"estimate_rental_yield": true,"exclude_risky": true,"sort_by": "newest","max_properties": 200}
Input example (radius search)
{"operation": "alquiler","location": "Barcelona","center_lat": 41.3874,"center_lng": 2.1686,"radius_km": 3,"max_price": 1800,"max_properties": 100}
Input example (URL + monitor mode on a schedule)
{"input_url": "https://www.habitaclia.com/comprar/viviendas/barcelona-provincia/barcelona-capital/s?sortBy=NEWEST&maxPrice=500000","monitor_mode": true,"monitor_key": "bcn-under-500k","max_properties": 100}
Output example (contact data replaced)
{"id": "20041ca2-975d-424a-84a9-548be837196f","reference": "I-04709V-W-04709V","title": "Bonita vivienda en La Pechina","url": "https://www.habitaclia.com/comprar/planta-intermedia/extramurs/valencia-capital/20041ca2-975d-424a-84a9-548be837196f/d","operation": "sale","property_type": "flat","property_subtype": "flat","is_new_build": false,"promotion_name": null,"price": 290000,"currency": "EUR","price_period": null,"price_per_m2": 4142.86,"is_price_reduced": true,"price_reduced_by": 10000,"original_price": 300000,"price_drop_pct": 3.3,"rooms": 2,"bathrooms": 1,"surface_m2": 70,"land_area_m2": null,"terrace_m2": null,"floor": 1,"floor_label": "1st","construction_year": 1930,"condition": "Good","orientation": null,"heating": null,"hot_water": null,"energy_certificate_status": "available","energy_rating": "E","energy_consumption_kwh_m2": 88,"emissions_rating": "D","emissions_kg_co2_m2": 15,"has_elevator": false,"has_parking": false,"has_terrace": null,"has_balcony": false,"has_pool": false,"has_garden": false,"has_air_conditioning": true,"has_heating": null,"has_storage_room": null,"has_doorman": null,"is_furnished": true,"has_equipped_kitchen": true,"is_exterior": true,"has_sea_view": null,"is_wheelchair_accessible": null,"amenities": ["equipped_kitchen","home_appliances","furnished","air_conditioner"],"tags": ["is_exterior"],"address": "C. del Norte 3","street": "C. del Norte","street_number": "3","neighborhood": "La Petxina","district": "Extramurs","city": "Valencia Capital","comarca": "Valencia, Zona de","province": "Valencia","region": "Comunitat Valenciana","zip_code": "46008","latitude": 39.47524249089419,"longitude": -0.391021600413751,"location_precision": "zone","description_snippet": "E&V presenta esta bonita y acogedora vivienda situado en la primera planta de un edificio sin ascensor, en una ubicación privilegiada. Esta vivienda combina el encanto de los elementos originales con el confort y el diseño moderno, creando un ambiente único y lleno de personalida","description": null,"main_image": "https://static.fotocasa.es/images/ads/c2874d19-3e15-4632-9f01-b74e476e8dee?rule=original","images": ["https://static.fotocasa.es/images/ads/c2874d19-3e15-4632-9f01-b74e476e8dee?rule=original","https://static.fotocasa.es/images/ads/5a5f4f42-43ed-443d-b5ae-b0a918e368ab?rule=original","..."],"image_count": 29,"video_count": 0,"has_virtual_tour": true,"floor_plan_count": 0,"advertiser_type": "professional","agency_name": "Engel & Völkers València","agency_id": "5953","agency_url": "https://www.habitaclia.com/inmobiliaria/engel-volkers-valencia/","agency_website": "https://www.engelvoelkers.com/es-es/valencia/?utm_source=Fotocasa_Minisite&utm_medium=Referral&utm_content=valencia&utm_campaign=Portals","agency_phone": "+34 600 000 000","agency_email": "info@agency.example","is_opportunity": true,"is_premium": true,"updated_at": "2026-10-30T11:25:12.2558739+01:00","source": "search","scraped_at": "2026-11-09T12:45:11.467Z","distance_km": null,"risk_flags": [],"has_risk_flags": false,"monitor_status": null,"previous_price": null,"price_change": null,"first_seen_at": null,"days_tracked": null,"zone_median_price_per_m2": 3113.21,"zone_level": "district","zone_sample_size": 5,"price_vs_zone_pct": 33.1,"deal_label": "well_above_zone","rent_median_per_m2": 17.5,"rent_sample_level": "city","rent_sample_size": 84,"est_monthly_rent": 1225,"gross_rental_yield_pct": 5.07}
Market report (key-value store record MARKET_REPORT, real numbers from a 50-listing Barcelona test run)
{"listings": 50,"zones": [{ "zone": "Barcelona Capital", "operation": "sale", "listings": 50, "median_price": 457500, "median_price_per_m2": 5520.84, "median_surface_m2": 93, "price_reduced_share_pct": 28, "median_gross_rental_yield_pct": 5.79 },{ "zone": "Barcelona Capital / Ciutat Vella", "operation": "sale", "listings": 19, "median_price": 395000, "median_price_per_m2": 5067.8, "median_surface_m2": 85, "price_reduced_share_pct": 31.6, "median_gross_rental_yield_pct": 6.33 }],"rent_sample_zones": [{ "zone": "Barcelona Capital / Eixample", "samples": 17, "median_rent_per_m2": 25.45 }]}
Input reference
| Field | Type | Default | Description |
|---|---|---|---|
input_url | string | empty | Habitaclia search or listing URL. Overrides all filters. |
start_urls | array | empty | More search or listing URLs for the same run. |
operation | string | comprar | comprar (buy) or alquiler (rent). |
property_type | string | viviendas | viviendas, oficinas, locales_comerciales, aparcamientos, industriales, terrenos_y_solares, inversiones. |
location | string | barcelona | City, town, or province. Plain names work. Use girona-provincia for a whole province, or a path like barcelona-provincia/barcelona-capital/eixample. |
locations | array | empty | More places with the same filters. |
min_price / max_price | integer | empty | Price range in EUR (monthly rent for rentals). |
min_rooms / max_rooms | integer | empty | Bedroom range. |
min_bathrooms | integer | empty | Minimum bathrooms. |
min_surface / max_surface | integer | empty | Built surface range in m2. |
new_build_only | boolean | false | Only new builds (obra nueva). |
private_sellers_only | boolean | false | Only private owners (no contact data is returned for them). |
sort_by | string | empty | See Sort options. |
center_lat / center_lng | number | empty | Center point for distance_km. |
radius_km | number | empty | Keep only listings within this distance. |
compare_with_zone | boolean | true | Adds zone median EUR per m2 and deal_label. |
estimate_rental_yield | boolean | false | Adds estimated rent and gross yield to sale listings. |
yield_sample_pages | integer | 3 | Rent pages (29 listings each) read per location for the yield. |
detect_risks | boolean | true | Adds risk_flags. |
exclude_risky | boolean | false | Drops listings with any risk flag. |
max_properties | integer | 100 | Max listings per run, up to 1000. In monitor mode, the number of listings checked. |
max_pages | integer | auto | Optional page limit per location. |
include_full_description | boolean | true | Adds the full description text. |
fetch_details | boolean | false | Also opens each listing page. Rarely needed, the results pages already have the data. |
monitor_mode | boolean | false | Save only new or price-changed listings vs the last run. |
monitor_key | string | default | Separate monitor memory per schedule. |
proxyConfiguration | object | Apify Proxy | Proxy settings. Failing requests are retried through Spanish residential proxies when your plan allows it. |
Notes
- Zone comparison: Medians need at least 5 listings with a price and surface in the same district, or the Actor falls back to the city. Bigger runs give better medians.
zone_levelandzone_sample_sizetell you what was used. It is a quick snapshot, not an official valuation. - Rental yield: Gross yield = estimated monthly rent x 12 / price. It does not include taxes, community fees, or vacancy. The rent sample uses the same property type and location as the sale search.
- Risk flags: They come from text and are a warning, not a legal check. Always confirm with the agency. Phrases like "no está ocupado" are ignored.
- Monitor mode: Seen listings are stored in a named key-value store (
habitaclia-monitor-<monitor_key>). A listing ischangedwhen its price moved. Usesort_by: newestso new listings show up at the top. Unchanged listings are not saved and not charged. - Many locations:
max_propertiesis split evenly between searches, so one big city does not use the whole budget. - Filters: Habitaclia applies price, bedrooms, and bathrooms on its side. The Actor also checks every filter on each listing, so rows always match what you asked for.
- Contact data: Phone and email are only returned for professional advertisers. Private sellers never get a name, phone, or email in the output.
- Public data only: The scraper reads public pages, without login. Please use the data responsibly and in line with Habitaclia's terms and privacy laws such as GDPR.
FAQ
What is the best way to start? Paste a Habitaclia.com search URL, or use the filters (location, operation, price, rooms, radius). Then run and export JSON, CSV or Excel.
Do I need to code? No. You can also call this Habitaclia API alternative from your own code or automation tools.
What do deal labels, rental yield and risk flags mean? The Actor can compare price vs the zone, estimate a gross rental yield, and flag texts that mention risks such as an auction or a tenant (when those signals appear on the ad). These are estimates from public listing data, not official valuations.
What does monitor mode do? On a schedule, later runs can focus on new or changed listings so you do not re-download the same ads every day.
Is this an official Habitaclia API? No. It reads public listing pages and is not affiliated with Habitaclia. Follow their terms and applicable privacy laws.
Related Actors
More data extractors by kareninatech:
- Fotocasa Scraper — Spain property listings
- BOE Subastas Scraper — Spain official auctions
- Argenprop Scraper — Argentina and Uruguay listings
- Fincaraiz Scraper — Colombia property listings
Need a custom scraper or AI agent?
Need extra fields, another Spanish portal, price alerts, or a full data pipeline? Open an issue on this Actor and let's build it together.