DEV Community

Jones
Jones

Posted on

No Otodom API? Warsaw flat prices per m by district with Python

Otodom.pl is Poland's biggest property portal. On 15 November 2026 it listed 20,213 flats for sale in Warsaw alone. It has no public API for listings, so if you want that data in a spreadsheet or a notebook, you have to read the pages.

This post pulls 1,000 Warsaw listings with about twenty lines of Python and works out what a square metre costs in each district. All the numbers come from a real run.

Disclosure: we built and sell the tool used here, the Otodom Scraper on Apify.

The script

You need a free Apify account and its API token (Console, then Settings, then API & Integrations).

pip install apify-client pandas
export APIFY_TOKEN=your_token
Enter fullscreen mode Exit fullscreen mode
import os

import pandas as pd
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("redomic/otodom-scraper").call(run_input={
    "location": "mazowieckie/warszawa/warszawa",
    "dealType": "sale",
    "propertyType": "flat",
    "fetchDetails": False,
    "maxItems": 1000,
})
flats = pd.DataFrame(client.dataset(run.default_dataset_id).list_items().items)

by_district = (
    flats.groupby("district")
    .agg(flats=("id", "count"), median_pln_m2=("pricePerM2", "median"), median_m2=("areaM2", "median"))
    .query("flats >= 20")
    .sort_values("median_pln_m2", ascending=False)
)
print(by_district.round(0))
flats.to_csv("warsaw.csv", index=False)
Enter fullscreen mode Exit fullscreen mode

fetchDetails: False keeps to the search results, which already carry price, price per m², area, rooms, floor, district, street and the agency. The run took two and a half minutes and returned 965 flats; the Actor drops listings that show up on more than one results page, which is why there are fewer than 1,000. It printed:

                flats  median_pln_m2  median_m2
district
Śródmieście        55        27384.0       55.0
Wilanów            41        22874.0       91.0
Wola               78        21350.0       50.0
Żoliborz           20        20628.0       57.0
Mokotów           171        19912.0       58.0
Praga-Północ       28        19639.0       42.0
Ochota             34        18947.0       50.0
Bielany            55        18725.0       56.0
Praga-Południe     75        18600.0       47.0
Włochy             57        17895.0       49.0
Ursynów            31        17700.0       59.0
Bemowo             40        16938.0       57.0
Ursus              53        15375.0       58.0
Targówek           39        14500.0       54.0
Białołęka         146        14239.0       56.0
Wawer              23        13050.0       73.0
Enter fullscreen mode Exit fullscreen mode

What the numbers say

  • The centre costs about twice as much per m² as the edges. A median square metre in Śródmieście asks 27,384 PLN, in Białołęka 14,239. For a 55 m² flat that is roughly 1.5 million PLN against 780,000.
  • Across the whole sample, the median flat is 55 m² and asks 930,000 PLN, or 17,861 PLN per m².
  • Small flats cost more per m². One-room flats have a median of 19,518 PLN per m², three-room flats 16,500.
  • Wilanów flats are big. The median listing there has 91 m², so its prices per flat look much higher than its price per m² suggests.
  • Most sellers are agencies. 794 of the 965 listings came from agencies and 158 from private owners.

This is 1,000 listings in Otodom's default order out of about 20,000, so treat it as a quick read, not a census. Raise maxItems for a bigger sample.

More detail per listing

Set fetchDetails to True (the default) and the Actor opens every listing's own page. Rows then also carry the build year, new build or resale, monthly charges (czynsz), heating, building type, elevator, energy certificate, available-from date, GPS and photos. It is much slower, because it loads one page per listing, so start with a few hundred listings.

If you only want fresh listings, add "postedWithinDays": 1 (posted or updated in the last day) and run it every morning.

Without code

Search on otodom.pl as usual, copy the address from your browser and paste it into Start URLs on the Actor's page. The filters you set on the site carry over. Then download the results as CSV, Excel or JSON.

Get only what changed

Monitor mode returns only listings that are new, changed price or disappeared since the last run. Save an input like this as a task and give it a daily schedule:

{
  "location": "mazowieckie/warszawa/warszawa",
  "districts": ["mokotow", "wola"],
  "roomsMin": 2,
  "roomsMax": 3,
  "priceMax": 900000,
  "mode": "monitor",
  "maxItems": 200
}
Enter fullscreen mode Exit fullscreen mode

The first run records what is listed today. After that, each row has changeType (new, changed or removed) and the previous price. Add "droppedOnly": true to get price drops only.

What it costs

$1.20 per 1,000 listings, so the run above cost about $1.16. Apify's free plan comes with $5 of credit a month, enough for about 4,000 listings. In monitor mode you pay only for new and changed listings.

Limits worth knowing

  • You don't get phone numbers or email addresses, and the Actor removes them from descriptions.
  • Otodom mixes development project cards into its results. They aren't individual flats, so the Actor skips them.
  • Fields from the listing page, like build year or monthly charges, are there only when the advertiser filled them in.
  • The Actor reads public pages without logging in. Check Otodom's terms and your local law for what you do with the data.

If a run returns something odd, open an issue on the Actor's page with your input.

Top comments (0)