Fotocasa Scraper: Spain Property Listings avatar

Fotocasa Scraper: Spain Property Listings

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Fotocasa Scraper: Spain Property Listings

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

Karen Gisela Gallegos Aguilar

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

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_url always 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_details to 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 null values when something is missing.
  • 🛑 Hard caps: Returns at most max_properties listings 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_code
  • conservation_status, orientation, antiquity, hot_water, heating (human labels plus *_code fields)
  • 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, plus amenities list
  • is_exterior, is_luxury, is_modern from Fotocasa dynamic features
  • extra_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_email when 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 (new or changed in 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):

ValueOrder
emptyRelevance (Fotocasa default)
newestNewest listings first
price_ascPrice, low to high
price_descPrice, high to low
surface_descLargest first
surface_ascSmallest first

Quick start

Option A. Input URL (great for people)

  1. Open fotocasa.es, search a location, and apply your filters.
  2. Copy the results URL from the address bar (it ends in /l, sometimes followed by ? and filters).
  3. Paste it into input_url.
  4. Set max_properties and click Start.

Option B. Structured filters (great for AI agents)

  1. Leave input_url empty.
  2. Pick operation, property_type, and location (for example madrid-capital).
  3. Add any price, bedroom, bathroom, or surface filters you need.
  4. Choose sort_by, set max_properties, and click Start.
  5. 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

FieldTypeDefaultDescription
input_urlstringemptyFotocasa search results URL. Overrides all filters when set.
start_urlsarrayemptyExtra search URLs for the same run. Also overrides filters.
operationstringcomprarcomprar, alquiler, compartir, traspaso, or alquiler-con-opcion-a-compra.
property_typestringviviendasviviendas, pisos, aticos, duplex, estudios, lofts, bajos, chalets, adosados, casas-rurales, oficinas, locales, garajes, terrenos, trasteros, naves-industriales, edificios.
locationstringmadrid-capitalFotocasa location slug, for example barcelona-capital, valencia-provincia, espana.
locationsarrayemptyExtra locations to search in the same run (same filters).
zonestringemptyOptional district slug inside the location, for example chamberi or barrio-de-salamanca.
min_price / max_priceintegeremptyPrice range in EUR (monthly rent for rentals).
min_rooms / max_roomsintegeremptyBedroom range.
min_bathroomsintegeremptyMinimum bathrooms.
min_surface / max_surfaceintegeremptySurface range in m2.
sort_bystringemptySee Sort options above.
max_propertiesinteger100Max listings per run, up to 1000.
include_full_descriptionbooleantrueAdds the full description text.
fetch_detailsbooleanfalseOpen each detail page for energy certificate, amenities list, agency website/email.
monitor_modebooleanfalseEmit only new or changed listings vs the last run.
monitor_keystringdefaultNamespace for monitor memory across schedules.
proxyConfigurationobjectApify ProxyProxy settings. Switch to RESIDENTIAL with country ES if you hit blocks.

Notes on filters

  • Location slugs: Fotocasa uses -capital for the city and -provincia for the whole province, for example madrid-capital vs madrid-provincia. If you type a plain name like Sevilla, the scraper tries sevilla, then sevilla-capital, then sevilla-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 and price_period is month.
  • Price drops: price_reduced_by is the amount Fotocasa shows as a reduction, is_price_reduced is true when it is above zero, and previous_price is 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 keeps floor_code for 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_details is 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 = new or changed.
  • 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.

More data extractors by kareninatech:

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.