{
  "openapi": "3.0.1",
  "info": {
    "title": "Bezrealitky.cz Property Listings Scraper",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "Y3Pwf5oShKzhLw8gX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stone_jadex~bezrealitky-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stone_jadex-bezrealitky-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/stone_jadex~bezrealitky-scraper/runs": {
      "post": {
        "operationId": "runs-sync-stone_jadex-bezrealitky-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/stone_jadex~bezrealitky-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-stone_jadex-bezrealitky-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "offerType": {
            "title": "Offer type",
            "enum": [
              "any",
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Keep only sale or rent listings. Matched on the listing URL from the sitemap.",
            "default": "any"
          },
          "estateType": {
            "title": "Property type",
            "enum": [
              "any",
              "flat",
              "house",
              "land",
              "commercial",
              "garage",
              "recreational"
            ],
            "type": "string",
            "description": "Keep only one property type (flat = byt, house = dům, land = pozemek, commercial = nebytový prostor, garage, recreational = rekreační objekt).",
            "default": "any"
          },
          "location": {
            "title": "Town (URL slug)",
            "type": "string",
            "description": "Optional town as it appears at the end of listing URLs, e.g. praha, brno, ostrava, plzen. Diacritics are removed automatically."
          },
          "country": {
            "title": "Country",
            "enum": [
              "any",
              "CZ",
              "DE",
              "AT"
            ],
            "type": "string",
            "description": "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).",
            "default": "any"
          },
          "listingUrls": {
            "title": "Listing URLs (optional)",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "includeInactive": {
            "title": "Include inactive listings",
            "type": "boolean",
            "description": "The sitemap also lists recently closed adverts. By default they are skipped and not charged. Turn on to get them too (active=false).",
            "default": false
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "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": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "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": {
            "title": "Price filter currency",
            "enum": [
              "CZK",
              "EUR"
            ],
            "type": "string",
            "description": "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.",
            "default": "CZK"
          },
          "minSurface": {
            "title": "Min floor area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only listings with usable area ≥ this. Non-matching listings are not charged."
          },
          "maxSurface": {
            "title": "Max floor area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only listings with usable area ≤ this. Non-matching listings are not charged."
          },
          "dispositions": {
            "title": "Layouts",
            "uniqueItems": true,
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string",
              "enum": [
                "1+kk",
                "1+1",
                "2+kk",
                "2+1",
                "3+kk",
                "3+1",
                "4+kk",
                "4+1",
                "5+kk",
                "5+1",
                "6+",
                "garsoniera",
                "atypicky"
              ],
              "enumTitles": [
                "1+kk",
                "1+1",
                "2+kk",
                "2+1",
                "3+kk",
                "3+1",
                "4+kk",
                "4+1",
                "5+kk",
                "5+1",
                "6+ (6+kk, 6+1, 7+1, ...)",
                "Garsoniéra (studio)",
                "Atypický / ostatní (OSTATNI)"
              ]
            }
          },
          "maxFilteredRatio": {
            "title": "Max filtered-out per delivered listing",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "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.",
            "default": 10
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many charged listings.",
            "default": 100
          },
          "maxAgeDays": {
            "title": "Max listing age (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "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.",
            "default": 30
          },
          "maxSitemaps": {
            "title": "Max sitemap files",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many sitemap_detail_N.xml files (about 5,000 URLs each) to read.",
            "default": 5
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Parallel detail-page requests. Kept low to be polite.",
            "default": 3
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum pause between requests. A robots.txt Crawl-delay overrides it.",
            "default": 300
          },
          "maxRunSeconds": {
            "title": "Max run time (s)",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "Stop cleanly before this many seconds, write OUTPUT and one run-notice row.",
            "default": 3000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "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.",
            "default": {
              "useApifyProxy": false
            }
          },
          "useProxyFallback": {
            "title": "Use proxy only as fallback",
            "type": "boolean",
            "description": "Start without proxy and switch to the configured proxy only after 403/429 responses.",
            "default": true
          },
          "maxProxyMb": {
            "title": "Max proxy traffic (MB)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "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.",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}