# Pisos.com Scraper + Catastro — Spain Listings with Official m² (`rodimuxai/pisos-com-scraper`) Actor

Scrape pisos.com listings (sale, rent, houses, land, commercial) from any search URL or just a city. Price, m², rooms, floor, exact coordinates, agency phone. Optional: every listing cross-checked with the Catastro — cadastral reference and official m² next to the advertised ones.

- **URL**: https://apify.com/rodimuxai/pisos-com-scraper.md
- **Developed by:** [RodimuxAI](https://apify.com/rodimuxai) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 listings

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 Scraper + Catastro

**Every listing on pisos.com — and, if you want, the official Cadastre record next to it.**

Paste any pisos.com search URL (or just type a city) and get clean, structured listings: price, m², rooms, bathrooms, floor, neighbourhood, exact coordinates, agency phone, photo and description. Sale or rent, flats, houses, **land**, commercial units, offices, garages, warehouses.

Then switch on **`enrichWithCatastro`** and each listing also carries its **cadastral reference, official built m², official plot m², use and year built**, straight from Spain's Cadastre. Check the match method before comparing surface areas. For address lists or datasets from other portals, see [Spain Catastro API](https://apify.com/rodimuxai/spain-cadastral-enrichment).

```json
{
  "id": "67590797254.106100",
  "url": "https://www.pisos.com/comprar/piso-zaragoza_capital_centro-67590797254_106100/",
  "title": "Piso en calle Gran Vía",
  "propertyType": "Piso",
  "address": "calle Gran Vía",
  "neighborhood": "Centro",
  "municipality": "Zaragoza Capital",
  "province": "Zaragoza",
  "price": 670000,
  "rooms": 4,
  "bathrooms": 2,
  "sizeM2": 235,
  "floor": "7ª planta",
  "latitude": 41.6455,
  "longitude": -0.890309,
  "advertiserPhone": "+34876210372",
  "isNewDevelopment": false
}
```

### Two ways in

1. **`startUrls`** — any pisos.com results page. Set your filters on the website (price, rooms, area, extras), copy the URL, paste it here. Pagination is followed automatically.
2. **`location` + `operation` + `propertyType`** — e.g. `zaragoza_capital` · `venta` · `terrenos`. The location is the slug pisos.com uses in its own URLs.

### The Catastro layer, honestly

With `enrichWithCatastro` on, each listing is matched to the Cadastre — by street and number when the listing gives them, otherwise by its map pin. Every record says how sure the match is:

| `catastroConfidence` | What it means | Charged |
|---|---|---|
| `exact` | The address is a single property (house, plot, commercial unit). Advertised vs official m² in `sizeDifferenceM2` | Yes |
| `building` | Right building, but it has many flats and the listing doesn't say which | Yes |
| `confirmed` | Matched by map pin **and** the m² agree within 15% | Yes |
| `approximate` | Matched by map pin only — may be the neighbouring parcel. Delivered so you can check, **never charged** | No |

Measured on 16 October 2026, Zaragoza: **14 of 60 flats** (23%) and **12 of 40 land listings** (30%) came back with a reliable match. pisos.com hides most street numbers, which caps this — but where it matches, you get the legal identity of the property for a few cents.

For plots, the comparison uses the **plot area** (`catastroPlotM2`, from the official cadastral map), not the built area — a plot is sold by its land.

### Output fields

| Field | |
|---|---|
| `id`, `url`, `title`, `propertyType`, `label` | Listing identity |
| `price`, `sizeM2`, `rooms`, `bathrooms`, `floor` | As advertised |
| `address`, `neighborhood`, `municipality`, `province` | Location as written on the portal |
| `latitude`, `longitude` | Map pin from the listing |
| `advertiserPhone`, `isNewDevelopment`, `description`, `image` | |
| `cadastralReference`, `parcelReference` | With Catastro on |
| `catastroSurfaceM2`, `catastroPlotM2`, `catastroUse`, `catastroYearBuilt` | Official data |
| `catastroMatch`, `catastroConfidence`, `catastroDistanceM` | How the match was made |
| `sizeDifferenceM2`, `pricePerOfficialM2` | Only for `exact` matches |

### Pricing

| Event | When |
|---|---|
| Listing | Each listing delivered |
| Catastro enriched | Only for `exact`, `building` or `confirmed` matches |

### Limits

- Listing-page data only (what pisos.com shows in its results). Full detail pages are not opened in this version.
- No owner data: it's protected by Spanish law and no public source serves it.
- The Cadastre is a free public service; enrichment runs at most 4 lookups at a time.

# Actor input Schema

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

Any pisos.com results page, with your filters already applied on the website (price, rooms, area…). Pagination is followed automatically.

## `location` (type: `string`):

pisos.com location slug, as in the website's URL: zaragoza_capital, madrid_capital, barcelona_capital, valencia, malaga… Combined with the two fields below.

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

Used with Location.

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

Used with Location.

## `enrichWithCatastro` (type: `boolean`):

Adds the cadastral reference, official m², official use and year to each listing, plus advertised-vs-official m² where the address is a single property. Charged separately, only when the Catastro returns a record.

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

Cap of listings to deliver in this run.

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

30 listings per page.

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

Apify Proxy is recommended.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.pisos.com/venta/pisos-zaragoza_capital/"
    }
  ],
  "operation": "venta",
  "propertyType": "pisos",
  "enrichWithCatastro": false,
  "maxItems": 30,
  "maxPages": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

One record per listing with title, price, sizeM2, rooms, bathrooms, floor, municipality, coordinates and, when Catastro enrichment is on, cadastralReference, catastroSurfaceM2 and sizeDifferenceM2.

# 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": [
        {
            "url": "https://www.pisos.com/venta/pisos-zaragoza_capital/"
        }
    ],
    "maxItems": 30,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rodimuxai/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 = {
    "startUrls": [{ "url": "https://www.pisos.com/venta/pisos-zaragoza_capital/" }],
    "maxItems": 30,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rodimuxai/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 '{
  "startUrls": [
    {
      "url": "https://www.pisos.com/venta/pisos-zaragoza_capital/"
    }
  ],
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rodimuxai/pisos-com-scraper --silent --output-dataset

```

## MCP server setup

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