# Bezrealitky.cz Property Listings Scraper (`stone_jadex/bezrealitky-scraper`) Actor

Public Bezrealitky.cz owner-direct listings (sale & rent): price, fees, deposit, m², layout, address, GPS, condition, energy class, amenities, photos, description. Discovered via the official sitemap. $1.00 per 1,000 listings, no start fee. Respects robots.txt.

- **URL**: https://apify.com/stone_jadex/bezrealitky-scraper.md
- **Developed by:** [Stone Jade](https://apify.com/stone_jadex) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## Bezrealitky.cz Property Listings Scraper

Extract structured, owner-direct real estate listings from **Bezrealitky.cz** (and forwarded Czech/German/Austrian partner feeds) directly into JSON, CSV, Excel, or API pipelines. Discover active or recently closed properties via the official Bezrealitky sitemap—or supply direct listing URLs—and collect prices, currency, utility/service charges, security deposits, usable & land floor area, layouts (`disposition`), full addresses, GPS coordinates, building condition, energy class (`penb`), amenities, photo URLs, and full seller descriptions—with **zero run-start fees** and lightweight 256 MB HTTP execution.

***

### Overview & Key Features

**Bezrealitky.cz Property Listings Scraper** discovers property detail pages (`/nemovitosti-byty-domy/{id}-...`) through Bezrealitky's official sitemap (`/sitemap/sitemap.xml` → `sitemap_detail_N.xml`) or directly from `listingUrls`, then extracts the complete structured Next.js `__NEXT_DATA__` (`origAdvert`) and JSON-LD payloads from every matching property page.

Because Bezrealitky's search pages (`/vyhledat*`, `/search*`) are disallowed in `robots.txt`, this Actor avoids search-result scraping entirely. Instead, it pre-filters candidates directly from sitemap URL slugs, sitemap image captions, and `image:geo_location` metadata before fetching any page, then applies exact currency-aware price, floor area, layout, and country filters locally before charging or pushing a single row.

#### Key Capabilities

- **Flat, predictable Pay-Per-Event pricing**: Every delivered listing costs **$0.001** (**$1.00** per 1,000 listings on the Free tier, with 5%–15% Apify Store subscription discounts for Bronze through Diamond), with **$0.00** run-start fee. Filtered-out, pre-filtered, inactive, duplicate, `404`/`410` delisted, and `run-notice` records are **never charged**.
- **Sitemap pre-filtering before HTTP requests**: Filters by `offerType` (`sale` / `rent`), `estateType` (`flat`, `house`, `land`, `commercial`, `garage`, `recreational`), `location` town slug, flat layout/area captions, `maxAgeDays` recency (`lastmod` sorted newest-first), and obvious German/partner sitemap feeds (`country: "CZ"`) *before* requesting the listing page—saving time, bandwidth, and proxy traffic.
- **Currency-aware & partner-aware filtering**: Handles CZK Czech owner-direct listings alongside EUR partner-feed listings (`sourceType: "OHNEMAKLER"` in Germany and Austria, plus `sourceType: "FLATIO"` forwarded rentals with `partnerLinks` and `roommate` flags). Enforces `priceCurrency` (`CZK` or `EUR`) and distinguishes zero-stored "price on request" listings (`price: null`, `priceUnlisted: true`).
- **Built-in runaway filter protection (`maxFilteredRatio`)**: Narrow price/surface/layout filters can discard many fetched pages before finding matches. When dropped rows exceed `max(delivered × maxFilteredRatio, 200)`, the Actor halts cleanly with `stopReason: "filter-ratio"` and appends an uncharged `run-notice` row.
- **Two-layer `robots.txt` & account protection**: Fetches `robots.txt` at startup, honors `Crawl-delay`, warns and increments `OUTPUT.robotsDisallowedHits` on any Disallow match (including redirect hops), and **hard-refuses** private account/login URLs (`/moje-bezrealitky/`, `callbackUrl=`) as well as `/vyhledat` / `/search` input seeds.

#### Common Use Cases

- **Prague & Czech rental market intelligence**: Compare monthly asking rent (`price`), `serviceCharges`, `utilityCharges`, `deposit`, `surface`, `disposition`, and `rentEstimateCzk` across Prague, Brno, Ostrava, and regional cities.
- **Direct-to-owner acquisition & investment sourcing**: Separate ordinary owner listings (`sourceType: null`) from Bezrealitky-managed (`BZR_COMFORT`) or partner-forwarded (`FLATIO`, `OHNEMAKLER`) inventory across CZ, DE, and AT.
- **Geospatial & building quality modeling**: Join `lat`, `lng`, `regionPath`, `zip`, `condition`, `construction`, `equipped`, `penb`, `heating`, `floor`, `totalFloors`, and annex areas (`balconySurface`, `terraceSurface`, `loggiaSurface`, `cellarSurface`).
- **Automated watchlist pipelines**: Schedule daily runs using `maxAgeDays: 1` or `maxAgeDays: 7` (newest `lastmod` fetched first) to capture freshly updated listings via Apify Webhooks or SDK.

***

### Input Configuration

All input fields are optional. Running with `{}` discovers the newest listings across the top 5 Bezrealitky sitemap files (`maxAgeDays: 30`) up to `maxItems: 100`.

| Parameter | Type | Default | Constraints | Description |
| --- | --- | --- | --- | --- |
| `offerType` | `string` | `"any"` | `"any"`, `"sale"`, `"rent"` | Keep only sale (`prodej`) or rent (`pronajem`) listings, pre-filtered from the sitemap URL slug. |
| `estateType` | `string` | `"any"` | `"any"`, `"flat"`, `"house"`, `"land"`, `"commercial"`, `"garage"`, `"recreational"` | Keep only one property type, pre-filtered from the sitemap URL slug. |
| `location` | `string` | `null` | Town URL slug | Optional town slug matching the end of listing URLs (e.g. `"praha"`, `"brno"`, `"ostrava"`, `"plzen"`). Diacritics are stripped automatically. |
| `country` | `string` | `"any"` | `"any"`, `"CZ"`, `"DE"`, `"AT"` | Filter by property country (`CZ`, `DE`, `AT`). Sitemap pre-filtering drops partner-feed (`OHNEMAKLER`) entries when `"CZ"`, while `"DE"` / `"AT"` are verified on the listing page `country` field. |
| `listingUrls` | `array<string>` | `[]` | Public `/nemovitosti-byty-domy/{id}-...` URLs | Direct listing detail URLs to scrape, bypassing sitemap discovery. Search URLs (`/vyhledat`, `/search`) and account/login URLs are rejected. |
| `includeInactive` | `boolean` | `false` | `true` / `false` | Include recently closed/inactive adverts (`active: false`) from the sitemap. Skipped and uncharged when `false`. |
| `minPrice` | `integer` | `null` | `>= 0` | Minimum `price` in `priceCurrency` (default `CZK`; monthly rent for rentals). Unlisted prices and other currencies are excluded and uncharged. |
| `maxPrice` | `integer` | `null` | `>= 0` | Maximum `price` in `priceCurrency` (default `CZK`). Listings without a positive price (`priceUnlisted: true`) or in another currency are excluded and uncharged. |
| `priceCurrency` | `string` | `"CZK"` | `"CZK"`, `"EUR"` | Currency used for `minPrice` / `maxPrice` filtering. Non-matching currency rows are dropped when a price bound is set. |
| `minSurface` | `integer` | `null` | `>= 0` | Minimum usable floor area (`surface`) in m². Pre-checked from flat sitemap captions with 1 m² tolerance, then verified on the detail page. |
| `maxSurface` | `integer` | `null` | `>= 0` | Maximum usable floor area (`surface`) in m². Non-matching rows are uncharged. |
| `dispositions` | `array<string>` | `[]` | `"1+kk"`…`"5+1"`, `"6+"`, `"garsoniera"`, `"atypicky"` | Multi-select layout filter (`"6+"` matches `6+kk`, `6+1`, `7+1`, etc.; `"garsoniera"` matches `GARSONIERA`; `"atypicky"` matches `OSTATNI`). Empty array keeps all layouts. |
| `maxFilteredRatio` | `integer` | `10` | Min `0`, Max `1000` | Stops narrow-filter runs with `stopReason: "filter-ratio"` if locally filtered-out rows exceed `max(delivered × maxFilteredRatio, 200)`. Set `0` to disable. |
| `maxItems` | `integer` | `100` | Min `1`, Max `100000` | Maximum number of charged listings to push across the run before stopping cleanly. |
| `maxAgeDays` | `integer` | `30` | Min `0`, Max `3650` | Only fetch sitemap entries whose `lastmod` is within this many days (`0` = no age limit). Sorted newest-first within each sitemap file. |
| `maxSitemaps` | `integer` | `5` | Min `1`, Max `50` | Maximum number of `sitemap_detail_N.xml` files (~5,000 URLs each) to inspect. |
| `maxConcurrency` | `integer` | `3` | Min `1`, Max `5` | Number of parallel detail-page requests in flight. |
| `requestDelayMs` | `integer` | `300` | Min `0`, Max `10000` | Minimum pause in milliseconds between request starts. Automatically raised if `robots.txt` declares a higher `Crawl-delay`. |
| `maxRunSeconds` | `integer` | `3000` | Min `30`, Max `86400` | Graceful runtime cap in seconds. Writes `OUTPUT` and appends an uncharged `run-notice` before reaching platform timeout. |
| `proxyConfiguration` | `object` | `{ "useApifyProxy": false }` | Apify Proxy config | Direct connection by default. Optional fallback on `403`/`429` blocks (defaults to Apify datacenter proxy; `RESIDENTIAL` logs a cost warning and obeys `maxProxyMb`). |
| `useProxyFallback` | `boolean` | `true` | `true` / `false` | Stay on direct connection initially and switch to the configured proxy only after repeated `403`/`429` responses. |
| `maxProxyMb` | `integer` | `50` | Min `1`, Max `100000` | Proxy traffic budget in MB. If total proxied response bytes exceed this limit, proxy usage stops and the run ends with `stopReason: "proxy-budget"`. |

#### Example 1: Prague Czech-Only Flat Rentals (`country: "CZ"` + Filter Guard)

Collect up to 50 recent `2+kk` and `2+1` rental apartments in Prague (`praha`) under 35,000 CZK per month while excluding German/Austrian partner feeds and guarding against excessive filtering via `maxFilteredRatio`:

```json
{
  "offerType": "rent",
  "estateType": "flat",
  "location": "praha",
  "country": "CZ",
  "maxPrice": 35000,
  "priceCurrency": "CZK",
  "minSurface": 40,
  "dispositions": ["2+kk", "2+1"],
  "maxFilteredRatio": 10,
  "maxItems": 50,
  "maxAgeDays": 14,
  "maxSitemaps": 5,
  "maxConcurrency": 3,
  "requestDelayMs": 300,
  "maxRunSeconds": 3000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

#### Example 2: Austrian Partner Feed (`country: "AT"`) & Direct Listing URLs

Target Austrian partner-feed listings (`country: "AT"`) with EUR price filtering, or fetch specific detail URLs directly:

```json
{
  "offerType": "any",
  "estateType": "any",
  "country": "AT",
  "minPrice": 500,
  "maxPrice": 3000,
  "priceCurrency": "EUR",
  "maxItems": 40,
  "maxAgeDays": 30,
  "maxSitemaps": 5,
  "maxFilteredRatio": 15,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

***

### Output Data & Dataset Schema

#### Preview Table

The table below shows sample rows based on the Actor's `2026-10-26` detail fixtures (`1082198`, `839582`, `1081945`) alongside illustrative formatting. Real values vary depending on what each advertiser publishes.

| Listing ID | Title | Offer | Country | Price | Currency | Area (m²) | Layout | Source Type |
| --- | --- | --- | --- | ---: | --- | ---: | --- | --- |
| `1082198` | Pronájem bytu 2+1 • 75 m² • Za Papírnou • Praha - Holešovice • bez RK | `PRONAJEM` | `CZ` | `27,500` | `CZK` | `75` | `2+1` | `null` |
| `839582` | Pokoj 15 m² v bytě 3+1 • Pavlov (Flatio partner) | `PRONAJEM` | `CZ` | `14,500` | `CZK` | `15` | `3+1` | `FLATIO` |
| `1081945` | Büro zur Miete • Moltkestraße • Gütersloh | `PRONAJEM` | `DE` | `null` (`priceUnlisted: true`) | `EUR` | `180` | `null` | `OHNEMAKLER` |

#### Illustrative JSON Output Example

The JSON record below matches `.actor/dataset_schema.json` using the `1082198` Prague owner-direct rental fixture:

```json
{
  "recordType": "listing",
  "listingId": "1082198",
  "url": "https://www.bezrealitky.cz/nemovitosti-byty-domy/1082198-nabidka-pronajem-bytu-za-papirnou-praha",
  "title": "Pronájem bytu 2+1 • 75 m² • Za Papírnou • Praha - Holešovice • bez RK",
  "offerType": "PRONAJEM",
  "estateType": "BYT",
  "sourceType": null,
  "externalId": null,
  "partnerLinks": null,
  "partnerUrl": null,
  "roommate": false,
  "disposition": "2+1",
  "active": true,
  "reserved": false,
  "price": 27500,
  "priceUnlisted": false,
  "originalPrice": 27500,
  "isDiscounted": false,
  "currency": "CZK",
  "country": "CZ",
  "charges": 4500,
  "serviceCharges": 2000,
  "utilityCharges": 2500,
  "deposit": 27500,
  "fee": 0,
  "surface": 75,
  "surfaceLand": null,
  "address": "Za Papírnou, Praha - Holešovice",
  "street": "Za Papírnou",
  "city": "Praha",
  "zip": "170 00",
  "regionPath": [
    "Praha",
    "Praha-Holešovice"
  ],
  "lat": 50.1070653,
  "lng": 14.4386611,
  "condition": "VERY_GOOD",
  "ownership": null,
  "construction": "BRICK",
  "equipped": "CASTECNE",
  "penb": null,
  "heating": null,
  "position": null,
  "landType": null,
  "floor": 1,
  "totalFloors": 1,
  "balcony": false,
  "terrace": false,
  "loggia": false,
  "cellar": false,
  "balconySurface": null,
  "terraceSurface": null,
  "loggiaSurface": null,
  "cellarSurface": null,
  "lift": false,
  "parking": false,
  "garage": false,
  "barrierFree": false,
  "tags": [
    "Částečně vybaveno"
  ],
  "description": "Samostatný ateliér 2+1 se spacím patrem a sdílenou zahradou, Praha 7 – Holešovice...",
  "descriptionEnglish": null,
  "rentEstimate": null,
  "rentEstimateCzk": null,
  "mortgageRateLow": null,
  "mainImageUrl": "https://api.bezrealitky.cz/media/cache/record_main/data/images/advert/1082k/1082198/1792963482-otshfknkky-obra-cc-81zek-chatgpt-25-10-2026-22-18-18.png",
  "imageUrls": [
    "https://api.bezrealitky.cz/media/cache/record_main/data/images/advert/1082k/1082198/1792963482-otshfknkky-obra-cc-81zek-chatgpt-25-10-2026-22-18-18.png"
  ],
  "sellerType": "Přímý majitel",
  "datePosted": "2026-10-25T21:35:41.000Z",
  "availableFrom": "2026-10-24T22:00:00.000Z",
  "sitemapLastmod": "2026-10-25",
  "scrapedAt": "2026-11-23T00:00:00.000Z"
}
```

When a run ends early (`maxItems`, `max-charge-reached`, `run-time-limit`, `proxy-budget`, `filter-ratio`, `challenge`, `errors`) or matches zero listings (`no-matching-listings`), one uncharged notice row is appended:

```json
{
  "recordType": "run-notice",
  "truncatedAfter": 50,
  "reason": "maxItems",
  "charged": false
}
```

#### Full Dataset Field Reference

Every property declared in `.actor/dataset_schema.json` is documented below. Enum values marked `"UNDEFINED"` by the site are normalized to `null`.

| Field | Type | Description |
| --- | --- | --- |
| `recordType` | `string \| null` | `"listing"` for a property record, or `"run-notice"` for an uncharged end-of-run notice. |
| `listingId` | `string \| null` | Bezrealitky numeric advert ID from the detail page. |
| `url` | `string \| null` | Canonical public Bezrealitky.cz detail-page URL. |
| `title` | `string \| null` | Full listing page title as published by Bezrealitky. |
| `offerType` | `string \| null` | Offer type code (`"PRONAJEM"` for rent, `"PRODEJ"` for sale), or `null`. |
| `estateType` | `string \| null` | Estate type code (`"BYT"`, `"DUM"`, `"POZEMEK"`, `"GARAZ"`, `"NEBYTOVY_PROSTOR"`, etc.). |
| `sourceType` | `string \| null` | Advert origin code: `"FLATIO"`, `"OHNEMAKLER"`, `"BZR_COMFORT"`, `"MANUAL_BZR_SPRAVCE_PRONAJEM"`, or `null` for ordinary owner listings. |
| `externalId` | `string \| null` | Partner platform listing ID when `sourceType` is a partner feed (e.g. Flatio); `null` otherwise. |
| `partnerLinks` | `object \| null` | Map of partner-platform URLs by language code (`cs`, `sk`, `en`) when forwarded; `null` otherwise. |
| `partnerUrl` | `string \| null` | Preferred partner-platform URL (`cs`, then `en`, then first entry); `null` otherwise. |
| `roommate` | `boolean \| null` | Whether the advert offers a shared flat / room; `null` when unpublished. |
| `disposition` | `string \| null` | Layout code (`"1+kk"`, `"2+1"`, `"GARSONIERA"`, `"OSTATNI"`, etc.); `null` when absent. |
| `active` | `boolean \| null` | Whether the listing is currently active on Bezrealitky (`false` for closed ads). |
| `reserved` | `boolean \| null` | Whether the property is marked as reserved. |
| `price` | `integer \| null` | Asking sale price or monthly rent as an integer in `currency`; `null` when missing or zero (`priceUnlisted`). |
| `priceUnlisted` | `boolean \| null` | **inferred** flag: `true` when the site stores `price: 0` (price on request), `false` when a positive price is listed, `null` when the price field is missing. |
| `originalPrice` | `integer \| null` | Pre-discount price in `currency`, or `null` when absent. |
| `isDiscounted` | `boolean \| null` | Whether the source marks the advert as discounted. |
| `currency` | `string \| null` | Currency code shown with the listing price (`"CZK"`, `"EUR"`). |
| `country` | `string \| null` | Two-letter ISO country code from page structured data (`"CZ"`, `"DE"`, `"AT"`), or `null`. |
| `charges` | `integer \| null` | Total monthly charges in `currency`; `null` when not filled in. |
| `serviceCharges` | `integer \| null` | Service charges amount in `currency`; `null` when not filled in. |
| `utilityCharges` | `integer \| null` | Utility charges amount in `currency`; `null` when not filled in. |
| `deposit` | `integer \| null` | Security deposit (`kauce`) amount in `currency`; `null` when not filled in. |
| `fee` | `integer \| null` | Platform/agency fee in `currency` when published (`0` for zero fee); `null` when absent. |
| `surface` | `integer \| null` | Usable floor area in m² (rounded integer); `null` when absent. |
| `surfaceLand` | `integer \| null` | Land plot area in m² (`null` when not filled in; `0` only when explicitly `0` on the site). |
| `address` | `string \| null` | Full published address text; `null` when hidden by seller. |
| `street` | `string \| null` | Street name as published; `null` when hidden or blank. |
| `city` | `string \| null` | City or town name as published. |
| `zip` | `string \| null` | Postal code as published. |
| `regionPath` | `array<string> \| null` | Administrative region hierarchy from `regionTree` (broadest to narrowest). |
| `lat` | `number \| null` | GPS latitude in decimal degrees. |
| `lng` | `number \| null` | GPS longitude in decimal degrees. |
| `condition` | `string \| null` | Property condition code (e.g. `"VERY_GOOD"`, `"GOOD"`, `"NEW"`). |
| `ownership` | `string \| null` | Ownership type code (e.g. `"PERSONAL"`, `"COOPERATIVE"`). |
| `construction` | `string \| null` | Construction material code (e.g. `"BRICK"`, `"PANEL"`). |
| `equipped` | `string \| null` | Furnishing code (`"FURNISHED"`, `"CASTECNE"`, `"UNFURNISHED"`). |
| `penb` | `string \| null` | Energy performance certificate class (`"A"`–`"G"`). |
| `heating` | `string \| null` | Heating type code (e.g. `"GAS"`, `"CENTRAL"`). |
| `position` | `string \| null` | Building position code (e.g. `"DETACHED"`, `"CORNER"`, `"TERRACED"`). |
| `landType` | `string \| null` | Land plot classification (e.g. `"STAVEBNI"`). |
| `floor` | `integer \| null` | Floor number (`etage`); `null` when not filled in. |
| `totalFloors` | `integer \| null` | Total floors in building; `null` when not filled in. |
| `balcony` | `boolean \| null` | Balcony flag (`null` when not filled in, `false` when explicitly false). |
| `terrace` | `boolean \| null` | Terrace flag (`null` when not filled in, `false` when explicitly false). |
| `loggia` | `boolean \| null` | Loggia flag (`null` when not filled in, `false` when explicitly false). |
| `cellar` | `boolean \| null` | Cellar flag (`null` when not filled in, `false` when explicitly false). |
| `balconySurface` | `number \| null` | Balcony area in m²; `null` when not filled in or not positive. |
| `terraceSurface` | `number \| null` | Terrace area in m²; `null` when not filled in or not positive. |
| `loggiaSurface` | `number \| null` | Loggia area in m²; `null` when not filled in or not positive. |
| `cellarSurface` | `number \| null` | Cellar area in m²; `null` when not filled in or not positive. |
| `lift` | `boolean \| null` | Elevator flag (`null` when not filled in, `false` when explicitly false). |
| `parking` | `boolean \| null` | Parking flag (`null` when not filled in, `false` when explicitly false). |
| `garage` | `boolean \| null` | Garage flag (`null` when not filled in, `false` when explicitly false). |
| `barrierFree` | `boolean \| null` | Barrier-free access flag (`null` when not filled in, `false` when explicitly false). |
| `tags` | `array<string> \| null` | Listing tags attached by Bezrealitky (e.g. `["Částečně vybaveno"]`). |
| `description` | `string \| null` | Seller-written listing description kept verbatim, including any business contact details the seller published in text. |
| `descriptionEnglish` | `string \| null` | English description if published by the advertiser; `null` otherwise. |
| `rentEstimate` | `string \| null` | Formatted rent estimation banner text from Bezrealitky when shown. |
| `rentEstimateCzk` | `integer \| null` | Numeric monthly CZK rent parsed from `rentEstimate`. |
| `mortgageRateLow` | `number \| null` | Lowest mortgage interest rate shown in the listing's mortgage widget. |
| `mainImageUrl` | `string \| null` | Main property photo URL. |
| `imageUrls` | `array<string> \| null` | Array of all public property photo URLs. |
| `sellerType` | `string \| null` | Seller label from JSON-LD structured data (e.g. `"Přímý majitel"`, `"Person"`). |
| `datePosted` | `string \| null` | Listing publication timestamp (ISO 8601 UTC). |
| `availableFrom` | `string \| null` | Move-in / availability timestamp (ISO 8601 UTC). |
| `sitemapLastmod` | `string \| null` | Raw `lastmod` date from the sitemap entry (`null` for `listingUrls` runs). |
| `scrapedAt` | `string \| null` | Timestamp when the detail page was parsed (ISO 8601 UTC). |
| `truncatedAfter` | `integer \| null` | `run-notice` only: count of charged listings emitted before stop. |
| `reason` | `string \| null` | `run-notice` only: stop reason (`maxItems`, `filter-ratio`, `no-matching-listings`, `run-time-limit`, `proxy-budget`, `max-charge-reached`, `challenge`, `errors`). |
| `charged` | `boolean \| null` | `run-notice` only: always `false` (run-notice rows are never charged). |

#### Dataset Views & Key-Value Store Summary

- **Dataset Views**: Includes **Listings** (`overview` — key fields including URL, title, offer/estate type, disposition, price, currency, country, surface, address, sourceType, active, datePosted) and **Run notices** (`runNotices`).
- **Key-Value Store — `OUTPUT`**: Every run writes an `OUTPUT` JSON record with `sitemapsRead`, `candidates`, `pushed`, `prefilteredOut`, `filteredOut`, `inactiveSkipped`, `notFound`, `notFoundUrls`, `duplicatesSkipped`, `tooOldSkipped`, `robots`, `robotsDisallowedHits`, `proxyBytes`, `unavailableFields`, `errors`, `stopReason`, and `truncated`.

***

### Pricing & Apify Store Tier Discounts

This Actor uses **Pay-Per-Event (PPE)** billing in **USD** (live pricing verified `2026-11-23`) with **zero run-start fee** (`$0.00`). You pay only for valid property listings delivered to the dataset, with automatic **5% to 15% Apify Store subscription discounts** for Bronze through Diamond plans:

| Event | Description | Free | Bronze (5% off) | Silver (10% off) | Gold (15% off) | Platinum (15% off) | Diamond (15% off) |
| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: |
| `listing` *(primary)* | One public Bezrealitky.cz property listing read from its public detail page | `$0.001` (`$1.00`/1k) | `$0.00095` (`$0.95`/1k) | `$0.0009` (`$0.90`/1k) | `$0.00085` (`$0.85`/1k) | `$0.00085` (`$0.85`/1k) | `$0.00085` (`$0.85`/1k) |

#### Billing Guarantees

- **Charge-then-push accuracy**: The Actor charges the exact `listing` count first and pushes only charged rows—meaning a `maxChargeUsd` budget limit never over-pushes unbilled rows or over-charges.
- **Zero charge on non-results**: Pre-filtered sitemap URLs (`prefilteredOut`), locally filtered-out rows (`filteredOut`), inactive skips (`inactiveSkipped`), `404`/`410` delisted pages (`notFound`), duplicate `listingId`s, `run-notice` rows (`charged: false`), and failed zero-row runs incur **$0.00**.
- Check the live **Pricing** tab in Apify Console for any separately listed platform compute or storage usage.

***

### API & SDK Quickstart

Run **Bezrealitky.cz Property Listings Scraper** (`Stone_JadeX/bezrealitky-scraper`) programmatically with the official Apify API clients.

#### JavaScript (Node.js) — `ApifyClient`

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({
    token: process.env.APIFY_TOKEN,
});

const run = await client.actor('Stone_JadeX/bezrealitky-scraper').call({
    offerType: 'rent',
    estateType: 'flat',
    location: 'praha',
    country: 'CZ',
    maxPrice: 35000,
    priceCurrency: 'CZK',
    dispositions: ['2+kk', '2+1'],
    maxItems: 50,
    maxAgeDays: 30,
    maxFilteredRatio: 10,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
const listings = items.filter((row) => row.recordType !== 'run-notice');
console.log(`Collected ${listings.length} Czech listings`);
for (const item of listings.slice(0, 5)) {
    console.log(item.listingId, item.disposition, item.price, item.currency, item.surface, item.city);
}
```

#### Python — `ApifyClient`

```python
import os
from apify_client import ApifyClient

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

run = client.actor("Stone_JadeX/bezrealitky-scraper").call(run_input={
    "offerType": "rent",
    "estateType": "flat",
    "location": "praha",
    "country": "CZ",
    "maxPrice": 35000,
    "priceCurrency": "CZK",
    "dispositions": ["2+kk", "2+1"],
    "maxItems": 50,
    "maxAgeDays": 30,
    "maxFilteredRatio": 10,
})

items = [
    row for row in client.dataset(run["defaultDatasetId"]).iterate_items()
    if row.get("recordType") != "run-notice"
]
print(f"Collected {len(items)} Czech listings")
for item in items[:5]:
    print(item.get("listingId"), item.get("disposition"), item.get("price"), item.get("currency"), item.get("city"))
```

***

### FAQ, Compliance & Limitations

#### How does country & partner-feed filtering (`CZ`, `DE`, `AT`, `OHNEMAKLER`, `FLATIO`) work?

Bezrealitky's sitemap includes Czech owner-direct listings alongside forwarded feeds (`sourceType: "FLATIO"` for partner rentals and `sourceType: "OHNEMAKLER"` for German and Austrian partner properties, typically priced in `EUR`).

- **Czech-only (`"country": "CZ"`)**: Partner entries recognized from `ohnemakler` image URLs or German federal state names in `image:geo_location` are dropped *before* fetching their page (`prefilteredOut`). Approximately `0.22%` of German sitemap entries (for example listing `1067562` in Marburg) omit both `ohnemakler` image URLs and German state names in the sitemap, so they pass the pre-filter and are filtered locally after checking the page's `country` field without being charged. When a listing's page `country` is `null` (unavailable), it is still delivered under `"country": "CZ"` so valid adverts without JSON-LD country metadata are not lost.
- **Austria (`"country": "AT"`) & Germany (`"country": "DE"`)**: Partner entries such as Austrian listing `1080449` (Vomp, Tirol) only show `ohnemakler` image URLs in the sitemap ("not Czech", `NOT_CZ`) without an explicit country tag in the sitemap itself; therefore `"AT"` and `"DE"` are decided reliably on each listing page's `country` field rather than dropped prematurely at sitemap stage.

#### How are `priceUnlisted`, missing fields, and `null` flags handled?

- **`priceUnlisted` (inferred)**: When the site stores `price: 0` ("price on request", common on commercial `OHNEMAKLER` listings), the Actor outputs `"price": null` and `"priceUnlisted": true`. When a positive price exists, `priceUnlisted` is `false`; when the price field is missing or non-numeric on the page, both `price` and `priceUnlisted` are `null`. Any `minPrice`/`maxPrice` filter excludes unlisted prices and non-matching `priceCurrency` rows without charging.
- **Boolean flags & land area**: Amenity booleans (`balcony`, `terrace`, `loggia`, `cellar`, `lift`, `parking`, `garage`, `barrierFree`) output `null` when not filled in on the listing, and `false` only when explicitly `false` on the site. Likewise, `surfaceLand` is `null` when not filled in and `0` only when the site explicitly records `0`.
- **Enum normalization**: Placeholder `"UNDEFINED"` enum values from the site are converted to `null` across all fields.

#### How does the Actor handle `robots.txt`, login/account pages, and privacy?

- At startup, the Actor fetches `https://www.bezrealitky.cz/robots.txt`, honors `Crawl-delay`, warns and counts any `Disallow` match in `OUTPUT.robotsDisallowedHits` (including redirect targets), and continues cleanly even if `robots.txt` returns HTTP `5xx`.
- Private account and login paths (`/moje-bezrealitky/`, `callbackUrl=`) are **hard-refused** without ever making an HTTP request, and `/vyhledat` / `/search` URLs are rejected in `listingUrls`.
- Private seller phone numbers and emails behind Bezrealitky's login/contact wall are never accessed or scraped; public text written by the seller inside `description` is preserved verbatim. This is an independent tool and is not affiliated with Bezrealitky.

#### What limits run output or triggers early stops?

- **Recency & sitemap bounds**: Default settings read up to `maxSitemaps: 5` files and `maxAgeDays: 30` (sorted newest `lastmod` first). Set `maxAgeDays: 0` and increase `maxSitemaps` if you need older historical inventory.
- **Runtime & filter ratio**: Default `maxRunSeconds` is `3000` s (raised from an earlier 900 s baseline to accommodate narrow filters across multiple sitemaps). Narrow `minPrice`/`maxPrice`/`dispositions` runs stop cleanly with `stopReason: "filter-ratio"` if dropped rows exceed `max(delivered × maxFilteredRatio, 200)`.
- **Snapshots & delisted `404`s**: Recently deleted sitemap entries returning `404`/`410` are counted in `OUTPUT.notFound` and never billed or treated as run failures. Each run is a point-in-time snapshot rather than continuous live monitoring.

***

### Changelog

#### 0.1.1 — 2026-11-23

- Added explicit `prefill` defaults across primary fields (`offerType`, `estateType`, `country`, `includeInactive`, `priceCurrency`, `maxFilteredRatio`, `maxItems`, `maxAgeDays`, `maxSitemaps`, `maxConcurrency`, `requestDelayMs`, `maxRunSeconds`, `proxyConfiguration`, `useProxyFallback`, `maxProxyMb`) and organized `.actor/input_schema.json` into 4 `sectionCaption` groups.
- Upgraded `README.md` to full Store documentation with a 22-parameter input reference, 2 JSON examples, illustrative `1082198` JSON row matching `.actor/dataset_schema.json`, 59-field dataset reference table, live PPE + Bronze–Diamond tier discount table, JS & Python `ApifyClient` quickstarts, and complete CZ/DE/AT partner-feed & `priceUnlisted` documentation.
- Configured Store SEO metadata, categories (`REAL_ESTATE`, `LEAD_GENERATION`), primary billing event (`listing`), Apify Store subscription tier discounts, and public task `bezrealitky-prague-apartments-rent`.

#### 0.1.0 — 2026-10-26

- Initial Bezrealitky.cz sitemap-to-detail scraper with `$0.001` `listing` PPE billing, charge-then-push safety, slug/caption/country sitemap pre-filtering, `maxFilteredRatio` guard, `maxProxyMb` datacenter proxy fallback guard, and `robots.txt` compliance logging.

# Changelog

This Actor's version history is a separate document: https://apify.com/stone_jadex/bezrealitky-scraper/changelog.md

# Actor input Schema

## `offerType` (type: `string`):

Keep only sale or rent listings. Matched on the listing URL from the sitemap.

## `estateType` (type: `string`):

Keep only one property type (flat = byt, house = dům, land = pozemek, commercial = nebytový prostor, garage, recreational = rekreační objekt).

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

Optional town as it appears at the end of listing URLs, e.g. praha, brno, ostrava, plzen. Diacritics are removed automatically.

## `country` (type: `string`):

The sitemap also carries many German (and some Austrian) listings from a partner feed (sourceType OHNEMAKLER, prices in EUR), most of the commercial ones included. DE/AT are decided on the listing page (country field); the sitemap can only tell that a partner listing is not Czech. CZ = Czech listings only: German listings recognised from the sitemap (partner image files / German state in the image location) are skipped before their page is read and are not charged; the rest are checked on the listing page (country field).

## `listingUrls` (type: `array`):

Scrape these listing pages directly (https://www.bezrealitky.cz/nemovitosti-byty-domy/{id}-...). Skips the sitemap. Search URLs (/vyhledat, /search) are refused because robots.txt disallows them.

## `includeInactive` (type: `boolean`):

The sitemap also lists recently closed adverts. By default they are skipped and not charged. Turn on to get them too (active=false).

## `minPrice` (type: `integer`):

Keep only listings with price ≥ this, in Price filter currency (default CZK; monthly rent for rentals). Listings in another currency or without a price are skipped. Checked on each listing page; non-matching listings are not charged.

## `maxPrice` (type: `integer`):

Keep only listings with price ≤ this, in Price filter currency (default CZK). Listings without a price (priceUnlisted) or in another currency are skipped when a price filter is set. Non-matching listings are not charged.

## `priceCurrency` (type: `string`):

Currency of Min/Max price. When a price filter is set, listings in another currency and listings without a price (priceUnlisted) are skipped and not charged.

## `minSurface` (type: `integer`):

Keep only listings with usable area ≥ this. Non-matching listings are not charged.

## `maxSurface` (type: `integer`):

Keep only listings with usable area ≤ this. Non-matching listings are not charged.

## `dispositions` (type: `array`):

Keep only these layouts (multi-select). Matched against the listing's disposition field: 1+kk…5+1 as shown, 6+ = 6 or more rooms (6+kk, 6+1, 7+1…), Garsoniéra = GARSONIERA, Atypický = OSTATNI (listings without a standard layout). Empty = all. Non-matching listings are not charged.

## `maxFilteredRatio` (type: `integer`):

Guard for narrow price/area/layout filters (these are checked on each listing page, which takes time). When listings dropped by those filters exceed max(delivered listings × this value, 200), the run stops, writes one run-notice row (reason: filter-ratio) and sets OUTPUT.stopReason. Dropped listings are never charged. 0 = no limit.

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

Stop after this many charged listings.

## `maxAgeDays` (type: `integer`):

Only fetch listings whose sitemap lastmod is within this many days. Within each sitemap file the newest listings are fetched first. 0 = no age limit.

## `maxSitemaps` (type: `integer`):

How many sitemap_detail_N.xml files (about 5,000 URLs each) to read.

## `maxConcurrency` (type: `integer`):

Parallel detail-page requests. Kept low to be polite.

## `requestDelayMs` (type: `integer`):

Minimum pause between requests. A robots.txt Crawl-delay overrides it.

## `maxRunSeconds` (type: `integer`):

Stop cleanly before this many seconds, write OUTPUT and one run-notice row.

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

Optional. Not needed for normal runs. Used only as a fallback after 403/429. Default is Apify datacenter proxy (no group). Choosing RESIDENTIAL is allowed but logs a warning: it is billed per GB and much more expensive.

## `useProxyFallback` (type: `boolean`):

Start without proxy and switch to the configured proxy only after 403/429 responses.

## `maxProxyMb` (type: `integer`):

Proxy traffic budget. When total proxy response size exceeds this many MB, the actor stops using the proxy, writes one run-notice row (reason: proxy-budget) and ends the run.

## Actor input object example

```json
{
  "offerType": "any",
  "estateType": "any",
  "country": "any",
  "includeInactive": false,
  "priceCurrency": "CZK",
  "maxFilteredRatio": 10,
  "maxItems": 100,
  "maxAgeDays": 30,
  "maxSitemaps": 5,
  "maxConcurrency": 3,
  "requestDelayMs": 300,
  "maxRunSeconds": 3000,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "useProxyFallback": true,
  "maxProxyMb": 50
}
```

# Actor output Schema

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

Public property listings saved in the default dataset, plus the single uncharged run-notice record when the run stops early or finds no matching listings.

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

Crawl statistics, the normalized input, errors, robots and proxy counters, and the reason the run stopped, saved as the OUTPUT 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 = {
    "offerType": "any",
    "estateType": "any",
    "country": "any",
    "includeInactive": false,
    "priceCurrency": "CZK",
    "maxFilteredRatio": 10,
    "maxItems": 100,
    "maxAgeDays": 30,
    "maxSitemaps": 5,
    "maxConcurrency": 3,
    "requestDelayMs": 300,
    "maxRunSeconds": 3000,
    "proxyConfiguration": {
        "useApifyProxy": false
    },
    "useProxyFallback": true,
    "maxProxyMb": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("stone_jadex/bezrealitky-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 = {
    "offerType": "any",
    "estateType": "any",
    "country": "any",
    "includeInactive": False,
    "priceCurrency": "CZK",
    "maxFilteredRatio": 10,
    "maxItems": 100,
    "maxAgeDays": 30,
    "maxSitemaps": 5,
    "maxConcurrency": 3,
    "requestDelayMs": 300,
    "maxRunSeconds": 3000,
    "proxyConfiguration": { "useApifyProxy": False },
    "useProxyFallback": True,
    "maxProxyMb": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("stone_jadex/bezrealitky-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 '{
  "offerType": "any",
  "estateType": "any",
  "country": "any",
  "includeInactive": false,
  "priceCurrency": "CZK",
  "maxFilteredRatio": 10,
  "maxItems": 100,
  "maxAgeDays": 30,
  "maxSitemaps": 5,
  "maxConcurrency": 3,
  "requestDelayMs": 300,
  "maxRunSeconds": 3000,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "useProxyFallback": true,
  "maxProxyMb": 50
}' |
apify call stone_jadex/bezrealitky-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stone_jadex/bezrealitky-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/Gvh7xaVBI4TdPVcZc/builds/Y3Pwf5oShKzhLw8gX/openapi.json
