# Pisos.com Scraper — Spain Homes for Sale & Rent (`hipersoft/pisos-com-scraper`) Actor

Scrape Spanish property listings from pisos.com: price, rooms, bathrooms, m², floor, location, description, photos and listing link for flats and houses for sale or rent in any city. Big searches split by price automatically. Export CSV/JSON.

- **URL**: https://apify.com/hipersoft/pisos-com-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00075 / listing

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Pisos.com Scraper: Spain Homes for Sale and Rent

**Pisos.com Scraper** extracts property listings from **pisos.com**, one of Spain's leading real-estate portals with hundreds of thousands of **pisos, casas, áticos, chalets, locales and garajes** for sale and rent. Every listing includes the **price, rooms (habitaciones), bathrooms (baños), size in m², floor, neighbourhood and district, description, photo count, main photo and listing link**. Search **Madrid, Barcelona, Valencia, Sevilla, Málaga** or any Spanish city or province, filter by **price**, and export to **CSV, Excel or JSON**. Big searches are **split automatically by price**, so you are not limited to the first 3,000 results.

### What does Pisos.com Scraper do?

- 🇪🇸 **Any Spanish location**: cities and provinces across Spain.
- 🏠 **Sale, rent or shared**: venta, alquiler and compartir.
- 🏢 **Property types**: pisos, casas, viviendas, áticos, dúplex, chalets, locales, oficinas, garajes and terrenos.
- 💶 **Price** (sale price or monthly rent) with min/max filters.
- 📐 **Size and layout**: m², rooms, bathrooms and floor.
- 📍 **Location**: neighbourhood and district.
- 📝 **Description**, **photo count**, **main photo**, top and new-development flags.
- 🔗 **Paste pisos.com links** to reuse any filters from the site.
- 📈 **Automatic price splitting** for big cities to collect far more than 3,000 listings.

### What data can you scrape from pisos.com?

| Field | Description |
|---|---|
| ID, title, link | Listing ID, title and page |
| Price | Sale price or monthly rent (€) |
| Rooms, bathrooms | Habitaciones and baños |
| Size | Built area in m² |
| Floor | Planta / bajo / ático |
| Location | Neighbourhood and district |
| Description | Listing description |
| Photos | Photo count and main photo |
| Flags | Top listing, new development |

### Use cases for Spanish property data

- **Real-estate investors**: compare price per m² across Spanish cities and neighbourhoods.
- **Agencies and agents**: monitor new listings and competitors in your area.
- **Rental market analysis**: track rents in Madrid, Barcelona, Valencia and more.
- **Proptech and valuation models**: feed listing data into pricing and AVM models.
- **Relocation and expat services**: shortlist homes by budget and size.
- **Academic and housing research**: analyse affordability across Spain.

### How to scrape pisos.com

1. Click **Try for free** to open Pisos.com Scraper in Apify Console.
2. Choose **sale or rent**, a **property type** and enter **locations**.
3. Optionally set **min/max price** and **newest first**, or paste **pisos.com links**.
4. Set **Max listings** and click **Start**.
5. Download the listings as **CSV, Excel or JSON**.

### Input

#### Example input

```json
{
  "operation": "alquiler",
  "propertyType": "pisos",
  "locations": ["Valencia", "Madrid"],
  "maxPrice": 1200,
  "sortNewest": true,
  "maxItems": 1000
}
```

| Field | Description |
|---|---|
| **Operation** | Sale, rent or shared. |
| **Property type** | Flats, houses, penthouses, offices… |
| **Locations** | Spanish cities or provinces, one search each. |
| **Minimum / Maximum price** | Price range in €. |
| **Newest first** | Sort by publication date. |
| **Pisos.com search links** | Any pisos.com results link. |
| **Max listings** | Stop after this many (0 = no limit). |

### Output

#### Listing example

```json
{
  "id": "66680190992.517747",
  "url": "https://www.pisos.com/alquilar/atico-eixample_gran_via46005-66680190992_517747/",
  "title": "Ático en Carrer de Borriana",
  "location": "Gran Via (Distrito L'Eixample. València Capital)",
  "operation": "alquiler",
  "price": 1200,
  "priceText": "1.200 € /mes",
  "currency": "EUR",
  "rooms": 1,
  "bathrooms": 1,
  "areaM2": 52,
  "floor": null,
  "features": ["1 hab.", "1 baño", "52 m²"],
  "description": "¿Te imaginas vivir en una de las zonas más exclusivas y demandadas de Valencia?…",
  "photoCount": 11,
  "imageUrl": "https://fotos.imghs.net/mm-wp/517747/66680190992.517747/517747_66680190992_5d1f288d-2c47-4c31-84da-6339bb2d5d4c.jpg",
  "top": true,
  "newDevelopment": false,
  "search": "alquiler pisos Valencia"
}
```

#### Output schema

| Field | Type | Description |
|---|---|---|
| `id`, `url`, `title` | string | Listing. |
| `location` | string | Neighbourhood and district. |
| `operation` | string | venta, alquiler or compartir. |
| `price`, `priceText`, `currency` | mixed | Price. |
| `rooms`, `bathrooms`, `areaM2` | number | Layout and size. |
| `floor` | string | Floor. |
| `features` | array | Listed characteristics. |
| `description` | string | Description. |
| `photoCount`, `imageUrl` | mixed | Photos. |
| `top`, `newDevelopment` | boolean | Flags. |
| `search`, `scrapedAt` | string | Source info. |

### How much does it cost to scrape pisos.com?

Pisos.com Scraper uses **pay-per-listing** pricing: a small fixed price per listing, with automatic discounts on higher Apify plans. See the **Pricing** tab for the exact price.

### More property data

- [Airbnb Scraper](https://apify.com/hipersoft/airbnb-scraper): short-term rentals in Spain and worldwide.
- [Rightmove Scraper](https://apify.com/hipersoft/rightmove-scraper): UK property.

### FAQ

**How many listings can I get?**
pisos.com shows up to 3,000 listings per search. Without a price filter, the scraper splits big searches by price automatically to go past that limit.

**Can I scrape rentals?**
Yes. Set **Operation** to **For rent (alquiler)**; prices are monthly rents.

**Can I use my own filters?**
Yes. Set up a search on pisos.com, copy the link and paste it into **Pisos.com search links**.

**What formats can I export?**
CSV, Excel, JSON, XML, HTML and RSS, or read the results through the Apify API.

**Can I integrate Pisos.com Scraper with other apps?**
Pisos.com Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JS/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

**Is it legal to scrape pisos.com?**
The scraper only collects publicly listed property offers. You are responsible for using the data in line with pisos.com's terms and the GDPR.

### Related Actors

- [Airbnb Scraper](https://apify.com/hipersoft/airbnb-scraper)
- [Rightmove Scraper](https://apify.com/hipersoft/rightmove-scraper)

### Notes

Original clean-room implementation. Returns only public data. Not affiliated with pisos.com.

# Actor input Schema

## `operation` (type: `string`):

Buy, rent or shared rooms.

## `propertyType` (type: `string`):

Type of property.

## `locations` (type: `array`):

Spanish cities or provinces, e.g. Madrid, Barcelona, Valencia, Sevilla, Malaga, Alicante. Each location is a separate search.

## `minPrice` (type: `integer`):

Only listings at or above this price.

## `maxPrice` (type: `integer`):

Only listings at or below this price.

## `sortNewest` (type: `boolean`):

Sort by publication date, newest first.

## `startUrls` (type: `array`):

Optional. Paste pisos.com search-results links with your own filters. When set, the fields above are ignored.

## `maxItems` (type: `integer`):

Stop after this many listings. 0 means no limit.

## `proxyConfiguration` (type: `object`):

Not required for normal use.

## Actor input object example

```json
{
  "operation": "venta",
  "propertyType": "pisos",
  "locations": [
    "Madrid"
  ],
  "sortNewest": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

The results as dataset items.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "locations": [
        "Madrid"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/pisos-com-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "locations": ["Madrid"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/pisos-com-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "locations": [
    "Madrid"
  ],
  "maxItems": 50
}' |
apify call hipersoft/pisos-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hipersoft/pisos-com-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZwfPSnyxFvLS9GmJ8/builds/Kc7JV3PBGY2GSkijN/openapi.json
