Spain Property Price per m2 by City & District avatar

Spain Property Price per m2 by City & District

Pricing

from $0.96 / 1,000 price per m2 statistics rows

Go to Apify Store
Spain Property Price per m2 by City & District

Spain Property Price per m2 by City & District

Spain property price per m2 by city and district, for sale or rent: median, average and quartile asking prices from public Pisos.com ads. License: personal use only; resale and redistribution prohibited. Created with the help of artificial intelligence.

Pricing

from $0.96 / 1,000 price per m2 statistics rows

Rating

0.0

(0)

Developer

Bon Plein Capital

Bon Plein Capital

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Share

Spain Property Price per m2 by City and District

This Spain property price per m2 scraper turns public Pisos.com search pages into a ready-to-use market table: the median, average and quartile asking price per square metre for a Spanish city and for each of its districts, for sale or for rent. Instead of thousands of raw ads, you get a few clean rows you can drop into a spreadsheet, a dashboard or a valuation model. Typical users are investors, relocation agents, appraisers, analysts and agencies who want fast price-per-m2 benchmarks for Madrid, Barcelona, Valencia, Sevilla, Malaga and other towns.

What does this Actor do?

  • Samples public Pisos.com search result pages for each city you give (about 30 listings per page).
  • Reads price and living area from every ad, computes the price per m2 and removes ads with missing values and extreme outliers.
  • Groups the clean listings by district and returns one city row, one district row per district with enough listings and one bedrooms row per bedroom-count group.
  • Adds bedroom-count rows (0, 1, 2, 3, 4+ bedrooms, level: "bedrooms") when the sample is large enough, so you can compare studios with family flats.
  • Gives for each row: medianPricePerSqm, meanPricePerSqm, p25PricePerSqm, p75PricePerSqm, minPricePerSqm, maxPricePerSqm, medianPrice, medianAreaSqm, avgBedrooms, listingsCount and a confidence level (low, medium, high) based on sample size.
  • Includes up to three sample listing URLs per row so you can spot-check the figures.
  • Works for sale prices (EUR per m2) and for rents (EUR per m2 per month).

Figures are asking prices in current ads, not transaction prices, and they describe the sample read (pages per city are configurable). Read the confidence field before relying on a district row. The Actor reads public pages only: it never logs in, never reads private accounts and never bypasses captchas. If the portal serves an anti-bot page, the log says so and the run ends without billing.

How to use it

  1. Click Try for free and open the Input tab.
  2. Enter one or more Spanish cities (for example Madrid, Barcelona).
  3. Choose For sale or For rent, and the number of result pages per city (more pages mean more reliable district rows).
  4. Click Start, then download the Overview table as JSON, CSV or Excel, or read it through the Apify API, Make, Zapier or n8n.

The prefilled input (Madrid, for sale, 2 pages, at most 5 rows) is small on purpose, so you can test the Actor for a few cents.

Input

{
"cities": ["Madrid", "Barcelona"],
"operation": "buy",
"pagesPerCity": 5,
"minListingsPerDistrict": 3,
"maxItems": 50
}
FieldTypeMeaning
citiesarraySpanish cities as written on Pisos.com
operationstringbuy or rent
pagesPerCityintegerResult pages sampled per city (1 to 30)
minListingsPerDistrictintegerDistricts below this count are left out
maxItemsintegerMaximum number of rows (city and district rows)
proxyConfigurationobjectOptional Apify Proxy

Output

Each row is one dataset item. Example district row:

{
"level": "district",
"country": "ES",
"city": "Madrid",
"district": "Chamberi",
"operation": "buy",
"currency": "EUR",
"listingsCount": 12,
"medianPricePerSqm": 6100,
"meanPricePerSqm": 6240,
"p25PricePerSqm": 5300,
"p75PricePerSqm": 7000,
"minPricePerSqm": 4200,
"maxPricePerSqm": 9100,
"medianPrice": 480000,
"medianAreaSqm": 78,
"avgBedrooms": 2.3,
"confidence": "medium",
"pagesRead": 2,
"source": "pisos.com",
"sampledAt": "2026-10-16T09:00:00+00:00"
}

How much does it cost?

This Actor uses pay per event pricing: one area-stat event per statistics row saved to the dataset, at $1.60 per 1,000 rows. A typical city gives one city row plus a handful of district rows, so analysing ten cities usually costs a few cents, plus a small Apify platform usage. You pay nothing when no row is produced. Apify's free plan monthly credits let you try it first.

FAQ

Which portal and which countries are covered?

Spain only, from Pisos.com. For raw listings in Spain, Italy, Portugal and France, use a listings scraper instead; this Actor is made for price-per-m2 benchmarks.

Why is a district missing?

Districts with fewer usable listings than minListingsPerDistrict are left out, and some ads do not publish a district. Increase pagesPerCity to get a larger sample.

Are these official statistics?

No. They are computed from asking prices in public ads at the time of the run, and they can differ from notary or registry data. Treat them as a market indicator, not as a valuation or financial advice.

The Actor reads only public search pages and returns aggregated statistics plus links to public ads; it collects no names, phone numbers or e-mail addresses. You remain responsible for using the data lawfully, including the GDPR in the European Union, and for respecting the terms of the portal.

What if a city returns nothing?

Check the spelling used on Pisos.com, try again later, or add an Apify Proxy in proxyConfiguration. Open an issue in the Issues tab with your input and run link if the problem persists.


Created with the help of artificial intelligence.