{
  "openapi": "3.0.1",
  "info": {
    "title": "Novostavby Byty Scraper ČR",
    "description": "Scrape new-build apartments in Czechia from Sreality.cz, Novostavby.com and developer websites into one normalized dataset: prices, price per m², availability, projects — deduplicated across sources.",
    "version": "0.1",
    "x-build-id": "Kogj6op5W2p2wdTWY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/huykenny~novostavby-byty-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-huykenny-novostavby-byty-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/huykenny~novostavby-byty-scraper/runs": {
      "post": {
        "operationId": "runs-sync-huykenny-novostavby-byty-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/huykenny~novostavby-byty-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-huykenny-novostavby-byty-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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which sites to collect from. Sreality and FINEP return individual apartments, Novostavby.com returns development projects.",
            "items": {
              "type": "string",
              "enum": [
                "sreality",
                "finep",
                "novostavby"
              ],
              "enumTitles": [
                "Sreality.cz — apartment listings",
                "FINEP — developer inventory",
                "Novostavby.com — project database"
              ]
            },
            "default": [
              "sreality",
              "finep",
              "novostavby"
            ]
          },
          "dealTypes": {
            "title": "Deal type",
            "type": "array",
            "description": "Sale is the default. Rent only affects Sreality — developer inventory is for sale only.",
            "items": {
              "type": "string",
              "enum": [
                "sale",
                "rent"
              ],
              "enumTitles": [
                "Sale",
                "Rent"
              ]
            },
            "default": [
              "sale"
            ]
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "How many apartments and projects to return in total. The budget is split evenly between the selected sources, so no source can starve the others. A source with a smaller offer (FINEP publishes about a hundred units at a time) simply returns everything it has.",
            "default": 1000
          },
          "includeDetails": {
            "title": "Open detail pages",
            "type": "boolean",
            "description": "Recommended. Sreality listing pages do not contain floor area, floor number, ownership or energy class — those only exist on the detail page. Turning this off makes runs cheaper and the data thinner.",
            "default": true
          },
          "region": {
            "title": "Region",
            "enum": [
              "Hlavní město Praha",
              "Středočeský kraj",
              "Jihočeský kraj",
              "Plzeňský kraj",
              "Karlovarský kraj",
              "Ústecký kraj",
              "Liberecký kraj",
              "Královéhradecký kraj",
              "Pardubický kraj",
              "Kraj Vysočina",
              "Jihomoravský kraj",
              "Olomoucký kraj",
              "Zlínský kraj",
              "Moravskoslezský kraj"
            ],
            "type": "string",
            "description": "Czech region (kraj). Sreality publishes a region for every listing; developer pages and project pages usually do not, so for Prague and other cities filter with Cities instead. Leave empty for the whole country."
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "For example: Praha, Brno, Kladno. This is the most reliable location filter across all three sources.",
            "items": {
              "type": "string"
            }
          },
          "districts": {
            "title": "Districts / city parts",
            "type": "array",
            "description": "For example: Praha 9, Praha 4, Kladno.",
            "items": {
              "type": "string"
            }
          },
          "dispositions": {
            "title": "Layouts",
            "type": "array",
            "description": "Czech apartment layouts, for example 1+kk, 2+kk, 3+1.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price (CZK)",
            "minimum": 0,
            "type": "integer",
            "description": "Listings without a price are kept — a missing value is not a failed filter."
          },
          "maxPrice": {
            "title": "Maximum price (CZK)",
            "minimum": 0,
            "type": "integer",
            "description": "Listings without a price are kept — a missing value is not a failed filter."
          },
          "minArea": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Floor area of the apartment itself, not including balcony or garden."
          },
          "maxArea": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Floor area of the apartment itself, not including balcony or garden."
          },
          "developers": {
            "title": "Developers",
            "type": "array",
            "description": "Matches on the developer name, for example FINEP or Skanska.",
            "items": {
              "type": "string"
            }
          },
          "onlyAvailable": {
            "title": "Only what is still for sale",
            "type": "boolean",
            "description": "Drops reserved and sold units, and limits Novostavby.com to projects currently in sale.",
            "default": false
          },
          "deduplicate": {
            "title": "Merge duplicates across sources",
            "type": "boolean",
            "description": "The same apartment can be listed by the developer and by a portal. Matched records are merged into one, keeping every source in `sources_found` and every price in `offers`.",
            "default": true
          },
          "trackHistory": {
            "title": "Track price and status history",
            "type": "boolean",
            "description": "Compares this run against previous runs and fills in first_seen, price_change_percent, status_changed and is_new. The history lives in a key-value store in your own account.",
            "default": false
          },
          "historyStoreName": {
            "title": "History store name",
            "type": "string",
            "description": "Named key-value store used for the history. Use different names to keep separate watchlists apart.",
            "default": "novostavby-history"
          },
          "includeRemoved": {
            "title": "Also return units that disappeared",
            "type": "boolean",
            "description": "Adds one row per unit that was in the history but is no longer offered, flagged with is_removed. These rows are billed like any other result.",
            "default": false
          },
          "includeProjectSummaries": {
            "title": "Add project summaries",
            "type": "boolean",
            "description": "Adds one project_summary row per project with unit counts, price range and price per m² statistics, computed from the units collected in this run. Billed like any other result.",
            "default": false
          },
          "startUrls": {
            "title": "Start URLs (override)",
            "type": "array",
            "description": "Custom entry points. The source is detected from the domain. Overrides the Sources setting.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxRequestsPerCrawl": {
            "title": "Maximum requests (override)",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on HTTP requests. Leave empty — the Actor derives a budget from Maximum results and splits it between sources."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}