# Redpiso Scraper – Spain Real Estate Listings (`sn41lz/redpiso-scraper`) Actor

Scrape property listings from Redpiso, one of Spain's largest real estate agency networks: price, €/m², area, rooms, bathrooms, floor, address, district, coordinates, energy rating, amenities, description, photos and office for any Spanish city.

- **URL**: https://apify.com/sn41lz/redpiso-scraper.md
- **Developed by:** [Sergi Espí Zamora](https://apify.com/sn41lz) (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

$2.00 / 1,000 properties

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

## Redpiso Scraper – Spain Real Estate Listings

Get property listings from **[Redpiso](https://www.redpiso.es)**, one of Spain's largest real estate agency networks (500+ offices, strongest in Madrid), as clean data: **price, €/m², area, bedrooms, bathrooms, floor, address, neighbourhood, district, city, postcode, GPS coordinates, energy rating, build year, condition, amenities (lift, terrace, parking, pool, storage room, A/C…), community fees, full description, photos and the Redpiso office** handling each property.

Type a city (**Madrid, Getafe, Alcalá de Henares, Valencia, Sevilla, Málaga, Zaragoza, Barcelona…**), pick buy or rent and a property type, and click Start.

### Why this scraper?

- **The whole Redpiso network:** homes, flats, penthouses, houses, shops, offices, garages, storage rooms, land, buildings, rooms and holiday rentals, for sale or rent.
- **Rich details:** build year, condition, energy rating, lift, terrace, parking, pool, A/C, heating, hot water, orientation, community fees and every feature the office filled in.
- **Geocoded:** latitude/longitude for every listing (flagged when approximate), plus neighbourhood and district.
- **Every page, no duplicates:** all results of a search, so you never pay twice for the same property.

### Who is it for?

- **Investors** comparing €/m² across Spanish cities, districts and neighbourhoods.
- **Agents and analysts** tracking new supply and the stock of a large agency network.
- **Proptech and data teams** building valuation models, maps and lead lists of agency offices.

### What data do you get?

| Field | Example |
|---|---|
| `title`, `propertyType`, `dealType`, `status` | Piso en venta en San Andrés, Villaverde, Madrid · Piso · sale · available |
| `price`, `pricePerM2` | 195000, 2955 |
| `areaM2`, `usableAreaM2`, `rooms`, `bathrooms`, `floor` | 66, 60, 2, 1, 1 |
| `address`, `street`, `streetNumber`, `postalCode` | Avenida del General Perón, 32, Tetuán, Madrid · Avenida del General Perón · 32 · 28020 |
| `neighbourhood`, `district`, `city`, `province` | San Andrés, Villaverde, Madrid, Madrid |
| `latitude`, `longitude`, `locationApproximate` | 40.35069, -3.71382, true |
| `energyRating`, `buildYear`, `condition` | B, 1968, Para entrar a vivir |
| `elevator`, `terrace`, `parking`, `pool`, `storageRoom`, `furnished` | true, true, false, true, true, false |
| `airConditioning`, `heating`, `communityFeesMonthly` | Frío/calor, Individual, 60 |
| `features` | all amenities: `{"outwardFacing": true, "securityDoor": true, "hotWater": "Gas natural", "flooring": "Gres"…}` |
| `description` | full text (phone numbers masked) |
| `image`, `images`, `hasVideo`, `hasVirtualTour` | photo URLs |
| `officeName`, `officeAddress`, `officeUrl` | REDPISO VILLAVERDE ALTO · Doctor Pérez Domínguez, 9, 28021, Madrid |
| `createdAt`, `updatedAt`, `url` | 2026-10-23T11:27:01Z, link to the listing |

### How to use it

1. Add one or more **Locations** (city names; "Provincia de Madrid" for a whole province; "España" or empty for all of Spain).
2. Pick **Buy or rent**, a **Property type** and optionally price, bedrooms and size filters.
3. Set **Max results** to control cost, and click **Start**.
4. Download as Excel, CSV or JSON, or send the data to Google Sheets.

You can also paste any Redpiso result page or office page in **Result page URLs**.

**Tip:** turn off **Include full details** for a faster run with just the result-card fields (price, area, rooms, location, coordinates, photos, office).

### How much does it cost?

**$2 per 1,000 properties** ($0.002 each), with or without full details. Use **Max results** to set a hard cap.

### Notes

- Locations are matched to the cities and provinces Redpiso has listings in; the log shows which place each one matched.
- `floor` is read from the description when the office mentions it (0 = ground floor); Redpiso has no separate floor field.
- Street, number and postcode are only present when the office chose to publish the exact address.
- Phone numbers and e-mails in descriptions are replaced with `[phone]` / `[email]`; staff names and contacts are not collected.
- The Actor reads public pages at a gentle pace and respects the site's robots.txt.

***

### En español

Extrae los inmuebles de **Redpiso** de toda España: pisos, áticos, casas, chalets, locales, oficinas, garajes, trasteros, solares y habitaciones en venta o alquiler, con precio, €/m², superficie, habitaciones, baños, planta, dirección, barrio, distrito, coordenadas, certificado energético, año de construcción, ascensor, terraza, garaje, piscina, gastos de comunidad, descripción, fotos y oficina. Escribe la ciudad (Madrid, Valencia, Sevilla…) o «Provincia de …». 2 $ por cada 1.000 inmuebles.

# Actor input Schema

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

Spanish cities or towns, e.g. 'Madrid', 'Getafe', 'Valencia', 'Sevilla', 'Málaga', 'Zaragoza'. Write 'Provincia de Madrid' for a whole province, or 'España' for the whole country. Leave empty to search all of Spain.

## `wholeProvince` (type: `boolean`):

Search the province around each city instead of just the city.

## `dealType` (type: `string`):

For sale (venta) or for rent (alquiler).

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

What kind of property to search for.

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

Only properties at or above this price (monthly rent for rentals).

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

Only properties at or below this price (monthly rent for rentals).

## `minBedrooms` (type: `integer`):

Only homes with at least this many bedrooms (habitaciones).

## `minAreaM2` (type: `integer`):

Only properties of at least this size.

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

Open each listing for the full description, build year, condition, energy rating, air conditioning, heating, community fees and all amenities. Turn off for a faster run with just the result-card fields (price, area, rooms, location, coordinates, photos, office).

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

Or paste Redpiso result pages with any filters set on the site, e.g. https://www.redpiso.es/venta-viviendas/madrid/madrid/con-precio-hasta_300000 or an office page like https://www.redpiso.es/oficina/inmobiliaria-a-coruna/venta.

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

Stop after this many properties in total. 0 = no limit.

## Actor input object example

```json
{
  "locations": [
    "Madrid"
  ],
  "wholeProvince": false,
  "dealType": "buy",
  "propertyType": "homes",
  "includeDetails": true,
  "maxItems": 20
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `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 = {
    "locations": [
        "Madrid"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("sn41lz/redpiso-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": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("sn41lz/redpiso-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": 20
}' |
apify call sn41lz/redpiso-scraper --silent --output-dataset

```

## MCP server setup

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