# Otodom Scraper - Plus Imovirtual & Storia (`difioprdy/otodom-scraper`) Actor

Scrape Otodom, Imovirtual and Storia real estate listings in Poland, Portugal and Romania. Flats, houses, plots and more, for sale or rent. Get price, price per m2, area, rooms, district and photos, EUR prices, a per-m2 deal score and tracking of new listings and price drops. JSON, CSV, Excel, API.

- **URL**: https://apify.com/difioprdy/otodom-scraper.md
- **Developed by:** [Difio Pradyasaputra](https://apify.com/difioprdy) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

> **Disclaimer:** Otodom Scraper - Plus Imovirtual & Storia is an unofficial tool and is not affiliated with,
> endorsed by or connected to otodom.pl, imovirtual.com or storia.ro. It collects only publicly visible listing
> data. You are responsible for using the data lawfully and in line with each site's terms.

## Otodom Scraper - Plus Imovirtual & Storia

**Otodom scraper** for Poland real estate data, with the same output for **Portugal property data**
(imovirtual.com) and a **Romania real estate scraper** (storia.ro). Search flats, houses, plots, commercial
space, warehouses, garages or rooms, for sale or for rent, in a city or the whole country. Every listing comes
with price, **property price per m2**, area, rooms, floor, city, district, region, street name, seller type
(private, agency or developer) and photos, plus the price in EUR, a deal score per m² and an optional monitor
that returns only new listings and price changes. Works like an Otodom API: clean JSON, CSV or Excel, or the
Apify API.

- One request reads about 72 listings, with no proxy by default, so large exports stay cheap.
- Same fields on all three sites: an **Imovirtual scraper** and a **Storia scraper** in one Actor.
- Developer projects (new buildings) are recognised and marked, with their starting price per m² and unit
  area range.
- No names, phone numbers or e-mails of private sellers or agents.

### What do you want to do?

| Goal | Preset | What you get | Estimated cost |
|---|---|---|---|
| Check prices in a city | `price_research` | All listings, EUR prices, deal score per m², price and district summaries | $1.50 per 1,000 listings |
| Get alerts for new listings and price drops | `deal_hunting` | Only new listings and price changes on each scheduled run, newest first | $1.50 per 1,000 new/changed listings; unchanged ones are free |
| Compare markets / write a report | `market_report` | 500 listings per portal, price summary per portal, cheapest market, district medians | $1.50 per 1,000 listings |

Pick a preset in the `preset` field. A preset other than `custom` always sets `sort`, `monitorMode` and
`emitDelisted` (values you enter there are ignored; choose `custom` to set them yourself). `maxItems` is always
yours when you fill it; the preset only fills it when it is empty. Finding agencies is
not a preset here: the Actor returns the agency or developer company name (`agencyName`) but no contact details.

### Quick start

1. Open the Actor in Apify Console and click **Try for free**.
2. Choose one or more `portals`, `transaction` (sale or rent) and `propertyType`, and type a city in
   `location` (for example `Warszawa`, `Lisboa` or `Bucuresti`), or leave it empty for the whole country.
3. Choose a `preset` (or leave `custom`) and click **Start**.
4. Download the results as JSON, CSV or Excel from the **Output** tab, and open the `SUMMARY` and
   `DISTRICT_SUMMARY` records in the key-value store for the price overview.

### Recipes

Copy-paste inputs for each preset. Costs assume $1.50 per 1,000 `listing` events.

#### Price research

```json
{
  "preset": "price_research",
  "portals": ["otodom"],
  "location": "Kraków",
  "transaction": "sale",
  "propertyType": "flat",
  "maxItems": 300
}
```

Expected output: up to 300 flats for sale in Kraków, each with `priceEur`, `pricePerM2VsMedianPct` and
`isBelowMarket`, plus `SUMMARY` and `DISTRICT_SUMMARY` records. Cost: up to 300 events ($0.45).

#### Deal hunting

```json
{
  "preset": "deal_hunting",
  "portals": ["imovirtual"],
  "location": "Lisboa",
  "transaction": "rent",
  "monitorName": "lisbon-rentals",
  "maxItems": 500
}
```

Schedule it (for example daily). Expected output: the first run returns every listing as `new`; later runs
return only `new` and `price_changed` listings. Cost: first run up to 500 events ($0.75), later runs only the changes.

#### Market report

```json
{
  "preset": "market_report",
  "portals": ["otodom", "imovirtual", "storia"],
  "transaction": "sale",
  "propertyType": "flat"
}
```

Expected output: up to 500 newest flats for sale per country and a `SUMMARY` record with min/p25/median/p75/max
per portal, the same in EUR, and the cheapest market. Cost: up to 1,500 events ($2.25).

#### Your own search URL

```json
{
  "startUrls": [{"url": "https://www.otodom.pl/pl/wyniki/sprzedaz/mieszkanie/mazowieckie/warszawa/warszawa/warszawa?priceMax=900000"}],
  "maxItems": 200
}
```

Set any filter on the site, copy the address bar URL into `startUrls`, and the Actor reads that search.

### Input reference

#### Basic

| Field | Type | Default | Description |
|---|---|---|---|
| `preset` | string | `custom` | `price_research`, `deal_hunting`, `market_report` or `custom` |
| `portals` | array | `["otodom"]` | `otodom` (Poland, mostly PLN), `imovirtual` (Portugal, EUR), `storia` (Romania, mostly EUR) |
| `transaction` | string | `sale` | `sale` or `rent` |
| `propertyType` | string | `flat` | `flat`, `house`, `plot`, `commercial`, `warehouse`, `garage`, `room` (rent only) |
| `location` | string | empty | City in the local spelling, e.g. `Warszawa`, `Porto`, `Cluj-Napoca`; empty = whole country. A portal that has no place with that exact name is skipped |
| `startUrls` | array | `[]` | Search result URLs from the three sites, instead of `location` |
| `maxItems` | integer | `100` | Listings checked per portal (or per start URL); cost control. `market_report`: 500 |

#### Filters

| Field | Type | Default | Description |
|---|---|---|---|
| `priceMin` / `priceMax` | integer | `0` (none) | Price range in the portal's currency (monthly rent for rent) |
| `areaMin` / `areaMax` | integer | `0` (none) | Area range in m² |
| `rooms` | array | `[]` | e.g. `["2", "3"]`; `"6"` means 6 or more |
| `sort` | string | `newest` | `newest` or `site_default`. Ignored unless Preset is Custom |
| `includeDeveloperProjects` | boolean | `true` | Include developer project tiles |
| `excludeKeywords` | array | `[]` | Drop listings whose title contains any of these words (not charged) |

#### Monitoring

| Field | Type | Default | Description |
|---|---|---|---|
| `monitorMode` | boolean | `false` | Return only new listings and price changes. Ignored unless Preset is Custom (`deal_hunting` turns it on) |
| `monitorName` | string | `""` | Name of the watch (letters, digits, hyphens) |
| `emitDelisted` | boolean | `false` | Also return listings that disappeared (free). Ignored unless Preset is Custom |

#### Extra

| Field | Type | Default | Description |
|---|---|---|---|
| `belowMarketThreshold` | integer | `-25` | Sale: `isBelowMarket` is true at or below this % vs. the median price per m² (−100 to 0); about 10% of sale listings in our tests |
| `belowMarketThresholdRent` | integer | `-32` | Rent: the same with monthly rent per m²; about 10% of rent listings in our tests |
| `useResidentialProxy` | boolean | `false` | Use Apify residential proxy from the start instead of only when blocked |

**Presets and your own values.** With a preset other than `custom`, the preset always sets `sort`,
`monitorMode` and `emitDelisted`; whatever the form or your API input sends for them is ignored, and the log says
so ("Preset deal_hunting set: ... (choose preset Custom to set these yourself)"). `maxItems` is the exception: your
value is always used (cost control); the preset only fills it when it is empty (`market_report`: 500). With
`custom` (the default) every field works as you set it, and empty fields use the defaults above.

### Output fields

| Field | Type | Description | Example |
|---|---|---|---|
| `id` | string | Listing ID on the portal. Unique per portal; duplicates within a search are removed. | `"68000001"` |
| `url` | string | null | Link to the listing page on otodom.pl, imovirtual.com or storia.ro. | `"https://www.otodom.pl/pl/oferta/mieszkanie-3…` |
| `portal` | string | Where the listing comes from: otodom, imovirtual or storia. | `"otodom"` |
| `country` | string | Country code of the portal: pl (otodom), pt (imovirtual) or ro (storia). | `"pl"` |
| `title` | string | null | Listing title as written by the advertiser. | `"Mieszkanie 3 pokoje z balkonem"` |
| `transaction` | string | null | sale (for sale) or rent (for rent). | `"sale"` |
| `propertyType` | string | null | flat, house, plot, commercial, warehouse, garage or room. A developer project gets the type of the search (usually flat). | `"flat"` |
| `price` | number | null | Asking price in `currency`: the total price for sale, the monthly rent for rent. Null only for developer projects (the site shows no total price for them); single listings without a price are skipped. | `690000` |
| `currency` | string | null | Currency of `price` and `pricePerM2` as given by the site (mostly PLN on otodom, EUR on imovirtual and storia; a few otodom listings are in EUR and a few storia listings in RON). | `"PLN"` |
| `pricePerM2` | number | null | Price per square metre as shown by the site, in `currency`. Sale listings only (the sites show none for rent). For developer projects this is the starting price per m² ("from"). | `10000` |
| `areaM2` | number | null | Usable area in square metres. Null for developer projects (see `areaFrom`/`areaTo`). | `69` |
| `rooms` | integer | null | Number of rooms as a number (the sites cap their filter at 6, shown as 6 for "6 or more"; up to 10 in listing data). | `3` |
| `floor` | integer | null | Floor as a number: -1 basement, 0 ground floor, 1-10, 11 = above the 10th floor. Null when not given or for an attic. | `3` |
| `city` | string | null | City or town (otodom city_or_village, imovirtual council/concelho, storia county capital or town; Bucharest for its sectors). | `"Kraków"` |
| `district` | string | null | District within the city (imovirtual: parish/freguesia; storia: district, else sector). Null when the site does not give one. | `"Podgórze"` |
| `region` | string | null | Region: voivodeship (PL), distrito (PT) or county/judet (RO). | `"małopolskie"` |
| `street` | string | null | Street name as shown on the listing, without house number. Null when hidden. | `"ul. Przykładowa"` |
| `sellerType` | string | null | private, agency or developer. | `"agency"` |
| `agencyName` | string | null | Company name of the agency or developer; null for private sellers. Never a person's name or contact. | `"Example Nieruchomości Sp. z o.o."` |
| `isDeveloperProject` | boolean | null | true for a developer project tile (a new building with several units) instead of a single listing. | `false` |
| `priceFrom` | number | null | Developer projects only: lowest total unit price, when the site gives it (the search tiles currently do not, so it is usually null). Null for other listings. | `null` |
| `priceTo` | number | null | Developer projects only: highest total unit price, when the site gives it (usually null). Null for other listings. | `null` |
| `areaFrom` | number | null | Developer projects only: smallest unit area. Null for other listings. | `43.4` |
| `areaTo` | number | null | Developer projects only: largest unit area. Null for other listings. | `86.9` |
| `photoUrl` | string | null | URL of the first photo (full size, as given by the site). | `"https://ireland.apollo.olxcdn.com/v1/files/e…` |
| `photoUrls` | string\[] | null | URLs of the photos shown in search results (full size, as given by the site). | `["https://ireland.apollo.olxcdn.com/v1/files/…` |
| `createdAt` | string | null | When the listing was first published (ISO 8601, UTC). | `"2026-11-19T08:14:50+00:00"` |
| `bumpedAt` | string | null | When the listing was last pushed up (refreshed) by the advertiser (ISO 8601, UTC); null if never. | `null` |
| `daysListed` | integer | null | Whole days between `createdAt` and `scrapedAt`. | `0` |
| `searchUrl` | string | null | Search results URL this listing was found on (without page number). | `"https://www.otodom.pl/pl/wyniki/sprzedaz/mie…` |
| `scrapedAt` | string | When the Actor read the listing (ISO 8601, UTC). | `"2026-11-19T15:30:00+00:00"` |
| `priceEur` | number | null | `price` converted to EUR with the European Central Bank reference rate of `fxDate`, 2 decimals. Null when `price` is null. | `161820.67` |
| `fxRate` | number | null | EUR per 1 unit of `currency` (`priceEur ≈ price × fxRate`). 1 for EUR. | `0.23452271` |
| `fxDate` | string | null | Date of the ECB rates used (YYYY-MM-DD), normally the last ECB business day. | `"2026-11-18"` |
| `pricePerM2VsMedianPct` | number | null | Price per m² compared with the median of the same search and property type in this run, in %, 1 decimal: the district median when the district has at least 10 listings, else the city median (at least 10). Sale: `pricePerM2`. Rent: monthly rent per m² (`price` / `areaM2`; on otodom plus the monthly admin fee shown on the listing), computed only for this score. Null for rooms, developer projects, listings without area and smaller groups. | `-12.4` |
| `isBelowMarket` | boolean | null | true when `pricePerM2VsMedianPct` is at or below `belowMarketThreshold` (sale, default -25) or `belowMarketThresholdRent` (rent, default -32). Null when `pricePerM2VsMedianPct` is below -60 (almost always a data error on the listing) or there is no score. | `false` |
| `changeType` | string | null | Monitor mode only: new, price_changed or delisted. Null outside monitor mode. | `null` |
| `previousPrice` | number | null | Monitor mode: the earlier `price` for price_changed, the last known price for delisted. | `null` |
| `firstSeenAt` | string | null | Monitor mode: when this monitor first saw the listing (ISO 8601, UTC). | `null` |

`priceFrom` and `priceTo` are part of the output for developer projects, but the search pages show only a
starting price per m² for projects, so they are null today.

#### Output example

```json
{
  "id": "68000001",
  "url": "https://www.otodom.pl/pl/oferta/mieszkanie-3-pokoje-z-balkonem-ID4Abcd",
  "portal": "otodom",
  "country": "pl",
  "title": "Mieszkanie 3 pokoje z balkonem",
  "transaction": "sale",
  "propertyType": "flat",
  "price": 690000,
  "currency": "PLN",
  "pricePerM2": 10000,
  "areaM2": 69,
  "rooms": 3,
  "floor": 3,
  "city": "Kraków",
  "district": "Podgórze",
  "region": "małopolskie",
  "street": "ul. Przykładowa",
  "sellerType": "agency",
  "agencyName": "Example Nieruchomości Sp. z o.o.",
  "isDeveloperProject": false,
  "priceFrom": null,
  "priceTo": null,
  "areaFrom": 43.4,
  "areaTo": 86.9,
  "photoUrl": "https://ireland.apollo.olxcdn.com/v1/files/eyJ.../image;s=1280x1024;q=80",
  "photoUrls": [
    "https://ireland.apollo.olxcdn.com/v1/files/eyJ.../image;s=1280x1024;q=80"
  ],
  "createdAt": "2026-11-19T08:14:50+00:00",
  "bumpedAt": null,
  "daysListed": 0,
  "searchUrl": "https://www.otodom.pl/pl/wyniki/sprzedaz/mieszkanie/cala-polska",
  "scrapedAt": "2026-11-19T15:30:00+00:00",
  "priceEur": 161820.67,
  "fxRate": 0.23452271,
  "fxDate": "2026-11-18",
  "pricePerM2VsMedianPct": -12.4,
  "isBelowMarket": false,
  "changeType": null,
  "previousPrice": null,
  "firstSeenAt": null
}
```

### Dataset views

- **Overview**: photo, title, portal, price, `priceEur`, `pricePerM2`, `areaM2`, `rooms`, city, district,
  seller type, link.
- **Deals**: listings sorted by `pricePerM2VsMedianPct` (biggest discount first), with `isBelowMarket`.
- **Changes** (monitor mode): `changeType`, `price`, `previousPrice`, `firstSeenAt`.
- **Developer projects**: developer name, starting `pricePerM2`, `areaFrom`/`areaTo`.

#### Price per m² and the deal score

`pricePerM2` is the value the site shows (sale listings). `pricePerM2VsMedianPct` compares the price per m² with
the median of the same search and **property type** in this run, in the same **district** when that district has
at least 10 listings, otherwise in the same **city**. So an ordinary flat in a cheaper district is compared with
its own district, not with the expensive city centre. Groups with fewer than 10 listings get null.

- **Rent:** the score uses the monthly rent per m² (`price` / `areaM2`), computed only for the score;
  `pricePerM2` stays null for rent because the sites do not show it. On otodom the monthly admin fee (czynsz)
  shown on the listing is added first, so a base rent and an all-in rent compare fairly.
- **No score** for rooms (their area is the whole flat's), developer projects (their price per m² is a starting
  price) and listings without area.
- **Extreme values:** more than 60% below the median is almost always a wrong area or price on the listing, so
  `isBelowMarket` is null there (the percentage is still shown; `RUN_STATS` counts them as `extremeSkipped`).
- `isBelowMarket` uses `belowMarketThreshold` (−25) for sale and `belowMarketThresholdRent` (−32) for rent,
  because rents vary more per m².

#### Key-value store records (free)

- `SUMMARY`: count, min, p25, median, p75 and max of `price` per search and portal, the same in EUR, and the
  cheapest market when you search several portals.
- `DISTRICT_SUMMARY`: median `pricePerM2` in the local currency and in EUR, and the listing count, per portal,
  transaction, property type, city and district (only groups with at least 5 listings).
- `RUN_STATS`: pages, duplicates removed, skipped developer projects, listings dropped by keywords, monitor
  counts and why each search stopped.

### Pricing

Pay per result: $1.50 per 1,000 `listing` events, and no platform usage fees. Duplicates, listings without a
price, developer projects you turned off, listings dropped by `excludeKeywords`, unchanged listings in monitor mode, delisted rows and
the summary records are free. Set **Maximum cost per run** in Console to cap the spend; the Actor stops cleanly
at that limit.

### Seller contact data

This Actor does not return seller contact data. Phone numbers, e-mails and names of people (private sellers,
agents) are never collected. `agencyName` is the company name of an agency or developer as shown on the
listing; it is null for private sellers.

### Get notified

Use Apify integrations on the Actor or its schedule (Console → **Integrations**):

- **Email**: "Run succeeded" notification with a link to the dataset.
- **Slack**: post a message when a run finishes; in monitor mode each run's dataset holds only the changes.
- **Google Sheets**: append each run's dataset to a sheet.
- **Webhooks**: call your own URL on `ACTOR.RUN.SUCCEEDED` and fetch the dataset items.

Combine `deal_hunting` with a daily schedule to get only new listings and price drops.

### Monitored daily by automated quality checks

A private canary runs this Actor every day at 02:00 UTC (Otodom flats for sale in Warsaw, Imovirtual rentals,
Storia flats for sale) and checks the output shape, prices, currencies, price per m², URLs, dates, EUR conversion,
deal scores and privacy rules (no names or contact details of people). A failed check alerts the developer. Every
release also passes the same checks on test runs for every portal, sale and rent.

### FAQ

#### Is it legal to scrape Otodom, Imovirtual and Storia?

The Actor reads only public search result pages, like a visitor, and returns no names or contact details of people. Laws and site
terms differ by country and use case; check yours before using the data.

#### How do I search a city?

Type it in `location` in the local spelling (`Warszawa`, `Kraków`, `Lisboa`, `Porto`, `Bucuresti`,
`Cluj-Napoca`). The Actor looks the name up in a location table built from each site's own search results
(no extra request) and takes only an exact name match, ignoring case and accents; city level wins over districts.
When several places share the name (for example small villages), the one with the most listings is used and the
others are listed in `RUN_STATS` (`locationAlternatives`); add the region after a comma (`Nowa Wieś, mazowieckie`).
A portal without that place is skipped with a message in the log. For a small place that is not in the table, a
district or any other filter, set it on the site and paste the URL into `startUrls`.

#### Why is `price` null for some listings?

Only developer projects have no `price`: they show a starting price per m² (`pricePerM2`) and an area range.
Turn `includeDeveloperProjects` off to get only single listings. Single listings without a price ("price on
request") are skipped and not charged; `RUN_STATS` counts them as `withoutPriceSkipped`.

#### Why are the deal fields null?

The listing's district and city each had fewer than 10 listings with a price per m² in the same search and
property type, the listing has no area, or it is a room or a developer project. `isBelowMarket` alone is null when
the listing is more than 60% below the median (treated as a data error, not a deal).

#### How do I reset a monitor?

Use a new `monitorName`, or delete the record `<monitorName>--<hash>` in the `otodom-scraper-monitor`
key-value store of your account.

#### I need help or found a bug

Open an issue on the Actor's **Issues** tab with the run link.

### Limitations

- **Phone numbers are not collected**, and neither are e-mails or names of private sellers or agents. On these
  sites the phone is shown only after a click protected by reCAPTCHA, and the Actor does not get around it.
- **Coordinates (latitude/longitude) are not provided.** The search pages do not include them (only an
  approximate map radius), and the Actor does not open listing pages. Use `city`, `district` and `street`.
- The market type (new build vs. resale) and the full description are on the listing page, which the Actor
  does not open, so they are not in the output.
- Results are what the site shows in search. The sites show every result page, so there is no result cap per
  search; very large exports simply take longer (about 72 listings per request with a short pause).
- The deal score compares with the listings this run checked, not with the whole site.
- Monitor mode remembers up to 30,000 listings per search for 60 days, in a key-value store named
  `otodom-scraper-monitor` in your account (the EUR rate cache is `otodom-scraper-fx-cache`). Two runs with the same `monitorName`
  and search at the same time overwrite each other's state.

### Changelog

- **0.1.12** (2026-11-22): `location` is resolved from bundled location tables (built only from the sites'
  robots-allowed search result pages) instead of the sites' `/api/query` location search, which robots.txt
  disallows. Same input, same `resolvedLocation` format, no dataset field changed. New in `RUN_STATS`:
  `locationAlternatives` when a name matches several places. Very small places missing from the tables are skipped
  with a hint to paste a search URL into `startUrls`.
- **0.1** (2026-11-19): first version: otodom.pl, imovirtual.com and storia.ro; sale and rent; seven property
  types; city or start URLs; price, area and room filters; EUR prices, deal score per m², `SUMMARY` and
  `DISTRICT_SUMMARY`; monitor mode; presets.

### More scrapers from this developer

- [Vinted Scraper](https://apify.com/difioprdy/vinted-scraper)
- [OLX Scraper](https://apify.com/difioprdy/olx-scraper)
- [Otomoto Scraper](https://apify.com/difioprdy/otomoto-scraper)

# Actor input Schema

## `preset` (type: `string`):

Settings for a goal. price_research: one-off check of all listings with EUR prices, deal score per m2 and summaries. deal_hunting: scheduled watch that returns only new listings and price changes (needs a Monitor name), newest first. market_report: 500 listings per portal for a market overview. A preset other than Custom always sets Sort, Monitor mode and Report delisted listings (your values there are ignored); Max listings stays yours when filled.

## `portals` (type: `array`):

Sites to search, e.g. \["otodom"]. Each portal is a separate search with the same filters. Prices are mostly in PLN on otodom and in EUR on imovirtual and storia; a few listings use another currency (see the currency field), and every listing also gets priceEur.

## `transaction` (type: `string`):

sale = properties for sale (total price), rent = properties for rent (monthly rent).

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

Type of property, available on all three portals. room exists only for rent. Developer projects (new buildings) appear in flat searches; see "Include developer projects".

## `location` (type: `string`):

City or town in the local spelling, e.g. "Warszawa", "Kraków", "Lisboa", "Porto", "Bucuresti", "Cluj-Napoca". It is matched (ignoring case and accents) in a location table bundled with the Actor, built from each portal's own search results; a portal without that place is skipped, and for very small places you can paste a search URL into Start URLs instead. Leave empty for the whole country. Do not combine with Start URLs.

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

Search results URLs copied from otodom.pl, imovirtual.com or storia.ro, with any filters you set on the site, e.g. https://www.otodom.pl/pl/wyniki/sprzedaz/mieszkanie/mazowieckie/warszawa/warszawa/warszawa?priceMax=800000. Each URL is one search. Page number and page size are set by the Actor; the filters below are added on top when you fill them.

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

Maximum listings checked for each portal (or each Start URL). Your main cost control: always used when filled, also with a preset. Default 100 when left empty (market_report preset: 500). In monitor mode at most 30,000.

## `priceMin` (type: `integer`):

Minimum price in the portal's currency (PLN on otodom, EUR on imovirtual/storia; the site converts for listings in another currency), e.g. 300000. 0 or empty = no limit. For rent this is the monthly rent.

## `priceMax` (type: `integer`):

Maximum price in the portal's currency, e.g. 800000. 0 or empty = no limit.

## `areaMin` (type: `integer`):

Minimum area in square metres, e.g. 40. 0 or empty = no limit.

## `areaMax` (type: `integer`):

Maximum area in square metres, e.g. 80. 0 or empty = no limit.

## `rooms` (type: `array`):

Number of rooms to include, e.g. \["2", "3"]. "6" means 6 or more. Empty = any.

## `sort` (type: `string`):

Ignored unless Preset is Custom. newest = newest listings first (default when left empty), site_default = the portal's own default order.

## `includeDeveloperProjects` (type: `boolean`):

Developer project tiles (new buildings with several units, mostly on otodom) have a starting price per m² and an area range instead of one price. Turn off to get only single listings; skipped projects are not charged.

## `excludeKeywords` (type: `array`):

Drop listings whose title contains any of these words, e.g. \["licytacja", "udział"]. Matching ignores case and accents and works on whole words. Dropped listings are not charged.

## `monitorMode` (type: `boolean`):

Ignored unless Preset is Custom. Return only listings that are new or whose price changed since the last run with the same Monitor name and search. The first run returns everything as new. Unchanged listings are skipped and not charged. Off when left empty (deal_hunting preset: on).

## `monitorName` (type: `string`):

Name of this watch, needed in monitor mode: letters, digits and hyphens, e.g. "warsaw-flats". Use a new name to start over.

## `emitDelisted` (type: `boolean`):

Ignored unless Preset is Custom. In monitor mode, also return listings that disappeared since the last run (changeType delisted, free). Only when the whole search was read. Off when left empty.

## `belowMarketThreshold` (type: `integer`):

Sale listings: isBelowMarket is true when the price per m² is at least this many percent below the median of the same search, city and property type, e.g. -25 (flags about 10% in our tests). From -100 to 0.

## `belowMarketThresholdRent` (type: `integer`):

Rent listings: the same, using monthly rent per m², e.g. -32 (flags about 10% in our tests; rents vary more per m² than sale prices). From -100 to 0.

## `useResidentialProxy` (type: `boolean`):

Normally the Actor connects directly and switches to Apify residential proxy (in the portal's country) only if the site blocks it. Turn on to use residential proxy from the start (slower and adds proxy traffic cost).

## Actor input object example

```json
{
  "preset": "custom",
  "portals": [
    "otodom"
  ],
  "transaction": "sale",
  "propertyType": "flat",
  "location": "Warszawa",
  "startUrls": [],
  "priceMin": 0,
  "priceMax": 0,
  "areaMin": 0,
  "areaMax": 0,
  "rooms": [],
  "includeDeveloperProjects": true,
  "excludeKeywords": [],
  "monitorName": "",
  "belowMarketThreshold": -25,
  "belowMarketThresholdRent": -32,
  "useResidentialProxy": false
}
```

# Actor output Schema

## `listings` (type: `string`):

All listings (Overview view).

## `deals` (type: `string`):

Listings by price per m² vs. the median.

## `summary` (type: `string`):

SUMMARY record.

## `districtSummary` (type: `string`):

DISTRICT_SUMMARY record: median price per m² per district.

## `runStats` (type: `string`):

RUN_STATS record.

# 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 = {
    "portals": [
        "otodom"
    ],
    "location": "Warszawa"
};

// Run the Actor and wait for it to finish
const run = await client.actor("difioprdy/otodom-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 = {
    "portals": ["otodom"],
    "location": "Warszawa",
}

# Run the Actor and wait for it to finish
run = client.actor("difioprdy/otodom-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 '{
  "portals": [
    "otodom"
  ],
  "location": "Warszawa"
}' |
apify call difioprdy/otodom-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,difioprdy/otodom-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/9ThUJ5PfCEcJOxsMb/builds/WKLFHXoc2p3vBXVnd/openapi.json
