{
  "openapi": "3.0.1",
  "info": {
    "title": "Sreality Scraper",
    "description": "Scrape sreality.cz - the Czech Republic's largest real-estate portal. Search flats, houses, land, commercial space and auctions by deal type, location, price and area, or fetch full listing details (description, seller contact, building specs) by URL.",
    "version": "1.0",
    "x-build-id": "z5cJPIF6zOmHwYr7s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~sreality-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-sreality-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/crawlerbros~sreality-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-sreality-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/crawlerbros~sreality-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-sreality-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byUrls"
            ],
            "type": "string",
            "description": "Search listings by filters, or fetch full details for specific listing URLs.",
            "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": "Only keep listings with all of the selected amenities, applied server-side by sreality.cz. Verified against sreality's own `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": []
          },
          "detailUrls": {
            "title": "Listing URLs (mode=byUrls)",
            "type": "array",
            "description": "Full sreality.cz listing-detail URLs, e.g. `https://www.sreality.cz/detail/prodej/byt/2+1/praha-prosek-veltruska/1791086668`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of listings to scrape.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}