Fotocasa Scrape- LowCost | HiQuality avatar

Fotocasa Scrape- LowCost | HiQuality

Under maintenance

Pricing

from $0.35 / 1,000 results

Go to Apify Store
Fotocasa Scrape- LowCost | HiQuality

Fotocasa Scrape- LowCost | HiQuality

Under maintenance

▎ Reliable Fotocasa data, at a fair price. ▎ We built the most efficient scraper for Fotocasa because we believe quality data shouldn't cost a fortune. No captchas, no browser overhead — just ▎ clean, structured data that works. ▎ Questions or ideas? → info@inmocalc.com

Pricing

from $0.35 / 1,000 results

Rating

0.0

(0)

Developer

SMY

SMY

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Share

Fotocasa Scraper

Extract property listings from Fotocasa — no browser, no captchas, clean JSON in seconds.

👋 Hola equipo — este scraper es para vosotros, usadlo con cariño.

Questions or issues? Reach us at info@inmocalc.com


What it does

Two modes in one actor:

ModeWhen to use it
SearchGet all listings in an area — an entire city, page after page
Find location codeLook up the area code you need before searching

Fill in one, leave the other empty. Search is the default — just hit Start and you get Madrid Capital homes for sale out of the box.


Why this one?

Fotocasa sits behind Imperva's anti-bot protection, which trips up most scrapers. We call the same private mobile API the Fotocasa Android app uses, so there's no browser overhead and no HTML parsing — just clean, structured data at a price that makes sense.


Get all listings in an area matching your filters.

How to use it

Step 1 — Fill in the fields

FieldWhat to enter
Location codeThe code for the area you want to scrape — see below
Transaction typeSale, Rent, Transfer, Share, Rent with option to buy or Holiday rental
Property typeHomes for flats and houses, or garages, land, offices, etc.

Everything else has sensible defaults. Leave the filters blank to get everything.

Step 2 — Hit Start

The scraper runs page by page and saves results to the dataset as it goes. You can watch data come in before it finishes.

Step 3 — Download your results

When done, go to Storage → Dataset and export as CSV, JSON or Excel.

How to find a location code

Fotocasa areas are identified by a combinedLocationIds string — a comma-separated code like 724,14,28,173,0,28079,0,0,0.

⚠️ Use the full string, not just the municipal number. A bare code like 28079 returns results for all of Spain, not just Madrid.

Option A — use the built-in lookup (easiest) Fill in the Find location code field (Mode 2 below) with a place name, run the actor, and copy the code you need.

Option B — use a known code

AreaLocation code
Madrid Capital724,14,28,173,0,28079,0,0,0
All of Spain724

Output fields

Each listing includes:

FieldDescription
property_idFotocasa listing ID
url_marketplaceDirect link to the listing on Fotocasa
pricePrice in €
price_descriptionPrice as shown on the site (e.g. 1.200 €/month)
surfaceArea in m²
rooms / bathroomsBedrooms and bathrooms
property_typeHOME, GARAGE, LAND, etc.
transaction_typeSALE, RENT, etc.
location_descriptionArea / neighbourhood text
latitude / longitudeCoordinates for mapping
orientationProperty orientation
is_developmentWhether it's a new development
payment_periodicityFor rentals — monthly, etc.
agency_nameListing agency, if any
has_tour_virtualVirtual tour available
has_videoVideo available
diff_pricePrice change vs. a previous value
list_datePublication date
photoMain photo URL
commentsFull listing description

Limits

  • No hard per-run cap — the scraper paginates through every available page for the area. A full city like Madrid is ~570 pages (~11,000 listings) and takes roughly 20–30 minutes with polite random delays between requests.
  • Set Max pages if you only want a sample — leave it at 0 to scrape everything.
  • All filters are optional — price, surface, rooms and bathrooms can all be left blank.

Mode 2 — Find location code

Not sure what location code to use? Run this mode first.

How to use it: fill in the Find location code field with a place name (e.g. madrid, barcelona, valencia). The Search section is ignored.

Output

FieldDescription
textHuman-readable area name (e.g. Madrid Capital, Madrid)
combinedLocationIdsThe code to copy into the Search section
subtitleExtra area detail

Advanced — if runs start failing

Fotocasa's Imperva protection requires a token (x-d-token) that ships with the actor. If runs suddenly return 403 ("Pardon Our Interruption"), the token needs refreshing:

  • Capture a fresh x-d-token from the Fotocasa Android app with mitmproxy and paste it into the Imperva token field in the Advanced section.
  • Runs go through a residential proxy by default. To use your own proxy, set the PROXY_URL environment variable.

Tips

  • Each run creates a new dataset — results are saved separately per execution, so you can compare runs.
  • Leave Items per page at 20 — it's the value the app uses; the API adds a couple of promoted items on top, which the scraper filters out automatically.
  • Mode priority: if you fill in both sections, Find location code takes priority over Search.