# Otodom Monitor - Rental Yield, Deals, Price Drops (`apt_squirrel/otodom-market-monitor`) Actor

Polish property listings from Otodom (sale and rent) with price per m² vs the district, estimated rent and gross rental yield, new listings, price drops, re-posted and gone homes, and a district & agency market report. No login.

- **URL**: https://apify.com/apt_squirrel/otodom-market-monitor.md
- **Developed by:** [YDidkivskiy](https://apify.com/apt_squirrel) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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/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

## Otodom Monitor - Rental Yield, Deals, Price Drops

Polish property listings from **Otodom.pl**, for sale and for rent, in one clean dataset, plus the numbers an
investor works out by hand: **price per m² against the district**, **estimated rent and gross rental yield for every
flat for sale**, **new listings, price drops, re-posted and gone homes** between runs, and a **market report by
district and agency**. No login, no browser, no contact data.

Built for property investors and flippers, agents and agencies watching their market, developers pricing new
projects, relocation and rental businesses, and analysts.

### What you get that a plain scraper does not

| Feature | What it means |
|---|---|
| **Rental yield** | With "Sale and rent" (the default) one run reads both sides of the same city. Every sale listing gets `estimatedRentMonthly` (district median rent per m² × its area) and `grossYieldPct`. The report ranks districts by gross yield. |
| **Deal score 0-100** | Price per m² compared with comparable homes: same sale/rent, property type, new build or resale, district (or city when the district has too few), similar size. You get `marketMedianPerM2`, `vsMarketPct` and a label: great deal, good deal, fair, high, overpriced. |
| **Bad-deal filter** | Auctions (licytacja), shares of a property (udział), contract assignments (cesja), social housing and "do remontu" listings get `priceWarning`, the label **check listing**, and are kept out of the district price. Listings 30 %+ under the district are labelled **suspiciously low**, not "great deal". |
| **Monitoring** | Schedule it daily. Each listing gets `changeType`: new, price_drop, price_rise, unchanged, relisted, removed, with the previous price, the change in %, the price history and the real days on market. |
| **Re-post detection** | Agencies delete and re-post homes so they look fresh. The monitor recognises the same home under a new ID (`relisted`, `relistedFromId`) and keeps its first-seen date. Developers' identical units are never mistaken for re-posts. |
| **Gone listings** | Homes that disappeared since the last run, with last price and days listed: what sells or rents, and how fast. |
| **Agency intelligence** | Per agency or developer: listings, cities, median price per m², share of promoted and exclusive offers. |
| **Market report** | A ready page (key-value store record `REPORT`) and JSON (`MARKET_REPORT`): yield by district, best deals, highest yields, district price quartiles, agencies, change counts. |
| **15 cities one click away** | Warszawa, Kraków, Wrocław, Gdańsk, Gdynia, Sopot, Poznań, Łódź, Katowice, Szczecin, Lublin, Bydgoszcz, Toruń, Białystok, Rzeszów or all of Poland, plus any Otodom location path or search link. |

### Input

```json
{
  "cities": ["warszawa", "krakow"],
  "transaction": "both",
  "propertyType": "flat",
  "rooms": ["2", "3"],
  "areaMin": 35,
  "areaMax": 70,
  "priceMax": 1000000,
  "market": "secondary",
  "maxItemsPerSearch": 600,
  "minYieldPct": 6,
  "onlyChanges": true
}
```

Filters: property type (flat, house, plot, commercial, room, garage), rooms, area, sale price, monthly rent, new
builds or resale, seller (private owner, agency, developer), posted within N days, built from year. Any other place
works through **Other locations** with Otodom's own path, e.g. `mazowieckie/piaseczynski/piaseczno`.

### Output (one listing)

```json
{
  "title": "3 pokoje z balkonem, Stary Mokotów",
  "transaction": "sale", "estate": "flat", "market": "secondary",
  "city": "Warszawa", "district": "Mokotów", "neighbourhood": "Stary Mokotów",
  "areaM2": 62.5, "rooms": 3, "floor": 3, "features": ["balcony", "lift", "parking"],
  "price": 1050000, "currency": "PLN", "priceEur": 235000, "pricePerM2": 16800, "adminFeeMonthly": 720,
  "marketMedianPerM2": 19200, "vsMarketPct": -12.5, "dealScore": 81, "dealLabel": "good deal",
  "comparableCount": 64, "comparableBasis": "district, same type and market, similar size",
  "estimatedRentMonthly": 5250, "grossYieldPct": 6.0, "yieldBasis": "district",
  "changeType": "price_drop", "previousPrice": 1099000, "priceChangePct": -4.5, "daysOnMarket": 23,
  "sellerType": "agency", "agencyName": "Example Nieruchomości", "exclusiveOffer": true, "promoted": false,
  "url": "https://www.otodom.pl/pl/oferta/..."
}
```

Gone listings come as rows with `changeType: "removed"`, `lastPrice`, `daysOnMarket` and `removedAt`.

### How the numbers are made

- **Price per m²** comes from the listing. Comparable homes need at least 5 in the same district; otherwise the
  whole city is used and `comparableBasis` says so.
- **Gross yield** = 12 × median rent per m² ÷ median sale price per m², from the listings of this run, per district
  (or city). It is gross: before vacancy, admin fees and tax. More listings per search give steadier medians.
- Asking prices, not transaction prices.

### Data and fair use

The actor reads public Otodom search pages only (paths the site's robots.txt allows), a few pages at a time, and never
opens contact data. It does not return agents' or private owners' names, and no street for private owners. Listings
belong to Otodom and its advertisers. This actor is not affiliated with Otodom or OLX Group.

# Actor input Schema

## `cities` (type: `array`):

Where to search.

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

Both: sale and rent listings of the same area, so every sale listing gets an estimated rent and gross yield.

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

Property type.

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

Empty = any.

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

Area from (m²).

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

Area to (m²).

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

Sale price from (PLN).

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

Sale price to (PLN).

## `rentMin` (type: `integer`):

Monthly rent from (PLN).

## `rentMax` (type: `integer`):

Monthly rent to (PLN).

## `market` (type: `string`):

Empty = both.

## `sellerType` (type: `string`):

Empty = all.

## `postedWithinDays` (type: `integer`):

Posted within (days).

## `buildYearFrom` (type: `integer`):

Built from (year).

## `locationPaths` (type: `array`):

Any place as Otodom writes it in its links, e.g. mazowieckie/piaseczynski/piaseczno or malopolskie/krakow/krakow/krakow/podgorze.

## `searchUrls` (type: `array`):

Otodom search links (https://www.otodom.pl/pl/wyniki/...) with your filters.

## `maxItemsPerSearch` (type: `integer`):

Per city and transaction, newest first. Gone listings are only reported when a search fits in this limit.

## `minDealScore` (type: `integer`):

50 = district price per m², 75 = about 10% below, 88+ = 15%+ below. Flagged and suspiciously low listings score 60 at most.

## `minYieldPct` (type: `number`):

Needs 'Sale and rent'. E.g. 6.

## `onlyChanges` (type: `boolean`):

For scheduled runs: after the first run, return only new listings, price drops, price rises and re-posted homes (plus gone ones).

## `includeRemoved` (type: `boolean`):

Report gone listings.

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

Optional. Runs with the same name share their history.

## `proxyConfiguration` (type: `object`):

Proxy.

## Actor input object example

```json
{
  "cities": [
    "warszawa"
  ],
  "transaction": "both",
  "propertyType": "flat",
  "rooms": [],
  "locationPaths": [],
  "searchUrls": [],
  "maxItemsPerSearch": 300,
  "onlyChanges": false,
  "includeRemoved": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Every listing with price per m² vs the district, deal score, estimated rent and yield, and what changed since the last run.

## `report` (type: `string`):

Rental yield by district, best deals, highest yields, districts and agencies, as a page.

## `reportJson` (type: `string`):

The same report as JSON for your own tools.

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_squirrel/otodom-market-monitor").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 = { "proxyConfiguration": { "useApifyProxy": True } }

# Run the Actor and wait for it to finish
run = client.actor("apt_squirrel/otodom-market-monitor").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 '{
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call apt_squirrel/otodom-market-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apt_squirrel/otodom-market-monitor"
        }
    }
}
```

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/hAnac0z1g2ZOG7OXf/builds/oYvdMhfPvIQ75STRm/openapi.json
