Skip to content
//Pisos.com Scraper example\\

Flats for rent in Barcelona, 2+ bedrooms under €3,000

Newest rentals in Barcelona city with full listing details and agency phone.

Updated December 4, 2026

What this example returns

This example returns up to 10 listings.

The dataset’s “Overview” view shows 14 columns: Photo, Title, Price (€), Rooms, Bathrooms, Area (m²), Floor, Property type, Neighborhood, District, City, Advertiser name, Phone, and Listing. See every output field.

What each setting does

The input this example runs Pisos.com Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Locations locations

Barcelona Capital

Places in Spain to search: a city, province, district, neighbourhood or town (for example Madrid Capital, Barcelona, Chamberí, Marbella) or a pisos.com location slug such as madrid_capital. Each one is a separate search using the settings below. Use 'Madrid Capital' for the city and 'Madrid' for the whole province.…

Max listings maxItems

10

How many listings to save in total. 0 means no limit. Searches with more than 3,000 listings are split by price automatically so you can go past the site's 100-page limit.

Default: 20 → this example uses 10

Operation transactionType

For rent (alquiler)

Buy, rent, or new developments (obra nueva). Used with Locations.

Default: For sale (venta) → this example uses For rent (alquiler)

Property type propertyType

Flats and apartments

What kind of property to search for. Used with Locations (new developments always list homes).

Default: All homes (pisos y casas) → this example uses Flats and apartments

Sort by sortBy

Newest first

Order of the results. Newest first uses pisos.com's most recent listings; with listing pages on, the most recently updated or published of them come first.

Default: Relevance → this example uses Newest first

Max price (€) maxPrice

3000

Highest price in euros.

Min bedrooms minRooms

2

Fewest bedrooms.

Open each listing page fetchDetails

Yes

Adds the full description, every feature (lift, terrace, pool, furnished, heating...), usable and plot area, condition, building age, orientation, energy certificate, all photos, exact map point, last update date and the advertiser's name, address and phone. One extra page per listing; turn off for faster,…

.json
{
  "locations": [
    "Barcelona Capital"
  ],
  "transactionType": "rent",
  "propertyType": "apartment",
  "minRooms": 2,
  "maxPrice": 3000,
  "sortBy": "newest",
  "maxItems": 10,
  "fetchDetails": true
}

What it costs

From about $0.0089 for 10 listings

An estimate at the lowest plan price: 10 × $0.0008912 per listing (One pisos.com listing saved to the dataset). A run is charged for the events it reports, so one that finds fewer listings costs less. Platform usage is included in the event price.

Full pricing

When to use this example

From the Pisos.com Scraper readme:

Why is a field empty?

Fields come from what each advertiser filled in. Energy rating, orientation or community fees are often missing on the site itself. Amenity flags, the full description and advertiser details need Open each listing page (on by default). With it off, the agency name is read from its pisos.com profile link, so accents can be missing and private owners have no name.

Known limit

With several locations, Max listings is shared by all of them; set Max listings per search to split it evenly.

Other ways to run Pisos.com Scraper

All examples of Pisos.com Scraper

About Pisos.com Scraper

Scrape pisos.com property listings in Spain by location with filters, or from search and listing URLs. Get price, rooms, bathrooms, m², floor, address, coordinates, photos, energy rating, features and the agency or owner with phone.

Price:
From $0.891 / 1,000 results
Developer:
Roam & Roof

Pisos.com Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.