# DOMOVOY Prague Flat Rentals (`vladb/prague-flat-rentals`) Actor

Finds rental flats in Prague (Vinohrady for now) on Sreality, Bezrealitky and iDNES, merges duplicates across portals, extracts fees with an LLM and computes the real monthly and move-in cost. Optionally writes the shortlist to Notion.

- **URL**: https://apify.com/vladb/prague-flat-rentals.md
- **Developed by:** [Vladimír LiveLaughLove](https://apify.com/vladb) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## DOMOVOY: Prague flat rentals with the real monthly cost

DOMOVOY searches three Czech rental portals at once, **Sreality, Bezrealitky and iDNES**, merges the same flat listed on several portals into one item, and works out what the flat really costs: rent plus service charges and energy per month, and deposit, commission and first payment to move in. Every number keeps the sentence it came from, and anything the listing does not say is marked unknown, never zero.

It was built in one day at the AI Tinkerers Prague hackathon (13 Nov 2026) as the research step of DOMOVOY, an agent that shortlists flats in Notion and calls the realtor to book a viewing.

### What you get

One dataset item per flat:

- **Costs (integer CZK):** `rent`, `services`, `energy`, `total_monthly`, `kauce` (deposit), `commission`, `one_time_fees`, `first_payment`, `move_in_cost`. Energy and missing furniture come from fixed tables and are flagged in `estimated`.
- **Verdict:** `match` is `strong`, `needs_info` or `rejected` against your requirements, with `match_reasons`, `requirements` and `risk_flags` (for example "cheaper on another portal").
- **Evidence:** `evidence` has one entry per extracted field with the quote from the listing and a confidence; `unknowns` lists what to ask the agency or landlord.
- **The flat:** title, address, layout, area, floor, elevator, furnished, move-in date, lease type, pets, photos and the distance to the nearest metro, tram stop and shop.
- **Every portal it appears on:** `sources[]` with portal, URL, rent, commission, collection time and the contact exactly as the portal publishes it. `cross_source` names the cheapest portal.
- **Change tracking:** `property_id` stays stable across runs and portals; `change` is `new`, `changed` or `unchanged`.

The run summary is in the default key-value store under `OUTPUT`: status and counts per portal, flats by match and change, and extraction and Notion counts.

### Input

The only required field is `profile`. The example input searches 2+kk and 2+1 flats in Vinohrady up to 30,000 CZK and takes 5 listings per portal.

```json
{
  "id": "praha-2kk-30k",
  "version": 1,
  "filters": {
    "offer_type": "rent",
    "property_type": "flat",
    "locations": [{"city": "Praha", "citypart": "Vinohrady"}],
    "dispositions": ["2+kk", "2+1"],
    "max_rent": 30000,
    "min_area_m2": 45,
    "sources": ["sreality", "bezrealitky", "idnes"],
    "max_listings": 5
  },
  "household": {"occupants": 1},
  "requirements": {
    "max_total_monthly": 32000,
    "max_upfront": null,
    "elevator": null,
    "lease_types": ["najem"],
    "move_in_by": null,
    "pets_allowed": null
  }
}
```

- `filters` decide which listings are collected. `max_listings` is per portal.
- `requirements` decide the verdict. `max_total_monthly` is required; `null` means "no requirement".
- `household.occupants` is used for fees charged per person.

#### Fee extraction: bring your own key

Fees in Czech listings are free text in the description and price note, so DOMOVOY reads them with an LLM: Qwen3-30B on [Featherless](https://featherless.ai) first, then one try on an OpenAI model as fallback. Results are cached by listing text, so a flat is read once.

**This Actor ships with no API keys.** Pass your own `featherlessApiKey` or `openaiApiKey` (both secret inputs). Without either key the run still works: you get the listings, the rent and the layout, but fees stay unknown and most flats come back as `needs_info`. Model calls are billed by your provider, not by Apify.

#### Notion (optional)

With `notion.dataSourceId` and `notionToken`, each flat that is not rejected is written to a Notion database as one page, and the profile state is saved so later runs only report new and changed flats. The database must have the DOMOVOY shortlist schema; the Actor checks it before contacting any portal and never changes it. Without Notion, results go to the dataset only and every run reports every flat as new.

### Limits

- **Locations:** **Prague Vinohrady** only for now. Sreality and iDNES skip any other location with a warning in the log; Bezrealitky searches all of Prague for another Prague citypart and fails for another city.
- **Rentals of flats only** (`offer_type` "rent", `property_type` "flat").
- Portals are read without a proxy, with a delay between requests to each portal. A portal that blocks or changes its pages is reported as `failed` or `degraded` in the summary; the other portals still run.
- Sreality is read through its undocumented web API, which can change without notice.
- `katastr_lookup` mode is reserved and returns `NOT_IMPLEMENTED`.

### Personal data

Listings include the realtor's or owner's name, phone and email as the portal publishes them, in `sources[].contact`. That is personal data under GDPR. Use it only for a legitimate purpose, such as contacting the realtor about that flat, and do not resell or republish it. You are responsible for how you store and use the data you collect, and for following each portal's terms.

### Cost

Pay per usage: you pay only the Apify platform usage of your run, plus your own LLM provider if you pass a key. A 5-listing run without keys takes a few minutes of a small container.

# Actor input Schema

## `mode` (type: `string`):

search collects listings from the portals in profile.filters.sources (Sreality, Bezrealitky, iDNES). katastr_lookup is reserved for a later version and returns NOT_IMPLEMENTED.

## `profile` (type: `object`):

What to search for and what the flat must meet. filters: offer_type "rent", property_type "flat", locations (city, optional citypart), dispositions (for example "2+kk"), max_rent and min_area_m2 in CZK and m2, sources (sreality, bezrealitky, idnes) and max_listings per source. requirements: max_total_monthly (CZK, required), max_upfront, elevator ("required" or null), lease_types (najem, podnajem), move_in_by (YYYY-MM-DD) and pets_allowed. id names the profile; household.occupants sets the per-person fees. Full schema: domovoy/schemas/profile.schema.json in the source.

## `notion` (type: `object`):

Optional. Without dataSourceId, results go to the dataset only. With it, flats are written to a Notion database with the DOMOVOY shortlist schema, and that schema is checked before any portal is contacted.

## `notionToken` (type: `string`):

Optional. Token of your Notion integration, needed only with notion.dataSourceId. Falls back to the environment variable NOTION_TOKEN, which the public Actor does not set.

## `llm` (type: `object`):

Extraction settings. Each listing is tried on the Featherless model (Qwen, two attempts within the per-flat budget), then once on the OpenAI fallback model (gpt-6-luna, reasoning effort medium).

## `featherlessApiKey` (type: `string`):

Optional, your own key. Used for the primary model (llm.model, Qwen on Featherless). Without a Featherless or OpenAI key, fees are not extracted and stay unknown. Falls back to the environment variable FEATHERLESS_API_KEY, which the public Actor does not set.

## `openaiApiKey` (type: `string`):

Optional, your own key. Used for the fallback model (llm.fallbackModel), tried once when Qwen has no valid answer. Falls back to the environment variable OPENAI_API_KEY, which the public Actor does not set.

## `includeUnchanged` (type: `boolean`):

Push flats that did not change since the last run to the dataset. With this on, unchanged flats are also written to Notion again (idempotent by Property ID; Status is never overwritten).

## `skipExtraction` (type: `boolean`):

Debug only. Skips the LLM extraction; costs and requirements then run on unknown fields.

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

Not used yet: the Actor makes direct requests to the portals, with a delay between requests to each portal.

## Actor input object example

```json
{
  "mode": "search",
  "profile": {
    "id": "praha-2kk-30k",
    "version": 1,
    "filters": {
      "offer_type": "rent",
      "property_type": "flat",
      "locations": [
        {
          "city": "Praha",
          "citypart": "Vinohrady"
        }
      ],
      "dispositions": [
        "2+kk",
        "2+1"
      ],
      "max_rent": 30000,
      "min_area_m2": 45,
      "sources": [
        "sreality",
        "bezrealitky",
        "idnes"
      ],
      "max_listings": 5
    },
    "household": {
      "occupants": 1
    },
    "requirements": {
      "max_total_monthly": 32000,
      "max_upfront": null,
      "elevator": null,
      "lease_types": [
        "najem"
      ],
      "move_in_by": null,
      "pets_allowed": null
    }
  },
  "includeUnchanged": false,
  "skipExtraction": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `flats` (type: `string`):

One item per flat found in this run: rent, total monthly cost, move-in cost, match verdict, evidence, unknowns and the listing on each portal.

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

RunSummary: per-source status and counts, flats by match and change, extraction and Notion counts.

# 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 = {
    "profile": {
        "id": "praha-2kk-30k",
        "version": 1,
        "filters": {
            "offer_type": "rent",
            "property_type": "flat",
            "locations": [
                {
                    "city": "Praha",
                    "citypart": "Vinohrady"
                }
            ],
            "dispositions": [
                "2+kk",
                "2+1"
            ],
            "max_rent": 30000,
            "min_area_m2": 45,
            "sources": [
                "sreality",
                "bezrealitky",
                "idnes"
            ],
            "max_listings": 5
        },
        "household": {
            "occupants": 1
        },
        "requirements": {
            "max_total_monthly": 32000,
            "max_upfront": null,
            "elevator": null,
            "lease_types": [
                "najem"
            ],
            "move_in_by": null,
            "pets_allowed": null
        }
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("vladb/prague-flat-rentals").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 = { "profile": {
        "id": "praha-2kk-30k",
        "version": 1,
        "filters": {
            "offer_type": "rent",
            "property_type": "flat",
            "locations": [{
                    "city": "Praha",
                    "citypart": "Vinohrady",
                }],
            "dispositions": [
                "2+kk",
                "2+1",
            ],
            "max_rent": 30000,
            "min_area_m2": 45,
            "sources": [
                "sreality",
                "bezrealitky",
                "idnes",
            ],
            "max_listings": 5,
        },
        "household": { "occupants": 1 },
        "requirements": {
            "max_total_monthly": 32000,
            "max_upfront": None,
            "elevator": None,
            "lease_types": ["najem"],
            "move_in_by": None,
            "pets_allowed": None,
        },
    } }

# Run the Actor and wait for it to finish
run = client.actor("vladb/prague-flat-rentals").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 '{
  "profile": {
    "id": "praha-2kk-30k",
    "version": 1,
    "filters": {
      "offer_type": "rent",
      "property_type": "flat",
      "locations": [
        {
          "city": "Praha",
          "citypart": "Vinohrady"
        }
      ],
      "dispositions": [
        "2+kk",
        "2+1"
      ],
      "max_rent": 30000,
      "min_area_m2": 45,
      "sources": [
        "sreality",
        "bezrealitky",
        "idnes"
      ],
      "max_listings": 5
    },
    "household": {
      "occupants": 1
    },
    "requirements": {
      "max_total_monthly": 32000,
      "max_upfront": null,
      "elevator": null,
      "lease_types": [
        "najem"
      ],
      "move_in_by": null,
      "pets_allowed": null
    }
  }
}' |
apify call vladb/prague-flat-rentals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vladb/prague-flat-rentals"
        }
    }
}
```

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/ibntTkfVdFku9Pxay/builds/DR0MftheGGskivNfR/openapi.json
