Fotocasa Scraper — Spain Property for Sale & Rent avatar

Fotocasa Scraper — Spain Property for Sale & Rent

Pricing

from $0.64 / 1,000 listings

Go to Apify Store
Fotocasa Scraper — Spain Property for Sale & Rent

Fotocasa Scraper — Spain Property for Sale & Rent

Scrape Fotocasa property listings for sale and rent in Spain: price, €/m², size, rooms, bathrooms, floor, address, coordinates, agency, photos, dates.

Pricing

from $0.64 / 1,000 listings

Rating

0.0

(0)

Developer

Trevor Ortega

Trevor Ortega

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Categories

Features

Limited permissions

Share

Fotocasa Scraper

Scrape property listings from Fotocasa (fotocasa.es), Spain's second-largest property portal, for sale and to rent: price, price per m², size, rooms, bathrooms, floor, amenities, the full description, address and district, coordinates, photos, agency or private advertiser, and publication date. Turn on details for the energy certificate, construction type, orientation, conservation state, building age, all full-size photos, videos and the agency's reference.

Paste any Fotocasa search URL with your filters applied, or type a location (madrid-capital, barcelona-capital, valencia-provincia, ...) and set price, rooms, size and sort in the input. No login and no browser on your side: one request returns 30 listings, and the listings already come with their full description and coordinates. Export to JSON, CSV or Excel, or use the API. You pay per listing you get.

What data does Fotocasa Scraper extract?

Every listing from a search page (the result event):

FieldDescription
id, urlFotocasa listing id and listing URL (.../189137740/d)
operation, propertyType, propertySubtypesale or rent; Fotocasa's own type and subtype (Flat, Flat / Duplex, House ...)
price, currency, pricePeriodPrice in EUR; pricePeriod is month for rentals and null for sales
priceDropAmount of the price reduction in EUR when Fotocasa shows one (24.000 € becomes 24000)
pricePerSqmPrice divided by size, rounded to cents (monthly rent per m² for rentals)
rooms, bathrooms, sizeBedrooms, bathrooms, built size in m²
floor, floorLabel, floorCodeFloor number above the ground floor (1 = first floor; 10 means tenth or higher); floorLabel as Fotocasa words it (GROUND_FLOOR, BASEMENT, 3RD_FLOOR); floorCode is Fotocasa's raw code. Ground floor and basement listings have floor null and a floorLabel
elevator, featuresLift yes/null; list of amenity keys the listing ticks (air_conditioner, terrace, furnished, community_pool, storage_room, ...)
descriptionFull listing description with line breaks
address, neighborhood, district, municipality, province, region, zipCodeLocation as Fotocasa shows it. Street names are only published on some listings (see details)
latitude, longitudeMap coordinates. Fotocasa often shows an approximate point when the advertiser hides the exact address
photos, hasVideo, hasVirtualTour, hasFloorPlan, isNewConstructionAll photos in the search result (full size URLs) and media / new-build flags
advertiserName, advertiserType, advertiserId, advertiserUrlAgency or private advertiser; professional or private
publishedAt, updatedAtPublication time (UTC) and, when different, last update
page, sourceUrl, scrapedAtPage number, the search it came from, time of scraping

With Include listing details on, or for listing URLs (the extra detail event), each listing also gets:

FieldDescription
titleFotocasa's listing title (Piso de alquiler en Carrer Corsega)
streetStreet name when the advertiser publishes it
energyRating, energyConsumption, emissionsRating, emissionsValueEnergy certificate: class letter and value (kWh/m2 year), emissions class and value
constructionType, antiquity, conservationState, orientation, furnishedsecondHand / newConstruction, building age band (BETWEEN_10_AND_20_YEARS), state (VERY_GOOD), orientation (SOUTH), furnished yes/no
extraFeaturesReadable feature list in Spanish (Aire acondicionado, Terraza, Ascensor)
photos, videos, virtualTourUrlEvery photo in original size, video links (YouTube / Vimeo), virtual tour link
reference, advertiserLegalNameThe advertiser's reference code and the company's legal name
detailErrorWhy details are missing for this listing (e.g. it was removed), otherwise null

Phone numbers sit behind a "show phone" button on Fotocasa and are not collected. Private advertisers are exported only as the alias Fotocasa shows publicly.

How to scrape Fotocasa listings

  1. Either paste Start URLs: any Fotocasa search page with filters chosen on the site (homes, offices, garages, land, new builds ...), or single listing URLs.
  2. Or type Locations as they appear in Fotocasa URLs (madrid-capital, barcelona-capital, sevilla-capital, malaga-provincia, espana, or a district like valencia-capital/algiros), choose For sale or to rent and Property type, and optionally Min / Max price, Min bedrooms, Min / Max size and Sort by.
  3. Set Max items (and Max pages per search) to cap the run and the cost.
  4. Turn on Include listing details only if you need the fields from the listing page.
  5. Click Start and download the dataset as JSON, CSV or Excel, or read it with the API.

Input example

{
"locations": ["barcelona-capital"],
"operation": "rent",
"propertyType": "pisos",
"maxPrice": 2000,
"minRooms": 2,
"minSize": 50,
"sort": "newest",
"maxItems": 200,
"includeDetails": false
}

The same with a URL: {"startUrls": [{"url": "https://www.fotocasa.es/es/alquiler/pisos/barcelona-capital/todas-las-zonas/l?maxPrice=2000&minRooms=2&minSurface=50&sortType=publicationDate"}]}.

Output example

One listing with details (long arrays shortened):

{
"id": "191314308",
"url": "https://www.fotocasa.es/es/alquiler/vivienda/barcelona-capital/aire-acondicionado-calefaccion-ascensor-amueblado-television/191314308/d",
"operation": "rent",
"propertyType": "Flat",
"propertySubtype": "Flat",
"price": 1401,
"currency": "EUR",
"pricePeriod": "month",
"priceDrop": null,
"pricePerSqm": 15.4,
"rooms": 2,
"bathrooms": 2,
"size": 91,
"floor": 4,
"floorCode": 9,
"elevator": true,
"features": ["air_conditioner", "cabinets", "elevator", "equiped_kitchen", "furnished", "heating", "parquet", "tv"],
"description": "Descubre esta magnífica vivienda de 91 m², totalmente amueblada ...",
"address": "Dreta de l'Eixample, Eixample, Barcelona, Barcelona",
"neighborhood": "Dreta de l'Eixample",
"district": "Eixample",
"municipality": "Barcelona",
"province": "Barcelona",
"region": "Cataluña",
"zipCode": "08037",
"latitude": 41.400614646628085,
"longitude": 2.1649027011891926,
"photos": ["https://static.fotocasa.es/images/ads/2f34545c-f83c-4937-8...?rule=original", "..."],
"hasVideo": false,
"hasVirtualTour": false,
"hasFloorPlan": false,
"isNewConstruction": false,
"advertiserName": "GuinotPrunera-somos ALTHENA Barcelona",
"advertiserType": "professional",
"advertiserId": 9202767552250,
"advertiserUrl": "https://www.fotocasa.es/es/pro/guinotprunera-somos-althena-barcelona/",
"publishedAt": "2026-11-05T12:49:14+00:00",
"updatedAt": null,
"sourceUrl": "https://www.fotocasa.es/es/alquiler/pisos/barcelona-capital/todas-las-zonas/l?maxPrice=2500&minRooms=2&sortType=publicationDate",
"page": 1,
"scrapedAt": "2026-11-05T14:54:03+00:00",
"title": "Piso de alquiler en Carrer Corsega",
"street": "Carrer Corsega",
"constructionType": "secondHand",
"antiquity": "BETWEEN_10_AND_20_YEARS",
"conservationState": "VERY_GOOD",
"orientation": "EAST",
"furnished": true,
"floorLabel": "4TH_FLOOR",
"energyRating": "C",
"energyConsumption": 55,
"emissionsRating": "B",
"emissionsValue": 9,
"extraFeatures": ["Aire acondicionado", "Armarios", "Calefacción", "Parquet", "Ascensor", "Amueblado", "TV"],
"videos": null,
"virtualTourUrl": null,
"reference": "33040",
"advertiserLegalName": "Guinot Prunera",
"detailError": null
}

Without details the same keys are present; the detail-only ones are null or empty.

Monitor changes on a schedule

Turn on Only new or changed items to watch a search: each run remembers what earlier runs returned and outputs only listings that are new or whose price or price drop changed. Unchanged listings are dropped before any listing page is opened, so they are not charged. Max items then sets how many listings are checked per run; use the newest sort so new listings land in that window (30 listings = one search page). Save the input as a task and add a Schedule in Apify (for example hourly or daily), and give each watch its own Monitoring key if several schedules use the same search. Every output item has changeType (new or changed), and changed items have previousValues with the old values, e.g. {"price": 730000}.

How much does it cost to scrape Fotocasa?

Pay per event; platform usage is included in the event price:

  • Listing (result): $0.0008 per listing saved, so 1,000 listings cost $0.80.
  • Listing details (detail): +$0.0008 per listing whose page was opened (Include listing details, or listing URLs).

There is no start fee. Search results already contain the description, features, coordinates and photos, so most users never need details.

How many results can I get?

Fotocasa shows 30 listings per page. The Actor requests /l/2, /l/3, ... up to Max pages per search (default 10 = 300 listings) or until the search ends. Fotocasa shows the total count in the result (for example 12,666 sale listings in Madrid), which is reported in the run summary as resultTotals. For whole cities split the search by district, price band or size band (several Locations or Start URLs). A listing that appears in two of your searches is saved once. Very deep pages are not tested beyond a few dozen pages.

Which property types and filters are supported?

With Locations: all homes (viviendas), flats, houses and villas (chalets), penthouses, duplexes, lofts, studios, new builds, retail premises, offices, industrial buildings, garages, storage rooms, land and whole buildings, for sale or to rent, with min/max price, min bedrooms, min/max size and a newest / lowest price sort. Any other filter Fotocasa offers (features, energy class, ...) works by pasting the search URL from your browser as a Start URL: the Actor keeps the query string on every page.

Does it need a login or cookies?

No. It reads public search and listing pages only, through Apify's datacenter proxy. Fotocasa's CDN refuses roughly one request in three with a 403; the Actor retries on a fresh IP automatically, so you do not need to do anything.

The Actor collects public listing data that Fotocasa shows to every visitor: prices, property features, descriptions, agency names and photos. It does not collect phone numbers or e-mail addresses. Descriptions can mention people; you are responsible for how you use the data under GDPR and Fotocasa's terms. If in doubt, consult a lawyer.

Found it useful?

A ★ review on this Actor's Apify Store page helps other users find it and tells us what to improve. Issues and feature requests are welcome in the Actor's Issues tab.