# Pisos.com Property Scraper (`snappytools/pisos-com-property-scraper`) Actor

You give it one or more Pisos.com search pages, such as flats for sale in Madrid. You get back one row per listing with the price, sizeM2, rooms, bathrooms, location and agency, plus a stable id and the listing url.

- **URL**: https://apify.com/snappytools/pisos-com-property-scraper.md
- **Developed by:** [Snappy](https://apify.com/snappytools) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Property Scraper – Spanish property listings export

You give it one or more Pisos.com search pages, such as flats for sale in Madrid. You get back one row per listing with the `price`, `sizeM2`, `rooms`, `bathrooms`, `location` and `agency`, plus a stable `id` and the listing `url`.

It reads the same public listing pages you see in your browser and follows the result pages up to the limit you set. Schedule it to keep an eye on new stock and price changes in the areas you follow, and compare the `id` field with your last export to find only new listings.

### Why this one

- **Fields you filter on.** Price, size in square metres, rooms, bathrooms and location come back as separate values, not loose text.
- **Stable IDs.** Every row carries the Pisos.com listing `id`, so you can match the same property across runs.
- **Any search page works.** Set your filters on Pisos.com, copy the address and paste it in.
- **Hard limits.** You choose the max listings and pages, so a run never runs away from you.
- **Public pages only.** It needs no login and no account.
- **Cheap.** $2.00 per 1,000 results, and runs with no results cost nothing.

### Quick start

```json
{
  "startUrls": ["https://www.pisos.com/venta/pisos-madrid/"],
  "maxItems": 5,
  "maxPages": 1
}
```

This returns up to 5 flats for sale in Madrid from the first result page. In a test run on 14 Nov 2026 with this input, it returned 5 listings.

### What you can use it for

| Who | What for |
| --- | --- |
| Property investors | Compare asking price per square metre across Spanish cities |
| Real estate agencies | Track competitor stock and new listings in your patch |
| Relocation consultants | Build shortlists of rentals for clients moving to Spain |
| Market analysts | Feed listing data into price trend models |

### How to use it

1. Click **Try for free**.
2. In **Search page URLs**, paste one or more Pisos.com search pages, for example `https://www.pisos.com/venta/pisos-madrid/`.
3. Set **Max listings** (1 to 1000), for example `100`.
4. Set **Max pages per URL** (1 to 50), for example `5`.
5. Click **Start**.

Tip: save the input as a task and schedule it to get fresh listings on a timetable.

### What data you get

Each row is one listing with these fields.

| Field | What it is | Example |
| --- | --- | --- |
| `id` | Pisos.com listing ID | `65077851154.510936` |
| `url` | Listing page link | `https://www.pisos.com/comprar/piso-carabanchel_san_isidro28019-65077851154_510936/` |
| `title` | Listing headline | `Piso en calle de San Cándido` |
| `price` | Asking price | `439900` |
| `currency` | Price currency | `EUR` |
| `sizeM2` | Floor area in square metres | `90` |
| `rooms` | Number of rooms | `3` |
| `bathrooms` | Number of bathrooms | `2` |
| `pricePerM2` | Price per square metre | `4888` |
| `location` | Area text shown on the listing | `San Isidro (Distrito Carabanchel. Madrid Capital)` |
| `agency` | Advertiser text shown on the listing | `logo` |
| `searchUrl` | Search page the row came from | `https://www.pisos.com/venta/pisos-madrid/` |
| `scrapedAt` | When it was collected (ISO time) | `2026-11-14T10:58:35.518Z` |

### Pricing

| Event | Price |
| --- | --- |
| Result (each listing saved to the dataset) | $0.002 |

| Run | Cost |
| --- | --- |
| 100 results | $0.20 |
| 1,000 results | $2.00 |
| 10,000 results | $20.00 |

There is no start fee. Runs with no results cost nothing.

### Good to know

- **Limits:** up to 1,000 listings per run and 50 pages per search URL.
- **Data source:** public Pisos.com search result pages. No login needed.
- **Missing values:** a field not shown on a listing may come back empty.
- **Agency field:** it holds whatever the listing shows, which can be a placeholder such as `logo`.
- **Freshness:** data is as current as the page at run time.
- **Not affiliated:** this tool isn't affiliated with or endorsed by Pisos.com.

### FAQ

**Can I scrape rentals?** Yes. Paste a rent search page instead of a sale one.

**How do I get only new listings?** Schedule runs and compare the `id` field with your last export.

**Can I use several searches at once?** Yes. Add more than one link to **Search page URLs**. **Max listings** applies across all of them.

### Getting the data out

Download results as Excel, CSV or JSON from the Output tab. Send them to Google Sheets, Slack, Zapier, Make or webhooks from the **Integrations** tab. Every run is available through the Apify API, and you can run it on a timetable from **Schedules**.

### Questions or problems

Open an issue on the **Issues** tab and include the run link. I reply within one business day.

### Related tools

- [Trade Me Property Scraper](https://apify.com/snappytools/trade-me-property-scraper): property listings from Trade Me
- [Otodom Scraper](https://apify.com/snappytools/otodom-scraper): property listings from Otodom

# Actor input Schema

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

Public Pisos.com search result page URLs, for example a city sale or rent listing page.

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

Maximum number of listings saved across all search URLs (1 to 1000).

## `maxPages` (type: `integer`):

Maximum number of result pages visited for each search URL (1 to 50).

## Actor input object example

```json
{
  "startUrls": [
    "https://www.pisos.com/venta/pisos-madrid/"
  ],
  "maxItems": 20,
  "maxPages": 1
}
```

# Actor output Schema

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

No description

# 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 = {
    "startUrls": [
        "https://www.pisos.com/venta/pisos-madrid/"
    ],
    "maxItems": 20,
    "maxPages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("snappytools/pisos-com-property-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 = {
    "startUrls": ["https://www.pisos.com/venta/pisos-madrid/"],
    "maxItems": 20,
    "maxPages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("snappytools/pisos-com-property-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 '{
  "startUrls": [
    "https://www.pisos.com/venta/pisos-madrid/"
  ],
  "maxItems": 20,
  "maxPages": 1
}' |
apify call snappytools/pisos-com-property-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,snappytools/pisos-com-property-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/m2VVzAbtbb8tThqtG/builds/c4MZAhCvhMdCPuWdC/openapi.json
