Fotocasa Scraper: Spain Property Listings API avatar

Fotocasa Scraper: Spain Property Listings API

Pricing

from $0.42 / 1,000 results

Go to Apify Store
Fotocasa Scraper: Spain Property Listings API

Fotocasa Scraper: Spain Property Listings API

Fotocasa API for Spanish real estate. Paste any fotocasa.es search URL or pick a location and filters; get one clean record per home for sale or rent with EUR price, m², bedrooms, bathrooms, building age, exact coordinates when public, photos and the listing URL. Up to 2,700 homes per run.

Pricing

from $0.42 / 1,000 results

Rating

0.0

(0)

Developer

Philip Kirkbride

Philip Kirkbride

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

12 hours ago

Last modified

Categories

Features

Limited permissions

Share

Turn any Fotocasa search into a clean dataset. Paste a search URL from fotocasa.es with every filter you set in the browser, or type a location and choose sale or rental. Each home comes back as one record with price in euros, built area in m², bedrooms, bathrooms, address, exact map coordinates when the advertiser publishes them, building age, photos and the listing URL.

Big runs are first class: up to 2,700 homes per run and 90 result pages per search, saved page by page as they arrive, at about 2.5 minutes per 1,000 homes. A run that hits its time or cost limit keeps everything it collected.

Use it as a Fotocasa API for the Spanish property market: schedule it, call it from your code, or download the results as JSON, CSV or Excel.

What you get

One row per home, ready for a spreadsheet, BI tool or database:

  • Price in euros as a number (rents carry the monthly amount), plus built area, bedrooms and bathrooms as typed numbers.
  • Address and location: neighbourhood, district, town and province as published, with latitude/longitude only when the advertiser publishes an exact street address — never an invented or neighbourhood-centre point.
  • Building age as Fotocasa publishes it ("10 a 20 años", "Menos de 1 año"), the advertiser name and public profile link, the published phone number, every photo, the description and the listing link.
  • Dates: when the home was first published and last updated, when Fotocasa shows them.

The full record is shown in Output example below.

What you can do with it

  • Track asking prices in a city or district. Re-run the same searches every day or week and follow asking prices, price per m² and the number of homes on the market in Madrid, Barcelona, Valencia, Málaga or any other Spanish location.
  • List a whole market, not a sample. A province, a city or several districts in one run, split into as many pasted searches as you need.
  • Find new listings before others do. Sort by newest, run on a schedule and compare the stable listingKey with the previous run to spot new, removed and repriced homes.
  • Compare rentals and sales. Run a sale search and a rental search for the same area and estimate gross rental yields per district.
  • Map it. Exact coordinates let you plot only the homes whose street the advertiser actually published.
  • Feed a valuation or investment model. Price, area, rooms, bathrooms, building age and dates are typed values, ready to use.

Also available

The European real estate suite: pick the job.

ActorUse when
Fotocasa Spain (this Actor)Spanish homes for sale or rent
Rightmove UKUK sale and rental listings
Otodom & ImovirtualPoland and Portugal property listings
Funda NetherlandsDutch listings with energy labels
Immowelt GermanyGerman rentals, houses and plots
Subito.itItalian cars, homes and everyday goods

Quick start

  1. Open fotocasa.es, search for a place and set the filters you want (price, bedrooms, bathrooms, area, terrace, property type, sort order…).
  2. Copy the address bar and paste it into Fotocasa search URLs.
  3. Set Maximum results and run.
{
"startUrls": [
{"url": "https://www.fotocasa.es/es/alquiler/viviendas/barcelona-capital/todas-las-zonas/l"}
],
"maxPages": 5,
"maxResults": 150
}

Prefer to pick a place instead? The form works too:

{"location": "madrid-provincia", "operation": "sale", "maxResults": 50}

An empty input ({}) uses the defaults in the table below: the first results page of homes for sale in Madrid province, about 30 homes. A location left blank on purpose ({"location": ""}) stops at once with a message asking for one.

Input

NameTypeDefaultWhat it does
startUrlsarrayemptyOptional. Up to 10 Fotocasa search URLs with any filters. When set, these searches run instead of location, zone, operation, propertyType and sortType.
locationstringmadrid-provinciaLocation to search, as used by Fotocasa (barcelona-capital, valencia-capital, malaga-capital…). Accents and spaces are converted for you ("Alcalá de Henares" becomes alcala-de-henares).
zonestringtodas-las-zonasZone within the location; the default covers the whole location.
operationstringsaleHomes for sale (sale) or for rent (rental).
propertyTypestringviviendasviviendas (all homes), pisos (flats), casas, aticos, chalets, estudios, duplex, adosados, apartamentos, bajos, lofts, casas-rurales, terrenos, locales, oficinas, garajes, trasteros or edificios.
sortTypestringscoringOrder results by relevance (scoring), newest (publication), or price (price-asc, price-desc).
priceMin / priceMaxinteger–Price in euros (monthly rent for rental searches). Homes outside the range are left out, not charged.
roomsMin / roomsMaxinteger–Bedrooms. Homes outside the range are left out, not charged.
bathroomsMin / bathroomsMaxinteger–Bathrooms. Homes outside the range are left out, not charged.
areaMinM2 / areaMaxM2number–Built area in m². Homes outside the range are left out, not charged.
maxPagesinteger1Result pages to read per search, 1 to 90 (about 30 homes per page). With startUrls, per URL.
maxResultsinteger50Maximum homes for the whole run, 1 to 2,700.
requestDelaySecsnumber1.0Pause between result pages, from 0.5 to 10 seconds.

With startUrls, each search starts at its first results page and keeps all of its filters on every page, and a home that appears in two of your searches is returned once.

Coming from an older input? Nothing was renamed and the defaults are the same (one page, 50 homes). What changed is how much a run can ask for: the ceilings rose from 5 pages / 200 homes to 90 pages / 2,700 homes. If you had saved an input that asked for more than 200 homes and was silently cut at 200, it now returns the number you asked for.

Input recipes

Two-bedroom homes for sale in Madrid (pasted URL). Fotocasa writes many filters into the address itself, so the URL you copy already holds them:

{
"startUrls": [
{"url": "https://www.fotocasa.es/es/comprar/viviendas/madrid-provincia/todas-las-zonas/2-habitaciones/l"}
],
"maxPages": 30,
"maxResults": 900
}

A whole province in one run. 90 pages is about 2,700 homes from a single search; for more variety, stack up to ten pasted searches (for example one per district):

{
"location": "barcelona-provincia",
"operation": "sale",
"maxPages": 90,
"maxResults": 2700
}

Barcelona rentals under €1,600 with at least two bedrooms.

{"location": "barcelona-capital", "operation": "rental", "priceMax": 1600, "roomsMin": 2, "maxPages": 10, "maxResults": 300}

Several searches in one run. Homes with a terrace in Madrid, flats for sale in Valencia sorted from cheapest, and rentals in Málaga:

{
"startUrls": [
{"url": "https://www.fotocasa.es/es/comprar/viviendas/madrid-provincia/todas-las-zonas/terraza/l"},
{"url": "https://www.fotocasa.es/es/comprar/pisos/valencia-capital/todas-las-zonas/l?sortType=price&sortOrderDesc=false"},
{"url": "https://www.fotocasa.es/es/alquiler/viviendas/malaga-capital/todas-las-zonas/l"}
],
"maxPages": 10,
"maxResults": 600
}

Form fields: newest rentals in Barcelona.

{"location": "barcelona-capital", "operation": "rental", "sortType": "publication", "maxPages": 2, "maxResults": 60}

Daily market monitor. Save one of the inputs above as a task and add a schedule (for example, every morning). Each run returns that day's listings with the same fields, so the datasets line up over time.

Output example

Each item includes id, listingKey, url, name, price, currency, areaM2, rooms, bedrooms, bathrooms, address, addressParts, addressVisibility, latitude, longitude, antiquity, buildingType, description, photos, imageUrl, phone, publisherName, publisherUrl, postedAt, modifiedAt, operation, propertyType, portal, country, source, scrapedAt and collectedAt.

Example record (Madrid province, sale):

{"id": "190289557", "listingKey": "fotocasa.es:190289557", "url": "https://www.fotocasa.es/es/comprar/vivienda/valdemoro/aire-acondicionado-calefaccion-parking-terraza-ascensor-no-amueblado/190289557/d", "name": "Hogares Valdemoro", "price": 249900.0, "currency": "EUR", "areaM2": 69.0, "rooms": 2, "bedrooms": 2, "bathrooms": 1, "address": "Estación, Valdemoro, Madrid", "addressParts": {"neighborhood": null, "district": "Estación", "municipality": "Valdemoro", "province": "Madrid", "zipCode": "28343"}, "addressVisibility": "approximate", "latitude": null, "longitude": null, "antiquity": "20 a 30 años", "buildingType": "Flat", "description": "Descubre esta fantástica vivienda situada en una segunda planta, en la demandada zona de la Estación de Valdemoro…", "photos": ["https://static.fotocasa.es/images/ads/4c1b51a3-a9c1-49f7-95f8-c3e97fb0394c"], "imageUrl": "https://static.fotocasa.es/images/ads/4c1b51a3-a9c1-49f7-95f8-c3e97fb0394c", "phone": "+34911353884", "publisherName": "Hogares Valdemoro", "publisherUrl": "https://www.fotocasa.es/es/pro/hogares-valdemoro/", "postedAt": "2026-07-21T17:18:07+00:00", "modifiedAt": null, "operation": "sale", "propertyType": "viviendas", "portal": "fotocasa", "country": "ES", "source": "fotocasa.es", "scrapedAt": "2026-11-16T09:12:44+00:00", "collectedAt": "2026-11-16T09:12:44+00:00"}

What the fields mean:

  • price and currency: the advertised price as a number, always in EUR. For rentals this is the monthly rent. Homes listed with "Precio a consultar" have an empty price and currency.
  • areaM2: the built area in m² shown on the listing.
  • rooms and bedrooms: the bedroom count (Fotocasa shows "hab."); both fields carry the same number. bathrooms is the bathroom count.
  • address: neighbourhood, district, town and province, as published. addressParts is the same information field by field, with the postal code when shown.
  • addressVisibility: exact when the advertiser published the street, approximate when only the area is public. latitude/longitude are filled only for exact addresses; otherwise they stay empty and nothing is guessed.
  • antiquity: the building age band as Fotocasa publishes it. Empty when the advertiser did not say.
  • photos: every photo of the listing; imageUrl is the first one.
  • phone: published listing phone, including private-owner and unknown client types, or null when unavailable.
  • name / publisherName: the advertiser shown on the card; publisherUrl is their public profile when Fotocasa shows one.
  • postedAt / modifiedAt: first publication and last update, when the listing publishes them.
  • operation and propertyType: sale or rental, and the property type of the search (viviendas for form searches; a pasted URL gives its own type, such as pisos or casas).
  • listingKey: a stable unique key, ideal for de-duplication and for tracking a home across runs.
  • scrapedAt / collectedAt: when the page that carried the record was read (UTC). Homes are saved page by page, so these are per page.

More of the Spanish market

Fotocasa is one of Spain's largest property portals. Every record names its source and portal, so you can merge this dataset with other portal datasets and still filter by origin.

FAQ

Can I use any Fotocasa search URL? Any search results page in Spanish on www.fotocasa.es (addresses that start with /es/comprar/ or /es/alquiler/ and end in /l). Location, zone, property type, bedrooms, features such as terrace or pool, price filters and sort order all carry over. Single listing pages, other languages and other sites are rejected with a clear message.

Do my saved inputs still work? Yes. Every field keeps its name and meaning, and the defaults are unchanged. Only the maxima grew.

What happens if a run is stopped early? Homes are saved as they are found, so a timeout or a cost cap keeps everything collected up to that point and the run says why it stopped.

What if one of my searches is wrong? The other searches still run. The bad one is listed under skippedSearches in the run's OUTPUT record with the reason, and nothing is charged for it. If every search is wrong, the run ends with no results and a message explaining what to fix.

How fresh are the results? Every run reads the live search pages, so you get the homes that are online at that moment.

Which locations are supported? All of Spain: any province, city, district or zone that Fotocasa covers.

Why did my run return no results? Either the search really has no matching homes with those filters, or the location is not spelled the way Fotocasa writes it (valencia-capital or valencia-provincia, not valencia). The run's message and OUTPUT say which. Copy the slug from the address bar, or paste the whole search URL.

Can I collect rentals? Yes. Set operation to rental, or paste an /es/alquiler/ search URL.

Why is a field empty? Some listings do not publish every detail (a plot has no bedrooms, some homes have no public price, many hide the exact street). The field is empty instead of guessed.

How many homes can I get? Up to 2,700 per run and 90 pages per search (about 2,700 homes). Fotocasa stops giving new results after roughly 10,000 homes in one search, so split a big market into several searches — one per district, price range or property type — and stack them in one run.

How long does a large run take? About 2.5 minutes per 1,000 homes with the default pause between pages. Raise the run timeout accordingly on the Run options tab.

Do you collect phone numbers or emails? phone contains the published phone number when available, including private-owner listings. There is no email field. Descriptions are the text Fotocasa shows on the search card.

Which export formats are available? JSON, CSV, Excel, XML and the other dataset formats Apify offers, or read the dataset through the Apify API from your own code.

For help, contact Apify Support and include the run URL.

Pricing

Current price: $0.0006 per listing plus a $0.0005 start fee, so 1,000 listings cost about $0.60.

You pay per listing returned plus a small start event for each run. The start event is charged per GB of memory, so the default 512 MB run is one start event. See the Actor's Pricing tab on Apify for current rates. Total run cost depends on the selected limits and your Apify plan. Start with a small maxResults value and check the run cost before scheduling larger collections.