# Pisos.com Scraper (`jooah-code/pisos-scraper`) Actor

\[💰$3.5 / 1K] ⚡ Fast, cheap Pisos.com scraper for Spanish property listings. No login, no proxy needed. Sale and rent homes, rooms, offices, land by location, filters or URL. Get price, €/m², rooms, size, features, energy rating, GPS, all photos and agency phone.

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

## Pricing

from $2.45 / 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.
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

![Pisos.com Scraper](https://ik.imagekit.io/l2imuhdgi/banners/pisos-banner_jxmmBHdLS.png)

> Scrape Spanish homes, rooms, offices, land, and garages for sale or rent from [Pisos.com](https://www.pisos.com/) and download them as JSON, CSV, Excel, or HTML. No account or login required.

### What does Pisos.com Scraper do?

**Pisos.com Scraper** turns Pisos.com property listings into a clean, structured dataset. Paste a Pisos.com search or listing URL, or type a place name and pick your filters, and get the price, price per m², bedrooms, bathrooms, size, features, energy certificate, GPS coordinates, photos, and advertiser phone number for each listing.

[Pisos.com](https://www.pisos.com/) is a major Spanish real estate portal where agencies and private owners publish flats, houses, penthouses, rooms, commercial premises, offices, land, and garages in every province. Its listings give a detailed picture of asking prices and supply across Spain. The scraper reads the same public pages you see in your browser, so you can run it once, put it on a schedule, or plug it into your own tools.

### Features

- **Locations or URLs**: search by province, city, or neighborhood, or start from any Pisos.com page you already filtered in your browser.
- **Built-in filters**: choose sale or rent, property type, price range, minimum bedrooms, bathrooms, and size, and the sort order.
- **Keeps your URL filters**: price, bedrooms, bathrooms, size, sort order, and page from a pasted URL are respected.
- **Full or quick mode**: open every listing for the complete details, or turn details off for a faster run with search result data only.
- **Clean data**: prices and sizes are numbers, dates use one standard format, and descriptions are plain text.
- **Small, cheap runs**: set a result limit per URL or location and pay only for what you collect.
- **Automation ready**: schedule runs, export to Google Sheets, or connect to Make, Zapier, and n8n.

### Data fields

1. **Listing**: `url`, `id`, `title`, `transactionType`, `propertyType`, `description`, `reference`, `updatedAt`
2. **Price**: `price`, `priceText`, `priceCurrency`, `pricePeriod`, `pricePerSqm`, `communityFees`
3. **Property details**: `rooms`, `bathrooms`, `size`, `usableSize`, `floor`, `condition`, `buildingAge`, `orientation`, `features`, `amenities`
4. **Energy certificate**: `energyCertificateStatus`, `energyRating`, `energyConsumption`, `emissionsRating`, `emissions`
5. **Location**: `address`, `location`, `neighborhood`, `district`, `city`, `province`, `zipCode`, `latitude`, `longitude`
6. **Photos**: `images`, `imageCount`
7. **Advertiser**: `advertiserType`, `advertiserName`, `advertiserAddress`, `advertiserPhone`, `advertiserLogo`, `advertiserUrl`

### Who uses this Pisos.com scraper?

- **Real estate analysts** compare asking prices and price per m² by city, district, or property type.
- **Real estate agencies** keep an eye on what other agencies publish in their area and at what price.
- **Sales teams** build contact lists of agencies and private sellers with their phone numbers.
- **Investors** spot rental and sale opportunities with coordinates, size, and energy rating at hand.
- **Data and AI teams** feed ready-to-use property data into spreadsheets, dashboards, valuation models, or AI workflows.

### How to use Pisos.com Scraper

**Step 1.** Paste one or more Pisos.com URLs into **Start URLs**, or type place names into **Locations**.

**Step 2.** For locations, choose the **Operation**, **Property type**, and any price, bedroom, bathroom, size, or sort filters.

**Step 3.** Set **Maximum number of results** to how many listings you want per URL or per location.

**Step 4.** Click **Start** and wait for the run to finish.

**Step 5.** Download the data in JSON, CSV, Excel, or HTML from the **Output** tab.

### Input parameters

- `startUrls` (**Start URLs**): Pisos.com URLs to scrape. Supported pages: search results for sale or rent (any location and property type) and single listing pages. Filters set on the website are kept.
- `searchQueries` (**Locations**): places to search, such as a province, city, or neighborhood (for example "Valencia", "Marbella", or "Malasaña"), one per line. The closest matching place on Pisos.com is used, and each location is scraped separately.
- `operation` (**Operation**): `sale` or `rent`. Default `sale`. Locations only.
- `propertyType` (**Property type**): homes, flats, houses, penthouses, duplexes, studios, lofts, rural properties, commercial premises, offices, warehouses, land, garages, or rooms (rooms are rent only). Default `homes`. Locations only.
- `minPrice` (**Minimum price (€)**) and `maxPrice` (**Maximum price (€)**): price range. Locations only.
- `minRooms` (**Minimum bedrooms**): 1 to 5. Locations only.
- `minBathrooms` (**Minimum bathrooms**): 1 to 3. Locations only.
- `minSize` (**Minimum size (m²)**): smallest built area in square meters. Locations only.
- `sortBy` (**Sort by**): relevance, newest, cheapest or most expensive first, most or fewest bedrooms first, largest or smallest first. Default `relevance`. Locations only.
- `includeDetails` (**Include full listing details**): on by default. Opens each listing to add the full description, all photos, usable area, condition, building age, orientation, community fees, energy certificate, all features, advertiser details, and the last update date. Turn it off for a faster run.
- `maxResults` (**Maximum number of results**): how many listings to collect for each start URL or location. Default 5. Set 0 for no limit.

Start URLs and locations can be combined in one run.

### Example input

#### Scrape a Pisos.com search page

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

#### Search a location with filters

```json
{
  "searchQueries": ["Barcelona"],
  "operation": "sale",
  "propertyType": "homes",
  "sortBy": "relevance",
  "includeDetails": true,
  "maxResults": 5
}
```

### Sample output

Every listing becomes one dataset item, for example:

```json
{
  "url": "https://www.pisos.com/comprar/piso-carabanchel_san_isidro28019-65077851154_510936/",
  "id": "65077851154.510936",
  "title": "Piso en venta en Calle de San Cándido",
  "transactionType": "sale",
  "propertyType": "Piso",
  "price": 439900,
  "priceText": "439.900 €",
  "priceCurrency": "EUR",
  "pricePeriod": null,
  "pricePerSqm": 4887,
  "rooms": 3,
  "bathrooms": 2,
  "size": 90,
  "usableSize": 80,
  "floor": "1ª",
  "condition": "En buen estado",
  "buildingAge": "Más de 50 años",
  "orientation": "Este",
  "communityFees": "Entre 80 y 100 €",
  "reference": "MADRID RIO",
  "features": [
    { "name": "Superficie construida", "value": "90 m²" },
    { "name": "Superficie útil", "value": "80 m²" },
    { "name": "Habitaciones", "value": "3" },
    { "name": "Baños", "value": "2" },
    { "name": "Planta", "value": "1ª" },
    { "name": "Exterior", "value": null }
  ],
  "amenities": [
    "Exterior",
    "Calefacción",
    "Lavadero",
    "Portero automático",
    "Puerta blindada"
  ],
  "energyCertificateStatus": "Disponible",
  "energyRating": "F",
  "energyConsumption": 314,
  "emissionsRating": "E",
  "emissions": 66,
  "description": "Hay zonas de Madrid donde se compra una vivienda. Y hay zonas donde se compra calidad de vida.\n\nESTUDIO PRADERA DE SAN ISIDRO, S.L. presenta esta excelente opor...",
  "address": "Calle de San Cándido",
  "location": "San Isidro (Distrito Carabanchel. Madrid Capital)",
  "neighborhood": "San Isidro",
  "district": "Carabanchel",
  "city": "Madrid Capital",
  "province": "Madrid",
  "zipCode": "28019",
  "latitude": 40.399459,
  "longitude": -3.7209612,
  "images": [
    "https://fotos.imghs.net/xl-wp/510936/65077851154.510936/510936_65077851154_74e3db83-c061-48be-afcc-7ca46520b75f.jpg",
    "https://fotos.imghs.net/xl-wp/510936/65077851154.510936/510936_65077851154_9d6ab14d-bf34-4492-9099-c891c09ca678.jpg",
    "https://fotos.imghs.net/xl-wp/510936/65077851154.510936/510936_65077851154_1357d40b-0f72-4d24-8d37-6e0e92afe918.jpg"
  ],
  "imageCount": 33,
  "advertiserType": "professional",
  "advertiserName": "REDPISO ESTUDIO PRADERA DE SAN ISIDRO",
  "advertiserAddress": "C/GENERAL RICARDOS, 26 Madrid Capital (Madrid)",
  "advertiserPhone": "+34919383603",
  "advertiserLogo": "https://fotos.imghs.net/prof-wp/logos/Logo_510936_20240422115102.jpg",
  "advertiserUrl": "https://www.pisos.com/inmobiliaria-redpiso_estudio_pradera_de_san_isidro/",
  "updatedAt": "2026-08-18T00:00:00Z"
}
```

Export the dataset as JSON, CSV, Excel, XML, or HTML, or read it through the Apify API.

### Good to know

- A single Pisos.com search shows no more than 100 pages (3,000 listings). For bigger collections, split the search by city, district, price range, or property type.
- New-build development pages ("Obra nueva") are not supported yet and are skipped.
- Suggested listings shown below the results ("these listings may also interest you") are left out, so the count matches the search itself.
- Feature names, condition, and other text values stay in Spanish, as on the website.
- When **Include full listing details** is off, fields that appear only on the listing page (usable size, energy certificate, advertiser address, last update date, and others) are `null`.
- Some listings have no energy rating (certificate pending or exempt), phone number, or advertiser type; those fields are then `null`.
- A location that Pisos.com does not recognize is skipped with a warning.

### Frequently asked questions

**How many results can I scrape?**

As many as you set in **Maximum number of results**, or 0 for no limit. The scraper stops at your limit or when the search has no more listings. See **Good to know** for the limit set by Pisos.com.

**Do I need a Pisos.com account?**

No. Only public listings are collected, so there is nothing to log in to and no account details to share.

**Can I run it on a schedule?**

Yes. Apify Schedules can run it every hour, day, or week to keep your listings up to date.

**Why are some fields empty?**

Not every listing shows every detail. A value that is missing on the website is returned as `null`.

**Can you add a new filter or input?**

Yes. Today the scraper supports start URLs, locations, and the filters listed above. Other filters, such as a pool or a garage, can be added on request.

**Can I get a custom or private version?**

Yes. It can be adapted to your workflow, delivered as a private version, or a new scraper can be built for another website. See the contact details below.

### Support and custom scrapers

Need another field, a private version, or a scraper for a different website? Get in touch:

- Email: jooah.code@gmail.com
- Apify profile: [joaah-code](https://apify.com/joaah-code)

### Image credit

Banner: screenshot of [Pisos.com](https://www.pisos.com/).

# Actor input Schema

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

Pisos.com URLs: search results pages for sale or rent (any location, property type, price, rooms, size and sort set on the website) or single listing pages.

## `searchQueries` (type: `array`):

Places to search, such as a province, city or neighborhood (for example "Valencia", "Marbella" or "Malasaña"). The best matching location on Pisos.com is used.

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

Listings for sale or for rent. Applies to locations only; start URLs keep their own filters.

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

Type of property. Rooms are available for rent only. Applies to locations only.

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

Only listings with at least this price. Applies to locations only.

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

Only listings with at most this price. Applies to locations only.

## `minRooms` (type: `integer`):

Only listings with at least this number of bedrooms (1 to 5). Applies to locations only.

## `minBathrooms` (type: `integer`):

Only listings with at least this number of bathrooms (1 to 3). Applies to locations only.

## `minSize` (type: `integer`):

Only listings with at least this built area in square meters. Applies to locations only.

## `sortBy` (type: `string`):

Order of the results. Applies to locations only.

## `includeDetails` (type: `boolean`):

Open every listing to add the full description, all photos, usable area, condition, building age, orientation, community fees, energy certificate, all features, advertiser name and address and the last update date. Turn off for a faster run with the data shown in search results.

## `maxResults` (type: `integer`):

Maximum number of listings to scrape per start URL or location. Set 0 for no limit. The website shows at most 3,000 listings (100 pages) per search, so use filters to split larger searches.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.pisos.com/venta/pisos-madrid/"
    }
  ],
  "searchQueries": [
    "Barcelona"
  ],
  "operation": "sale",
  "propertyType": "homes",
  "sortBy": "relevance",
  "includeDetails": true,
  "maxResults": 5
}
```

# Actor output Schema

## `overview` (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": [
        {
            "url": "https://www.pisos.com/venta/pisos-madrid/"
        }
    ],
    "searchQueries": [
        "Barcelona"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jooah-code/pisos-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-madrid/" }],
    "searchQueries": ["Barcelona"],
}

# Run the Actor and wait for it to finish
run = client.actor("jooah-code/pisos-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-madrid/"
    }
  ],
  "searchQueries": [
    "Barcelona"
  ]
}' |
apify call jooah-code/pisos-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jooah-code/pisos-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/V3H6SE3tdtT9W1j4s/builds/2rmfJ0qV0pCVE3nr9/openapi.json
