Fotocasa Scraper — Spain Property Listings avatar

Fotocasa Scraper — Spain Property Listings

Pricing

from $0.43 / 1,000 list-tier listings

Go to Apify Store
Fotocasa Scraper — Spain Property Listings

Fotocasa Scraper — Spain Property Listings

Export public Fotocasa.es sale and rental listings: price, rooms, baths, m², district, coordinates, agency and its public phones. Optional detail tier adds energy certificate. $0.50 per 1,000 listings ($1.50 with detail) plus $0.0005 per run.

Pricing

from $0.43 / 1,000 list-tier listings

Rating

0.0

(0)

Developer

Stone Jade

Stone Jade

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Fotocasa Spain Property Scraper — listings at $0.50 per 1,000

For agencies, relocation teams, investors and market analysts who need public Fotocasa.es sale and rental listings as a dataset they can sort, map and compare.

Paste a Fotocasa search URL for a city or area (rent or buy), or leave the input empty for Madrid rentals. Each row is one listing with asking price, rooms, bathrooms, built area, district and neighbourhood, coordinates, agency name, public agency phone numbers and the listing link. An optional detail tier opens each listing page to add the energy certificate and fuller contact data when the search card is thin.

Each run is a snapshot of the search at that moment. Start with the default 50 Madrid rentals to see the columns before a larger run.

What you gain

  • Comparable listings without copying cards — price, rooms, bathrooms and m² arrive as numbers, so you can compute price per m² or filter a neighbourhood in a spreadsheet.
  • Location you can map — city, district, neighbourhood, postcode and latitude/longitude sit on each row for maps and local comparisons.
  • A contact list of advertising agencies — the agency name and the business phone numbers published on the listing come with each row; private sellers' phones and emails are removed.
  • One clean row per listing — listings are keyed by Fotocasa's listing ID, and a listing that appears twice in a run is saved once.
  • Direct HTTP execution at 256 MB memory — extracts embedded page-1 JSON and Fotocasa's public property-search gateway JSON from page 2 onward without headless browser overhead.

Built for these workflows

Relocation consultant shortlisting rentals

A relocation team runs a Madrid or Barcelona rental search before a client visit, filters by monthly rent, rooms and neighbourhood, and sends the shortlisted Fotocasa links to the client.

Market analyst tracking asking prices

An analyst collects a city's sale search each month, computes median asking price per m² by district in their BI tool, and compares months over time.

Agency or proptech team building a lead list

A business-development team groups listings by agency to see which agencies advertise the most stock in a district, then contacts them through the published business phone numbers.

Automated portfolio & BI ingestion

An engineering team schedules runs through the Apify API or official JavaScript and Python clients, storing normalized JSON rows directly in PostgreSQL, BigQuery, or Airtable while reading the OUTPUT status summary after each run.

Preview what you receive

Real rows parsed from a saved Fotocasa Madrid rentals search page, captured on 2026-10-26 (UTC+8). Prices are monthly rents in EUR; area is built m².

Listing IDListingRent (EUR / month)RoomsBathsm²Neighbourhood (district)Agency
190709164Flat · 4 hab. · 135 m² · Guindalera2,80042135Guindalera (Barrio de Salamanca)ENGEL & VÖLKERS MADRID
189720360Attic · 2 hab. · 97 m² · Argüelles2,3002197Argüelles (Moncloa - Aravaca)Aldebaran Inmobiliaria
188242983Flat · 1 hab. · 42 m² · Castellana1,4901142Castellana (Barrio de Salamanca)Ginmo
190836473Duplex · 1 hab. · 45 m² · Sol1,1951145Sol (Centro)Casas y Más

Each row also carries the listing URL, coordinates, postcode, floor, photos, published agency phones, description text where the card has one, and the search page and position it came from. On the detail tier, a saved agency listing page (2026-10-26) added energy rating G and the agency phone published on that page. Export as JSON, CSV or Excel.

Fields stay empty when Fotocasa does not publish them: the energy certificate is usually only on the listing page, and search results from page 2 onward sometimes omit the property type.

Illustrative JSON Output Example

The illustrative record below conforms strictly to the dataset schema (including all core search-card attributes plus detail-tier energy fields when scrapeDetails is enabled; private seller rows automatically clear phones and emails to empty arrays):

{
"listingId": "190709164",
"realEstateAdId": "00000000-0000-4000-8000-000000000000",
"title": "Flat · 4 hab. · 135 m² · Guindalera",
"price": 2800,
"currency": "EUR",
"pricePeriod": "month",
"rooms": 4,
"baths": 2,
"area_m2": 135,
"floor": 6,
"propertyType": "Flat",
"propertySubtype": "Flat",
"operation": "rent",
"city": "Madrid",
"district": "Barrio de Salamanca",
"neighborhood": "Guindalera",
"province": "Madrid",
"address": "Guindalera",
"zipCode": "28028",
"lat": 40.437243,
"lon": -3.676576,
"agency": "ENGEL & VÖLKERS MADRID",
"agent": null,
"isPrivateOwner": false,
"phones": [
"+34912774500"
],
"emails": [],
"energyRating": "G",
"energyValue": 123,
"photos": [
"https://static.fotocasa.es/images/ads/example-photo-1.jpg",
"https://static.fotocasa.es/images/ads/example-photo-2.jpg"
],
"description": "Renovated family apartment in Barrio de Salamanca (Guindalera) with terrace and air conditioning.",
"url": "https://www.fotocasa.es/es/alquiler/vivienda/madrid-capital/aire-acondicionado-calefaccion-ascensor-patio-se-aceptan-mascotas-no-amueblado/190709164/d",
"publicationDate": "2026-09-09T11:05:02.573",
"page": 1,
"position": 1,
"listUrl": "https://www.fotocasa.es/es/alquiler/viviendas/madrid-capital/todas-las-zonas/l",
"tier": "detail",
"scrapedAt": "2026-11-24T00:00:00.000Z"
}

Uncharged Run-Notice Row

When a run ends early (for example at maxItems, max-charge-reached, proxy-budget, run-time-limit, or a stop condition), one uncharged summary row is appended to the dataset:

{
"recordType": "run-notice",
"truncatedAfter": 50,
"reason": "maxItems"
}

Complete Dataset Field Reference

Every property declared in the dataset schema (41 fields total) is documented below. Listing fields are nullable when omitted by Fotocasa.es.

FieldTypeTierDescription
listingIdstring or nullList, DetailFotocasa property ID used to deduplicate listings within a run.
realEstateAdIdstring or nullList, DetailUUID ad ID published by Fotocasa when available.
titlestring or nullList, DetailPublished listing headline or constructed summary title (type, rooms, area, location).
pricenumber or nullList, DetailAsking sale or monthly rental price amount without currency symbol.
currencystring or nullList, DetailCurrency code for the price (EUR for Fotocasa.es listings).
pricePeriodstring or nullList, DetailBilling period for rentals (such as month); null for sale listings.
roomsnumber or nullList, DetailNumber of bedrooms/rooms when published.
bathsnumber or nullList, DetailNumber of bathrooms when published.
area_m2number or nullList, DetailBuilt area in square meters when published.
floornumber or nullList, DetailFloor number when published (0 indicates ground floor).
propertyTypestring or nullList, DetailBuilding type published by Fotocasa (such as Flat); sometimes omitted by gateway JSON on page 2+.
propertySubtypestring or nullList, DetailPublished property subtype (such as Apartment) when available.
operationstring or nullList, DetailNormalized transaction operation: rent or sale.
citystring or nullList, DetailCity or municipality name from the listing address.
districtstring or nullList, DetailMunicipal district name from the listing address.
neighborhoodstring or nullList, DetailNeighbourhood or upper-level area text when published.
provincestring or nullList, DetailProvince name from the listing address when published.
addressstring or nullList, DetailStreet address when published; null when Fotocasa only exposes neighbourhood/district.
zipCodestring or nullList, DetailSpanish postal code when published.
latnumber or nullList, DetailLatitude coordinate when published.
lonnumber or nullList, DetailLongitude coordinate when published.
agencystring or nullList, DetailAdvertising real estate agency or publisher name when published.
agentstring or nullDetail (when published)Public contact name shown on the listing detail page when available.
isPrivateOwnerboolean or nullList, DetailTrue when advertiser is a private owner (particular); false for commercial agencies; null when unknown.
phonesarray of strings or nullList, DetailPublic commercial/agency phone numbers; private seller phones are dropped.
emailsarray of strings or nullList, DetailPublic commercial/agency email addresses; private seller emails are dropped.
energyRatingstring or nullDetail (usually)Energy efficiency rating letter (e.g. A through G) when published, usually on the detail page.
energyValuenumber or nullDetail (usually)Published numeric energy efficiency value when available.
photosarray of strings or nullList, DetailArray of published image URLs for the listing.
descriptionstring or nullList, DetailPlain-text listing description (enriched with full text on the detail tier).
urlstring or nullList, DetailCanonical public listing URL on fotocasa.es.
publicationDatestring or nullList, DetailPublication timestamp text exactly as published by the source.
pageinteger or nullList, Detail (from list)Search page number where the listing was discovered; absent on direct detail seeds.
positioninteger or nullList, Detail (from list)One-based position of the listing on its search page; absent on direct detail seeds.
listUrlstring or nullList, DetailSearch or direct listing URL from which the row was discovered.
tierstring or nullList, DetailExtraction tier for the row: list (search card or fallback) or detail (detail-page enriched).
scrapedAtstring or nullList, DetailISO 8601 UTC timestamp recording when the row was scraped.
detailErrorstring or nullList (fallback)Error string recorded when scrapeDetails failed and the search-card row was kept at list pricing.
recordTypestring or nullRun-noticeSet to run-notice on the optional uncharged truncation row; absent on listing rows.
truncatedAfterinteger or nullRun-noticeNumber of charged listing rows saved before truncation.
reasonstring or nullRun-noticeStop reason for truncation (such as maxItems or run-time-limit).

Dataset Views & Key-Value Store Summary

  • Overview view: Compact Console table showing listingId, title, price, currency, operation, rooms, baths, area_m2, city, neighborhood, agency, tier, and url.
  • Listings view: Full 37-column property table covering identity, pricing, dimensions, multi-level Spanish geography, contacts, energy ratings, media, and detail status.
  • Run notices view: Displays recordType, truncatedAfter, and reason for truncated runs.
  • Key-Value Store OUTPUT record: Summarizes seeds, pushed counts, duplicatesSkipped, pagesFetched, siteTotalEntries, listSource (HTML vs gateway JSON counts), unavailableFields, http transfer counters, robots metadata, robotsDisallowedHits, errors, stopReason, failed, runNotice, lastFailure, deadlineSource, and pricingEvents.

Why choose this Actor

  • Search pages beyond page 1 without the blocked HTML paths — page 1 is read from the public search page and later pages from the public property-search data the Fotocasa site itself loads, about 30 listings per page.
  • Detail only where you want it — the energy certificate and fuller contacts cost more per row only when you turn the detail tier on; a listing page that fails still returns the search-card row at the list price.
  • Privacy handled at the source — business contacts published by agencies are kept as shown; private sellers' phone numbers and emails are dropped before the row is saved.
  • Built-in 5 MB residential bandwidth guardrail — stays on a direct connection by default; if you configure a residential proxy with useProxyFallback, transfer is capped at 5 MB per run and detail pages stay direct unless allowDetailOnResidential is explicitly enabled.

Pricing

Prices in USD. Check the current Pricing tab before running.

ChargePrice
Listing (search results)$0.50 per 1,000 listings ($0.0005 per listing)
Listing with detail page$1.50 per 1,000 listings ($0.0015 per listing)
Run start$0.0005 per run

A listing with its detail page is charged at the detail price instead of the list price, not on top. If a listing page fails, that row keeps its search-card data and is charged at the list price. The run start fee is charged once by Apify when a run starts at the default 256 MB memory (Apify adds one start fee for each extra GB if you give a run more than 1 GB). You are charged for listings saved to the dataset; a duplicate listing in the same run is not saved or charged twice, and the notice row added when a run stops early is free.

What you pay: under this Actor's pay-per-event pricing you pay the event prices above; the platform compute used by the run is not billed to you separately, unless the Actor's Pricing tab says usage is added on top. Reading, exporting or writing stored data after the run has finished is billed as platform usage on your own Apify plan.

Example: 1,000 search-result listings cost $0.50 plus $0.0005 for the start, $0.5005 in total; with the detail tier on for all 1,000, $1.50 plus $0.0005, $1.5005. A run that saves no listings has no listing charges, but the start fee still applies.

Compared with igolaizola/fotocasa-scraper: its public Apify Store listing (checked on 16 November 2026) charges $0.001 per result plus $0.001 per run start on the Apify Free plan ($0.0009 each on Bronze, $0.0008 on Silver, $0.0007 on Gold and above), so 1,000 results cost $1.001 on the Free plan. This Actor's search-result tier costs $0.5005 for 1,000 listings, which is 50% of the competitor's Free-plan price.

Apify Store Subscription Tier Discounts (Bronze to Diamond)

Apify Store subscription plans automatically apply 5% to 15% discounts across every Pay-Per-Event charge:

EventFree (1.00x)Bronze (5% off)Silver (10% off)Gold / Platinum / Diamond (15% off)
Listing (search results, primary)$0.0005 ($0.50/1k)$0.000475 ($0.475/1k)$0.00045 ($0.45/1k)$0.000425 ($0.425/1k)
Listing with detail page$0.0015 ($1.50/1k)$0.001425 ($1.425/1k)$0.00135 ($1.35/1k)$0.001275 ($1.275/1k)
Run start (per GB, min 1 at 256 MB)$0.0005$0.000475$0.00045$0.000425

Get started in three steps

  1. Leave Search or listing URLs empty for Madrid rentals, or paste a Fotocasa search URL such as https://www.fotocasa.es/es/comprar/viviendas/barcelona-capital/todas-las-zonas/l.
  2. Set Max listings (default 50, up to 2,000). Turn on Open each listing page only if you need energy certificates and fuller contacts; then run.
  3. Open the dataset, check the rows, and export them as JSON, CSV or Excel.
{
"startUrls": [{ "url": "https://www.fotocasa.es/es/alquiler/viviendas/madrid-capital/todas-las-zonas/l" }],
"maxItems": 100,
"scrapeDetails": false
}

Input Configuration Reference

All input fields are optional. Running with empty input {} starts with Madrid rental apartments (maxItems: 50, scrapeDetails: false, direct HTTP connection).

ParameterTypeDefaultConstraintsDescription
startUrlsarrayMadrid rental searchPublic fotocasa.es /l search or /d listing URLsTarget URLs & Pagination. Search URLs or direct listing URLs. Accepts Request List objects or plain URL strings.
maxItemsinteger50Min 1, Max 2000Target URLs & Pagination. Maximum unique listings to emit before stopping cleanly.
maxPagesintegernull (unlimited)Min 1, Max 2000Target URLs & Pagination. Optional cap on search pages per seed (~30 listings/page; page 2+ uses gateway JSON).
startPageinteger1Min 1, Max 2000Target URLs & Pagination. Starting page when the search URL does not already include /l/N.
scrapeDetailsbooleanfalsetrue / falseDetail Enrichment. Open each listing page for energy certificates, fuller descriptions, and contact details (billed as listing-detail instead of listing).
requestDelayMsinteger1200Min 1200Rate Limiting & Runtime. Minimum milliseconds between HTTP request starts. Raised automatically if robots.txt Crawl-delay is higher.
concurrencyinteger1Min 1, Max 3Rate Limiting & Runtime. Requests in flight simultaneously while keeping page order and start spacing.
maxRunSecondsinteger3600Min 30Rate Limiting & Runtime. Clean shutdown deadline in seconds before platform timeout.
proxyConfigurationobject{ "useApifyProxy": false }Apify Proxy configProxy Settings. Direct by default. Residential proxies are capped at 5 MB per run and intended as fallback only.
useProxyFallbackbooleanfalsetrue / falseProxy Settings. Stay direct until repeated HTTP 403 or 429 blocks, then switch to the configured proxy.
allowDetailOnResidentialbooleanfalsetrue / falseProxy Settings. Keep detail pages direct when using residential proxy unless explicitly turned on.

Input Example 2: Barcelona Sale Search, Direct Listing URL & Detail Enrichment

Collect up to 150 Barcelona homes for sale plus a specific listing URL with energy ratings (scrapeDetails: true) and proxy fallback enabled:

{
"startUrls": [
{ "url": "https://www.fotocasa.es/es/comprar/viviendas/barcelona-capital/todas-las-zonas/l" },
{ "url": "https://www.fotocasa.es/es/alquiler/vivienda/madrid-capital/aire-acondicionado-calefaccion-ascensor-patio-se-aceptan-mascotas-no-amueblado/190709164/d" }
],
"maxItems": 150,
"maxPages": 6,
"startPage": 1,
"scrapeDetails": true,
"requestDelayMs": 1500,
"concurrency": 2,
"maxRunSeconds": 1800,
"useProxyFallback": true,
"proxyConfiguration": { "useApifyProxy": false }
}

JavaScript (Node.js) — ApifyClient Quickstart

Install the Apify JavaScript client (npm install apify-client), set APIFY_TOKEN, and run Stone_JadeX/fotocasa-es-scraper programmatically:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({
token: process.env.APIFY_TOKEN,
});
const run = await client.actor('Stone_JadeX/fotocasa-es-scraper').call({
startUrls: [
{ url: 'https://www.fotocasa.es/es/alquiler/viviendas/madrid-capital/todas-las-zonas/l' },
],
maxItems: 50,
scrapeDetails: false,
requestDelayMs: 1200,
concurrency: 1,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const listings = items.filter((row) => row.recordType !== 'run-notice');
console.log('Collected listings:', listings.length);
for (const row of listings.slice(0, 5)) {
console.log(row.listingId, row.title, row.price, row.currency, row.area_m2, row.neighborhood);
}
const outputRecord = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('OUTPUT');
console.log('Stop reason:', outputRecord?.value?.stopReason, 'Failed:', outputRecord?.value?.failed);

Python — ApifyClient Quickstart

Install the Apify Python client (pip install apify-client), export APIFY_TOKEN, and run:

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("Stone_JadeX/fotocasa-es-scraper").call(run_input={
"startUrls": [
{"url": "https://www.fotocasa.es/es/alquiler/viviendas/madrid-capital/todas-las-zonas/l"},
],
"maxItems": 50,
"scrapeDetails": False,
"requestDelayMs": 1200,
"concurrency": 1,
})
items = [
row for row in client.dataset(run["defaultDatasetId"]).iterate_items()
if row.get("recordType") != "run-notice"
]
print("Collected listings:", len(items))
for row in items[:5]:
print(row.get("listingId"), row.get("title"), row.get("price"), row.get("currency"), row.get("neighborhood"))
output_record = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("OUTPUT")
print("Stop reason:", (output_record or {}).get("value", {}).get("stopReason"))

Coverage and common questions

The Actor reads public Fotocasa.es search pages, the public property-search data those pages load, and, on the detail tier, public listing pages. It does not log in, use accounts or solve captchas. It covers Fotocasa.es only.

Which searches are supported?

Search URLs for homes to rent (/es/alquiler/…/l) or buy (/es/comprar/…/l) and single listing URLs ending in /d. The Actor follows the location, rent or buy choice and property type in the URL path; filters in the URL's query string (for example a price range) are not applied, so filter the dataset afterwards.

How many listings can I get?

About 30 per search page, up to 2,000 per run. Max listings is a ceiling, not a guaranteed count; the run stops earlier when the search runs out of results or a page comes back empty.

How does it treat robots.txt?

robots.txt is read at the start of every run and any crawl-delay is followed. HTML list paths /l/2–/l/39 are Disallow'd and the Actor does not use them: later pages use the site's public web.gw.fotocasa.es property-search JSON instead. If a requested URL matches a Disallow rule, it is still requested, logged as a warning and counted in robotsDisallowedHits.

What if Fotocasa blocks the run?

Requests start at least 1.2 seconds apart, one at a time by default. On HTTP 403, 412 or 429 the Actor waits 30 seconds, then 60 seconds, and retries. If the request is still blocked, or a retry after a block ends with another error, a timeout or a network error, the whole run currently stops, not just that search, with stopReason blocked-403, blocked-412 or blocked-429. A Cloudflare challenge page is never solved or bypassed; it stops the whole run as blocked-challenge. If too little run time is left for a wait, the run stops as blocked without waiting. In these cases the run summary has failed set to true, the platform run status is still SUCCEEDED, and the status message reads "Stopped (

How do I know whether a run finished completely?

Every run writes a summary to the OUTPUT record of its key-value store. stopReason says why the run ended, failed says whether it ended because of a problem, and each entry in errors carries type, url and lastFailure.

  • Not failed, status message starts with "Done": completed (the searches finished), maxItems, empty (no listings and no errors), max-charge-reached (your maximum cost per run was reached), proxy-budget (the 5 MB residential cap), run-time-limit when your Max run time (seconds) came first, and charge-error (a charge could not be recorded, so the run stopped; listings from that batch are not counted in the summary).
  • Failed, status message "Stopped ( the blocked reasons above, errors (a search page failed for a reason other than a block), error (an unexpected error stopped the run) and run-time-limit when the platform timeout came first (deadlineSource is hard-timeout).

The platform run status is SUCCEEDED in all of these cases; only invalid input makes the run itself fail. With several search URLs, a search page that fails for a reason other than a block (for example a 404 or repeated server errors) currently stops only that search, and the run moves on to the next URL. If a later search then ends the run, for example at Max listings, that reason becomes the stopReason and failed can be false, so the earlier failure shows only in errors. On multi-search runs, check errors as well as stopReason. A detail page that fails without a block is also listed in errors while its row is saved at the list price.

When the platform timeout is reached, the run currently waits up to 3 seconds for listings still being written. Listings not confirmed in that time are not charged and not counted in the summary, but they may still appear in the dataset.

Is this a monitoring service?

No. Each run captures what the search showed at that time. Listings can change or disappear afterwards; schedule and compare runs in your own workflow if you need tracking.

Changelog

  • 0.2.2 (2026-11-24): Merged v0.2.1 reliability & block-rule upgrades onto latest; added sectionCaption groups and explicit prefill defaults across input schema; enabled Apify Store subscription tier discounts (Bronze 5% off to Gold/Platinum/Diamond 15% off) with list-tier listing marked as the primary event; expanded Store documentation with 41-field schema reference, illustrative JSON output, and JavaScript/Python ApifyClient quickstarts.
  • 0.2.1 (2026-11-16): Implemented unified 403/412/429 backoff and blocked-403 / blocked-412 / blocked-429 / blocked-challenge end states, H6/H7 3-second in-flight write confirmation before hard-deadline exit, status message alignment, detail-tier rate alignment ($0.0015), and apify-actor-start ($0.0005).
  • 0.1.0 (2026-10-26): Initial Fotocasa.es scraper reading HTML page 1 and public web.gw.fotocasa.es JSON for page 2+, dropping private seller phones and emails, and enforcing a 5 MB residential proxy ceiling.

This is an independent tool and is not affiliated with Fotocasa. Start with the default Madrid rentals, then point it at your own city search.