Fotocasa Scraper: Spain Property Listings
Pricing
from $1.00 / 1,000 results
Fotocasa Scraper: Spain Property Listings
Scrape Fotocasa.es property listings (inmuebles) in Spain from a search URL or filters. Extract price, EUR/m², price drops, rooms, baths, m², amenities, optional energy certificate, address, coordinates, agency contacts, days on market, and monitor mode.
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
Fotocasa Scraper: Spain property listings API
Use this Fotocasa API alternative to scrape Fotocasa.es listings (inmuebles en venta y alquiler) across Spain and export JSON, CSV or Excel.
Want to find your next flat in Madrid, track rental prices in Barcelona, or analyze the Spanish housing market? This scraper makes it super easy!
Paste an input_url from your browser once you have already filtered on Fotocasa (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. Either way, you get up to 1000 Fotocasa.es listings per run with price, EUR per m2, price drops, days on market, decoded amenities, optional energy certificate, agency details, and photos as CSV, Excel, or JSON.
Perfect for...
- Home buyers and renters: Monitor new listings and spot the best deals in your city or neighborhood.
- Real estate agencies: Track competitor inventory, pricing, and how fast listings appear.
- Investors: Compare price per m2 across cities, districts, and property types to find yield opportunities.
- Market research: Analyze average prices, rent levels, and supply by zone across Spain.
- Data analysts: Download clean, flat rows ready for dashboards, spreadsheets, or models.
- Proptech builders: Feed listing data into valuation tools, alerts, and price trackers.
- AI agents: Power bots that need live Spanish property listings on demand.
- RAG systems: Feed listing descriptions, specs, and pricing into retrieval pipelines.
- AI workflows: Plug structured real estate data into LangChain, AutoGPT, CrewAI, and similar stacks.
Why you'll love this scraper
- 🔗 Input URL or filters: Paste a search URL if you already filtered in the browser, or use structured filters for agent friendly runs.
input_urlalways wins when set. - 🏷️ Website matched filters: Operation, property type, location, and zone use the same slugs as Fotocasa, so what you see on the site is what you get.
- 📊 Rich listings: Price, price per m2, price drops, previous price, days on market, rooms, bathrooms, surface, decoded floor, conservation, orientation, antiquity, amenity flags, address, coordinates, agency, and every photo out of the box.
- ⚡ Fast and light: Reads the data Fotocasa already ships in each results page. No browser needed, so runs are quick and cheap.
- 🔋 Optional energy certificate: Turn on
fetch_detailsto open each listing page for CEE rating, consumption, emissions, agency website/email when present, and the Spanish amenities list. Competitors often bill this as an extra event. - 🔔 Monitor mode: Remember listings across scheduled runs and emit only new or price-changed rows (
monitor_status). The main Store competitor does not ship this. - 🏙️ Multi-city and more ops: Search several locations in one run, plus buy, rent, shared room, transfer, and rent-to-buy.
- 🧹 Clean output: Flat snake_case fields, deduplicated by listing id, with consistent
nullvalues when something is missing. - 🛑 Hard caps: Returns at most
max_propertieslistings per run (up to 1000), then stops cleanly. - 🇪🇸 All of Spain: Any city, province, or the whole country (
espana), for sale or for rent.
What's inside the data?
Core
id,title,url,operation(sale or rent),property_type,building_type,building_subtype
Pricing
price,currency,price_period(month for rentals),price_per_m2,price_reduced_by,is_price_reduced,previous_price(before the drop, or from monitor memory)
Specs
rooms,bathrooms,surface_m2,floor(decoded number),floor_label,floor_codeconservation_status,orientation,antiquity,hot_water,heating(human labels plus*_codefields)- Amenity flags from the listing URL:
has_elevator,has_terrace,has_parking,has_heating,has_air_conditioning,has_pool,has_garden,has_storage,has_patio,has_balcony,is_furnished,has_tv,has_internet, plusamenitieslist is_exterior,is_luxury,is_modernfrom Fotocasa dynamic featuresextra_features(raw Fotocasa feature codes)
Location
address,street,street_number,neighborhood,district,city,province,region,zip_code,latitude,longitude,is_exact_address
Description and media
description_snippet(always),description(full text, optional),main_image,images,image_count
Advertiser
agency_name,advertiser_type(professional or private),agency_phone,agency_url,agency_logo,agency_id- With
fetch_details:agency_website,agency_emailwhen Fotocasa exposes them
Flags
is_new_construction,is_new_listing,is_highlighted,is_opportunity,has_video,has_virtual_tour,has_floor_plans,is_occupied,is_bare_ownership,is_auctioned,is_rented_with_tenants,is_temporary_rental,has_subsidies,has_quality_seal
Energy certificate (when fetch_details is true)
energy_rating,energy_consumption,emissions_rating,emissions,energy_certificate_status,construction_type,ground_surface_m2,occupancy_status,detail_fetched
Meta
publication_date,listed_date,days_on_market,monitor_status(neworchangedin monitor mode),scraped_at
Sort options
Use sort_by with one of these values (ignored when input_url is set, because the URL already carries its own order):
| Value | Order |
|---|---|
| empty | Relevance (Fotocasa default) |
newest | Newest listings first |
price_asc | Price, low to high |
price_desc | Price, high to low |
surface_desc | Largest first |
surface_asc | Smallest first |
Quick start
Option A. Input URL (great for people)
- Open fotocasa.es, search a location, and apply your filters.
- Copy the results URL from the address bar (it ends in
/l, sometimes followed by?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 examplemadrid-capital). - Add any price, bedroom, bathroom, or surface filters you need.
- Choose
sort_by, setmax_properties, and click Start. - Export CSV, Excel, or JSON when done.
Tech details for developers
Input example (filters)
{"operation": "alquiler","property_type": "viviendas","location": "barcelona-capital","min_rooms": 2,"max_price": 2000,"sort_by": "newest","max_properties": 100}
Input example (URL)
{"input_url": "https://www.fotocasa.es/es/comprar/viviendas/madrid-capital/barrio-de-salamanca/l?maxPrice=900000","max_properties": 200,"include_full_description": false}
Output example
{"id": 189130087,"title": "Piso en venta en Carrer de les Agudes 26, Nou Barris","url": "https://www.fotocasa.es/es/comprar/vivienda/barcelona-capital/ascensor-no-amueblado/189130087/d","operation": "sale","property_type": "HOMES","building_type": "Flat","building_subtype": "GroundFloorWithGarden","price": 93000,"currency": "EUR","price_period": null,"price_per_m2": 1309.86,"price_reduced_by": 1000,"is_price_reduced": true,"rooms": 1,"bathrooms": 1,"surface_m2": 71,"floor": 3,"address": "Carrer de les Agudes 26, Nou Barris","street": "Carrer de les Agudes","neighborhood": "Ciutat Meridiana","district": "Nou Barris","city": "Barcelona","province": "Barcelona","region": "Cataluña","zip_code": "08033","latitude": 41.4620944,"longitude": 2.1772116,"is_exact_address": true,"description_snippet": "Espacio de 70 metros actualmente como almacén, con puerta de acceso como el resto de vecinos dentro de la portería, sumando persiana exterior directa a la calle, que puedes reformar como vivienda o...","description": null,"agency_name": "INMOBILIARIA VENDOPOR","advertiser_type": "professional","agency_phone": "+34 900 000 000","agency_url": "https://www.fotocasa.es/es/inmobiliaria-inmobiliaria-vendopor/comprar/viviendas/espana/todas-las-zonas/l?clientId=9202769691649&publisherId=8dbe36f2-4489-4e00-82e7-e21319808b07","agency_logo": null,"main_image": "https://static.fotocasa.es/images/ads/2e26e3db-ebaf-4dc2-b8f0-83ab5b2a08a0?rule=original","images": ["https://static.fotocasa.es/images/ads/2e26e3db-ebaf-4dc2-b8f0-83ab5b2a08a0?rule=original","https://static.fotocasa.es/images/ads/e6b42013-d801-4d13-8000-db2d2f4f3781?rule=original","..."],"image_count": 47,"publication_date": "2026-03-17T14:14:55.953","is_new_construction": false,"is_highlighted": false,"is_opportunity": false,"has_video": true,"has_virtual_tour": false,"has_floor_plans": false,"is_occupied": false,"is_bare_ownership": false,"is_auctioned": false,"is_rented_with_tenants": false,"extra_features": {"antiquity": 7,"bathrooms": 1,"conservationStatus": 4,"floor": 3,"orientation": 5,"rooms": 1,"surface": 71},"scraped_at": "2026-11-05T12:53:51.669Z"}
Input reference
| Field | Type | Default | Description |
|---|---|---|---|
input_url | string | empty | Fotocasa search results URL. Overrides all filters when set. |
start_urls | array | empty | Extra search URLs for the same run. Also overrides filters. |
operation | string | comprar | comprar, alquiler, compartir, traspaso, or alquiler-con-opcion-a-compra. |
property_type | string | viviendas | viviendas, pisos, aticos, duplex, estudios, lofts, bajos, chalets, adosados, casas-rurales, oficinas, locales, garajes, terrenos, trasteros, naves-industriales, edificios. |
location | string | madrid-capital | Fotocasa location slug, for example barcelona-capital, valencia-provincia, espana. |
locations | array | empty | Extra locations to search in the same run (same filters). |
zone | string | empty | Optional district slug inside the location, for example chamberi or barrio-de-salamanca. |
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 | Surface range in m2. |
sort_by | string | empty | See Sort options above. |
max_properties | integer | 100 | Max listings per run, up to 1000. |
include_full_description | boolean | true | Adds the full description text. |
fetch_details | boolean | false | Open each detail page for energy certificate, amenities list, agency website/email. |
monitor_mode | boolean | false | Emit only new or changed listings vs the last run. |
monitor_key | string | default | Namespace for monitor memory across schedules. |
proxyConfiguration | object | Apify Proxy | Proxy settings. Switch to RESIDENTIAL with country ES if you hit blocks. |
Notes on filters
- Location slugs: Fotocasa uses
-capitalfor the city and-provinciafor the whole province, for examplemadrid-capitalvsmadrid-provincia. If you type a plain name likeSevilla, the scraper triessevilla, thensevilla-capital, thensevilla-provincia. - Zones: Copy the district slug from the Fotocasa URL after choosing a zone on the site, for example
/madrid-capital/chamberi/l. - Rentals: For
alquiler, prices are monthly andprice_periodismonth. - Price drops:
price_reduced_byis the amount Fotocasa shows as a reduction,is_price_reducedistruewhen it is above zero, andprevious_priceis the price before that drop (or the last seen price in monitor mode). - Floor codes: Fotocasa search JSON stores floor as an opaque code. This Actor decodes it to a real floor number (
0= ground / Bajos) and keepsfloor_codefor the raw value. - Amenity flags without detail fetch: Search result URLs already embed amenity tokens (ascensor, terraza, parking...). Those become boolean flags at no extra request cost.
- Energy certificate: Only available when
fetch_detailsis enabled. One extra HTTP request per listing. - Monitor mode: Stores seen ids under a named key-value store. Unchanged listings (same price and listed date) are skipped. Emitted rows get
monitor_status=neworchanged. - Contact data: Phone numbers are only returned for professional advertisers (agencies). Listings from private individuals never include a phone. Agency email/website come from the detail page when present.
- Public data only: The scraper reads public search and detail pages. Please use the data responsibly and in line with Fotocasa's terms and applicable privacy laws such as GDPR.
FAQ
What is the best way to start? Paste a Fotocasa.es search URL after you set filters in the browser, or use the structured filters (operation, property type, location, price, rooms). If input_url is set, it overrides the filters.
Do I need to code? No. Run it in Apify Console and export JSON, CSV or Excel. You can also call this Fotocasa API alternative from your own code or tools.
When do I get the energy certificate? Turn on fetch_details. That opens each listing page for CEE rating and extra agency fields. It is optional and uses one extra request per listing.
What does monitor mode do? On a schedule, the Actor emits only new or price-changed listings (monitor_status) compared with the last run.
Is this an official Fotocasa API? No. It reads public search and detail pages and is not affiliated with Fotocasa. Use the data in line with their terms and privacy laws such as GDPR.
Related Actors
More data extractors by kareninatech:
- Habitaclia 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, scheduled price alerts, or a full data pipeline? Open an issue on this Actor and let's build it together.