Skip to content
//Fotocasa Scraper example\\

Barcelona flats for rent, 10 listings

Rental flats in Barcelona between 800 and 2,000 EUR.

Updated November 29, 2026

What this example returns

This example returns up to 10 listings.

The dataset’s “Listings” view shows 16 columns: Photo, Price €, Operation, Type, Bedrooms, Baths, m², Floor, Address, District, City, Province, €/m², Agency, Listed, and Listing. See every output field.

What each setting does

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

Location location

Barcelona

City, province, district or neighbourhood in Spain, such as Madrid, Sevilla, Eixample or Marbella. Fotocasa's own place search picks the best match. Uses the Search and Filters settings below.

Max listings maxItems

10

How many listings to save in total. 0 means no limit. Fotocasa pages through at most about 10,000 listings per search; when a search lists more and you want more, the run reads it again in price ranges, so the whole search can be collected (listings without a price are only reached through the first 10,000).

Default: 10000 → this example uses 10

Operation operation

Rent

Buy, rent, share a flat, rent to buy, or business transfer.

Default: Buy → this example uses Rent

Property type propertyType

Flats

What kind of property to search for.

Default: Homes (all) → this example uses Flats

Min price (€) minPrice

800

Lowest price in euros (monthly rent for rentals).

Max price (€) maxPrice

2000

Highest price in euros.

.json
{
  "location": "Barcelona",
  "operation": "rent",
  "propertyType": "flats",
  "minPrice": 800,
  "maxPrice": 2000,
  "maxItems": 10
}

What it costs

From about $0.0025 for 10 listings

An estimate at the lowest plan price: 10 × $0.0002523 per result (One Fotocasa 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

Other ways to run Fotocasa Scraper

All examples of Fotocasa Scraper

About Fotocasa Scraper

Scrape public Fotocasa.es property listings in Spain from search URLs, listing URLs, or a place name with filters. Get price, rooms, bathrooms, m², floor, address, coordinates, photos, agency and energy certificate.

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

Fotocasa 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.