Fotocasa Scraper avatar

Fotocasa Scraper

Pricing

from $6.00 / 1,000 listing scrapeds

Go to Apify Store
Fotocasa Scraper

Fotocasa Scraper

Extract property listings from Fotocasa.es, Spain's largest real estate portal. Scrape prices, rooms, area, GPS coordinates, agency contacts, and images. Filter by location, operation, property type, price range, size, and publication date. Export as JSON, CSV, or Excel. API access included.

Pricing

from $6.00 / 1,000 listing scrapeds

Rating

0.0

(0)

Developer

ParseBird

ParseBird

Maintained by Community

Actor stats

1

Bookmarked

6

Total users

2

Monthly active users

14 days ago

Last modified

Share

Fotocasa Scraper

Extract property listings from Fotocasa.es, Spain's leading real estate portal with millions of listings for sale, rent, shared housing, and commercial transfers across every Spanish city and region.

Search any Spanish city, filter by price, size, operation type, and publication date — get structured property data with GPS coordinates, agency contacts, and images ready for analysis at scale.

ParseBird Real Estate   •  European property data at scale
🏠  Fotocasa Scraper
➤ You are here
🏡  Funda.nl Scraper
Dutch residential listings
🏢  Immoweb.be Scraper
Belgian property data, 70+ fields

Copy to your AI assistant

Copy this block into ChatGPT, Claude, Cursor, or any LLM to start using this actor.

parsebird/fotocasa-scraper on Apify. Call: ApifyClient("TOKEN").actor("parsebird/fotocasa-scraper").call(run_input={...}), then client.dataset(run["defaultDatasetId"]).list_items().items for results. Key inputs: location (string, e.g. "Madrid", "Barcelona", "Valencia"), operation (string: "buy"/"rent"/"share"/"rentBuyOption"/"transfer", default "buy"), propertyType (string: "home"/"newHome"/"premises"/"garages"/"office"/"boxRoom"/"land"/"building", default "home"), maxItems (integer, default 10), minPrice/maxPrice (integer, 0=no limit), minSize/maxSize (integer,, 0=no limit), sortBy (string: "rating"/"latest"/"cheapest"/"mostExpensive"/"biggest"/"smallest"/"cheapestPerM2"), publicationDate (string: ""/"last48h"/"lastWeek"/"lastMonth"). Full actor spec: fetch via GET https://api.apify.com/v2/acts/parsebird~fotocasa-scraper (Bearer TOKEN). Get token: https://console.apify.com/account/integrations

What is Fotocasa Scraper?

Fotocasa Scraper extracts structured property listing data from Fotocasa.es, Spain's largest real estate portal. It collects prices, rooms, surface area, GPS coordinates, agency contact details, images, and full descriptions — all from search result pages without visiting individual listings.

Use it as a Fotocasa API alternative to get Spanish real estate data in JSON, CSV, or Excel. No coding required — configure your search, click Start, and download results. Or integrate via the Apify API to automate property data collection at scale.

What can Fotocasa Scraper do?

  • 🔍 Search any Spanish location — cities, regions, neighborhoods, and coastal areas
  • 🏘️ Five operation types — buy, rent, shared housing, rent-to-buy, and business transfers
  • 🏗️ Eight property categories — homes, new construction, commercial premises, garages, offices, storage rooms, land, and entire buildings
  • 💰 Filter by price and size — set minimum/maximum price (€) and area (m²)
  • 📅 Publication date filter — last 48 hours, last week, last month, or all time
  • 📊 Seven sort options — relevance, latest, cheapest, most expensive, biggest, smallest, cheapest per m²
  • 🔄 Schedule recurring runs — monitor new listings, track price changes, and build historical datasets with Apify scheduling
  • 🔗 API access and integrations — connect to Google Sheets, Zapier, Make, webhooks, or any workflow via the Apify API

What data can you extract from Fotocasa?

FieldDescription
propertyIdUnique Fotocasa listing identifier
transaction.typeSALE, RENT, SHARE, TRANSFER
transaction.priceListing price in euros
surfaceProperty area in m²
roomsNumber of rooms
bathsNumber of bathrooms
street, number, floorStreet address details
addressCountry, district, municipality, province
locationGPS latitude and longitude
agency.name, agency.phoneReal estate agency contact
multimediaImage URLs with type and classification
descriptionFull listing description (Spanish)
buildingType, buildingSubtypeProperty classification
publicationDateWhen the listing was published
detailUrlRelative URL to the full listing page

How to scrape Fotocasa

  1. Go to the Fotocasa Scraper page on Apify Store
  2. Click Try for free to open the Actor console
  3. Enter a location (e.g. Madrid, Barcelona, Valencia, Málaga)
  4. Select an operation type — buy, rent, share, rent-to-buy, or transfer
  5. Choose a property type — home, new construction, premises, garages, office, storage, land, or building
  6. Set optional filters — min/max price, min/max size, publication date, sort order
  7. Set Max Items to control how many listings to collect
  8. Click Start and wait for the run to finish
  9. Download your data in JSON, CSV, Excel, or connect via the Apify API

Python API example

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("parsebird/fotocasa-scraper").call(run_input={
"location": "Barcelona",
"operation": "rent",
"propertyType": "home",
"maxItems": 50,
"maxPrice": 1500,
"sortBy": "cheapest",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(f"{item['transaction']['price']}€ — {item['surface']}m² — {item.get('street', 'N/A')}")

JavaScript API example

import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: "YOUR_API_TOKEN" });
const run = await client.actor("parsebird/fotocasa-scraper").call({
location: "Barcelona",
operation: "rent",
propertyType: "home",
maxItems: 50,
maxPrice: 1500,
sortBy: "cheapest",
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
console.log(`${item.transaction.price}€ — ${item.surface}m² — ${item.street ?? "N/A"}`);
});

Input parameters

ParameterTypeRequiredDefaultDescription
maxItemsintegerNo10Maximum number of property listings to scrape
locationstringNo"Madrid"City or region to search (e.g., Madrid, Barcelona, Valencia)
operationstringNo"buy"Operation type: buy, rent, share, rentBuyOption, transfer
rentalTypesarrayNo[]Rental duration (only for rent): longTerm, temporary
propertyTypestringNo"home"Property category: home, newHome, premises, garages, office, boxRoom, land, building
minPriceintegerNo0Minimum price in euros (0 = no minimum)
maxPriceintegerNo0Maximum price in euros (0 = no maximum)
minSizeintegerNo0Minimum area in m² (0 = no minimum)
maxSizeintegerNo0Maximum area in m² (0 = no maximum)
publicationDatestringNo""Publication filter: "" (any), last48h, lastWeek, lastMonth
sortBystringNo"rating"Sort order: rating, latest, cheapest, mostExpensive, biggest, smallest, cheapestPerM2
proxyConfigurationobjectNoApify ProxyProxy settings (residential proxies recommended)

Output example

{
"propertyId": "187123129",
"transaction": {
"type": "SALE",
"price": 120000
},
"surface": 57,
"rooms": 3,
"baths": 1,
"street": "Calle de Benimamet",
"number": "51",
"floor": "10",
"address": {
"country": "España",
"district": "Centro",
"municipality": "Madrid",
"province": "Madrid"
},
"publicationDate": "2025-07-21T19:15:08.237Z",
"location": {
"latitude": "40.3443439",
"longitude": "-3.6871201"
},
"agency": {
"name": "OCASIONES INMOBILIARIAS DEL HENARES SL",
"phone": "912170482"
},
"multimedia": [
{
"url": "https://static.fotocasa.es/images/ads/06cd3b85-dd58...",
"type": "image",
"classification": "exterior"
},
{
"url": "https://static.fotocasa.es/images/ads/4085ad4c-5c34...",
"type": "image",
"classification": "bedroom"
}
],
"description": "Piso en venta en el centro de Madrid...",
"buildingType": "Flat",
"buildingSubtype": "Flat",
"isNewConstruction": false,
"detailUrl": "/es/comprar/vivienda/madrid/centro/187123129/d",
"sourceUrl": "https://www.fotocasa.es/es/comprar/viviendas/madrid/todas-las-zonas/l?sortType=scoring"
}

Download results in JSON, HTML, CSV, or Excel.

Use cases

  • 📈 Real estate market analysis — Track pricing trends, average €/m² costs, and inventory levels across Spanish cities
  • 💼 Investment research — Compare property yields, identify undervalued neighborhoods, and monitor price-per-square-meter trends
  • 📇 Lead generation — Extract agency contact information for partnership and outreach opportunities
  • 🏠 Relocation planning — Build filtered shortlists matching specific criteria (price, size, location, rooms)
  • 🔄 Market monitoring — Schedule recurring runs to track new listings and price changes over time
  • 🔗 PropTech integration — Feed property data into CRMs, comparison tools, valuation models, or analytics dashboards

How much does it cost to scrape Fotocasa?

EventPrice per eventPrice per 1,000
listing-scraped$0.006$6.00

One event is charged each time a property listing is successfully scraped and saved to the dataset. You only pay for listings actually returned.

Cost examples:

ListingsCost
10 (default run)$0.06
100$0.60
1,000$6.00
10,000$60.00

Apify offers a free trial with $5 of platform credits — enough to scrape ~830 property listings at no cost.

How it works

  1. Constructs a Fotocasa.es search URL from your input parameters (location, operation, filters)
  2. Opens the search page in a headless Chromium browser with residential proxies
  3. Accepts cookie consent and waits for listings to load
  4. Extracts property data via network interception of Fotocasa's internal API responses
  5. Falls back to page state extraction or DOM parsing if network interception yields no results
  6. Paginates through search results until maxItems is reached or no more listings are found
  7. Pushes each property listing to the Apify dataset

FAQ

What locations can I search on Fotocasa? Any location available on Fotocasa.es — cities (Madrid, Barcelona, Valencia, Sevilla, Málaga), regions (Costa del Sol, Costa Brava, Islas Baleares), provinces, or neighborhoods. Enter the location name as it appears on the site.

Can I scrape rental listings from Fotocasa? Yes. Set operation to rent and optionally specify rentalTypes to filter by long-term or temporary rentals.

Why does this scraper use residential proxies? Fotocasa.es uses anti-bot protection. Residential proxies (especially Spanish ones) provide the best success rate. The scraper uses Apify's RESIDENTIAL proxy group by default.

How many Fotocasa listings can I scrape per run? There is no hard limit. Set maxItems to control how many listings to collect. Larger runs use more compute time and proxy bandwidth.

Does this scraper visit individual listing detail pages? No. It extracts data from search result pages only, which already contain comprehensive property information including price, area, rooms, GPS coordinates, agency details, and images.

Can I schedule recurring scrapes? Yes. Use Apify scheduling to run daily, weekly, or at any custom interval. Combine with webhooks or integrations to automate your property data pipeline.

Can I access the data via API? Yes. Every run produces a dataset accessible via the Apify API. Integrate with Python, JavaScript, Google Sheets, Zapier, Make, or any HTTP-capable tool.

What property types does Fotocasa Scraper support? Eight categories: homes (viviendas), new construction (obra nueva), commercial premises (locales), garages (garajes), offices (oficinas), storage rooms (trasteros), land (terrenos), and entire buildings (edificios).

This Actor extracts publicly available data from Fotocasa.es. Scraping public data is generally considered legal based on recent court rulings, including the US Ninth Circuit's decision in hiQ Labs v. LinkedIn. However, users are responsible for ensuring their use of scraped data complies with applicable laws, Fotocasa.es Terms of Service, and data protection regulations including GDPR. Do not use extracted personal data for unsolicited contact or purposes incompatible with the original collection context. For more information, read Apify's blog post on web scraping legality.

Other ParseBird real estate scrapers

ActorTarget siteRegion
Fotocasa ScraperFotocasa.es🇪🇸 Spain
Funda.nl ScraperFunda.nl🇳🇱 Netherlands
Funda in Business ScraperFundaInBusiness.nl🇳🇱 Netherlands (commercial)
Immoweb.be ScraperImmoweb.be🇧🇪 Belgium

Browse all ParseBird actors on the Apify Store.