{
  "openapi": "3.0.1",
  "info": {
    "title": "Sreality Czech Property Search & Listing Extractor",
    "description": "Search Sreality.cz, the Czech Republic largest property portal, by deal type, location, price and area across flats, houses, land, commercial space and auctions, or pull full listing details and seller contact by URL.",
    "version": "1.1",
    "x-build-id": "V2norYxFwx92OWrkG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~sreality-czech-property-search-and-listing/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-sreality-czech-property-search-and-listing",
        "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/xyrelith-data~sreality-czech-property-search-and-listing/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-sreality-czech-property-search-and-listing",
        "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/xyrelith-data~sreality-czech-property-search-and-listing/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-sreality-czech-property-search-and-listing",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byUrls"
            ],
            "type": "string",
            "description": "Search listings by filters, or scrape search URLs, detail URLs, and listing IDs you already have.",
            "default": "search"
          },
          "dealType": {
            "title": "Deal type (mode=search)",
            "enum": [
              "sale",
              "rent",
              "auction",
              "shares"
            ],
            "type": "string",
            "description": "Sale, rent, auction, or fractional-ownership-share listings.",
            "default": "sale"
          },
          "category": {
            "title": "Property category (mode=search)",
            "enum": [
              "flat",
              "house",
              "land",
              "commercial",
              "other"
            ],
            "type": "string",
            "description": "Type of property to search.",
            "default": "flat"
          },
          "locationQuery": {
            "title": "Location (city, district or region)",
            "type": "string",
            "description": "Free-text Czech place name to narrow results, e.g. `Praha`, `Brno`, `Praha 9`, `Jihomoravský kraj`. Takes priority over `region` if both are set. Leave empty (and `region` unset) to search nationwide."
          },
          "region": {
            "title": "Region / kraj (mode=search, fallback when locationQuery is empty)",
            "enum": [
              "praha",
              "jihocesky",
              "jihomoravsky",
              "karlovarsky",
              "vysocina",
              "kralovehradecky",
              "liberecky",
              "moravskoslezsky",
              "olomoucky",
              "pardubicky",
              "plzensky",
              "stredocesky",
              "ustecky",
              "zlinsky"
            ],
            "type": "string",
            "description": "Restrict results to one of the 14 Czech administrative regions. Ignored if `locationQuery` is set. Leave both empty to search nationwide."
          },
          "roomCount": {
            "title": "Room layout / dispozice (mode=search, category=flat)",
            "enum": [
              "1kk",
              "1plus1",
              "2kk",
              "2plus1",
              "3kk",
              "3plus1",
              "4kk",
              "4plus1",
              "5kk",
              "5plus1",
              "sixPlus",
              "atypical"
            ],
            "type": "string",
            "description": "Only keep flat listings with this exact room layout, e.g. `2+kk`. Only applies to `category=flat`; ignored for other categories."
          },
          "priceMin": {
            "title": "Min price (CZK)",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "integer",
            "description": "Minimum total price in Czech korunas."
          },
          "priceMax": {
            "title": "Max price (CZK)",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "integer",
            "description": "Maximum total price in Czech korunas."
          },
          "areaMin": {
            "title": "Min usable area (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Minimum usable floor area in square meters."
          },
          "areaMax": {
            "title": "Max usable area (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum usable floor area in square meters."
          },
          "keyword": {
            "title": "Keyword filter",
            "type": "string",
            "description": "Only keep listings whose title/city/district contains this text (case-insensitive)."
          },
          "buildingCondition": {
            "title": "Building condition / stav (mode=search)",
            "enum": [
              "veryGood",
              "good",
              "bad",
              "underConstruction",
              "project",
              "newBuild",
              "forDemolition",
              "beforeReconstruction",
              "afterReconstruction",
              "underReconstruction"
            ],
            "type": "string",
            "description": "Restrict results to a single building condition, applied server-side by sreality.cz."
          },
          "ownership": {
            "title": "Ownership type / vlastnictví (mode=search)",
            "enum": [
              "private",
              "cooperative",
              "municipal"
            ],
            "type": "string",
            "description": "Restrict results to a single ownership type, applied server-side by sreality.cz."
          },
          "amenities": {
            "title": "Amenities (mode=search, category=flat)",
            "type": "array",
            "description": "Apply sreality.cz's own amenity filter server-side. Use `includeDetails` to inspect the listing's individual amenity flags; the portal's filter classification can be broader (e.g. a shared loggia can satisfy `balcony`). Verified against sreality's `category=flat` filter chips; may not affect other categories.",
            "items": {
              "type": "string",
              "enum": [
                "elevator",
                "balcony",
                "terrace",
                "loggia",
                "cellar",
                "garage",
                "parking",
                "barrierFree",
                "garden"
              ],
              "enumTitles": [
                "Elevator (výtah)",
                "Balcony (balkón)",
                "Terrace (terasa)",
                "Loggia (lodžie)",
                "Cellar (sklep)",
                "Garage (garáž)",
                "Parking (parkování)",
                "Barrier-free (bezbariérový)",
                "Garden (zahrada)"
              ]
            },
            "default": []
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of listings to scrape. With `includeDetails` enabled, one extra detail request is made per listing.",
            "default": 30
          },
          "sort": {
            "title": "Sort results by (mode=search)",
            "enum": [
              "newest",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Order of search-mode results. Applied server-side by sreality.cz; a pasted search URL keeps its own sort in `byUrls` mode.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Add full listing details",
            "type": "boolean",
            "description": "Fetch each listing's detail page to add description, seller contact, building specs, energy rating and more. Costs one extra request per listing, so keep `maxItems` small when enabled.",
            "default": false
          },
          "urls": {
            "title": "Search URLs, listing URLs or IDs (mode=byUrls)",
            "type": "array",
            "description": "Paste any mix of sreality.cz search URLs (Czech `/hledani/...` or English `/en/search/...`), listing-detail URLs, or bare numeric listing IDs. Each search URL is paginated automatically.",
            "default": [],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}