{
  "openapi": "3.0.1",
  "info": {
    "title": "Sreality scraper",
    "description": "Fast and efficient sreality.cz actor. The script get all offers (according to the selected input). Reworked and updated to new version",
    "version": "0.0",
    "x-build-id": "aq81Zxk24UqlpGyZj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bebich~sreality-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bebich-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/bebich~sreality-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bebich-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/bebich~sreality-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bebich-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": {
          "AREA": {
            "title": "Areas (optional)",
            "type": "array",
            "description": "Sreality area slugs to scrape. Leave empty to scrape all supported areas.",
            "items": {
              "type": "string",
              "enum": [
                "praha",
                "stredocesky-kraj",
                "jihocesky-kraj",
                "jihomoravsky-kraj",
                "karlovarsky-kraj",
                "kralovehradecky-kraj",
                "liberecky-kraj",
                "moravskoslezsky-kraj",
                "olomoucky-kraj",
                "pardubicky-kraj",
                "plzensky-kraj",
                "ustecky-kraj",
                "vysocina-kraj",
                "zlinsky-kraj"
              ]
            }
          },
          "CATEGORIES": {
            "title": "Categories (optional)",
            "type": "array",
            "description": "Listing categories. English and Czech Sreality slugs are accepted. Leave empty to include all categories.",
            "items": {
              "type": "string",
              "enum": [
                "to-rent",
                "for-sale",
                "auction",
                "shares"
              ]
            }
          },
          "SUBCATEGORIES": {
            "title": "Property categories (optional)",
            "type": "array",
            "description": "Main property categories. English and Czech Sreality slugs are accepted. Leave empty to include all property categories.",
            "items": {
              "type": "string",
              "enum": [
                "apartments",
                "houses",
                "commercial-properties",
                "lands",
                "other-real-estates"
              ]
            }
          },
          "PROPERTY_TYPES": {
            "title": "Property types (optional)",
            "type": "array",
            "description": "Detailed property type slugs, such as apartment layouts, house types, land types, and commercial property types. English and Czech Sreality slugs are accepted. Leave empty to include all supported property types for the selected categories.",
            "items": {
              "type": "string",
              "enum": [
                "1+1",
                "1+kt",
                "2+1",
                "2+kt",
                "3+1",
                "3+kt",
                "4+1",
                "4+kt",
                "5+1",
                "5+kt",
                "6-and-more",
                "apartment-buildings",
                "apartments",
                "attics",
                "pudni-prostory",
                "building-plots",
                "commercial-parcels",
                "cottages",
                "chalupy",
                "family-houses",
                "farm-buildings",
                "farm-lands",
                "farms",
                "flatshare",
                "forests",
                "garages",
                "gardens",
                "historical-properties",
                "hotels-accommodation-businesses",
                "huts",
                "meadows",
                "mobile-homes",
                "multi-family-houses",
                "office-spaces",
                "other-commercial-buildings",
                "other-lands",
                "other-properties",
                "parking-places",
                "ponds",
                "production-halls",
                "projects",
                "restaurants",
                "retail-spaces",
                "surgeries",
                "unusual",
                "villas",
                "vineyards",
                "virtual-offices",
                "warehouses",
                "wine-cellars"
              ]
            }
          },
          "GET_DETAILS": {
            "title": "Fetch listing details (optional)",
            "type": "boolean",
            "description": "Fetch each listing detail JSON and append fields such as description, premise, seller, videos, rus, isExclusively, and params.",
            "default": false
          },
          "LANGUAGE_EN": {
            "title": "Use English URLs",
            "type": "boolean",
            "description": "When true, request English Sreality search pages and output English detail URLs. When false, request Czech pages and output Czech detail URLs.",
            "default": true
          },
          "IGNORE": {
            "title": "Ignored output fields",
            "type": "array",
            "description": "Dot-separated output field paths to remove from each saved dataset item.",
            "items": {
              "type": "string"
            }
          },
          "TELEGRAM_BOT_TOKEN": {
            "title": "Telegram bot token (optional)",
            "type": "string",
            "description": "Optional Telegram bot token. When provided with TELEGRAM_CHAT_ID, the actor sends a scrape completion message."
          },
          "TELEGRAM_CHAT_ID": {
            "title": "Telegram chat ID (optional)",
            "type": "string",
            "description": "Optional Telegram chat ID. When provided with TELEGRAM_BOT_TOKEN, the actor sends a scrape completion message."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}