{
  "openapi": "3.0.1",
  "info": {
    "title": "Otodom Monitor - Rental Yield, Deals, Price Drops",
    "description": "Polish property listings from Otodom (sale and rent) with price per m² vs the district, estimated rent and gross rental yield, new listings, price drops, re-posted and gone homes, and a district & agency market report. No login.",
    "version": "0.1",
    "x-build-id": "oYvdMhfPvIQ75STRm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apt_squirrel~otodom-market-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apt_squirrel-otodom-market-monitor",
        "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/apt_squirrel~otodom-market-monitor/runs": {
      "post": {
        "operationId": "runs-sync-apt_squirrel-otodom-market-monitor",
        "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/apt_squirrel~otodom-market-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-apt_squirrel-otodom-market-monitor",
        "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": {
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Where to search.",
            "items": {
              "type": "string",
              "enum": [
                "warszawa",
                "krakow",
                "wroclaw",
                "gdansk",
                "gdynia",
                "sopot",
                "poznan",
                "lodz",
                "katowice",
                "szczecin",
                "lublin",
                "bydgoszcz",
                "torun",
                "bialystok",
                "rzeszow",
                "all-poland"
              ],
              "enumTitles": [
                "Warszawa",
                "Kraków",
                "Wrocław",
                "Gdańsk",
                "Gdynia",
                "Sopot",
                "Poznań",
                "Łódź",
                "Katowice",
                "Szczecin",
                "Lublin",
                "Bydgoszcz",
                "Toruń",
                "Białystok",
                "Rzeszów",
                "All of Poland"
              ]
            },
            "default": [
              "warszawa"
            ]
          },
          "transaction": {
            "title": "Sale, rent or both",
            "enum": [
              "both",
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Both: sale and rent listings of the same area, so every sale listing gets an estimated rent and gross yield.",
            "default": "both"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "flat",
              "house",
              "plot",
              "commercial",
              "room",
              "garage"
            ],
            "type": "string",
            "description": "Property type.",
            "default": "flat"
          },
          "rooms": {
            "title": "Rooms",
            "type": "array",
            "description": "Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
              ],
              "enumTitles": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6+"
              ]
            },
            "default": []
          },
          "areaMin": {
            "title": "Area from (m²)",
            "type": "integer",
            "description": "Area from (m²)."
          },
          "areaMax": {
            "title": "Area to (m²)",
            "type": "integer",
            "description": "Area to (m²)."
          },
          "priceMin": {
            "title": "Sale price from (PLN)",
            "type": "integer",
            "description": "Sale price from (PLN)."
          },
          "priceMax": {
            "title": "Sale price to (PLN)",
            "type": "integer",
            "description": "Sale price to (PLN)."
          },
          "rentMin": {
            "title": "Monthly rent from (PLN)",
            "type": "integer",
            "description": "Monthly rent from (PLN)."
          },
          "rentMax": {
            "title": "Monthly rent to (PLN)",
            "type": "integer",
            "description": "Monthly rent to (PLN)."
          },
          "market": {
            "title": "Market",
            "enum": [
              "primary",
              "secondary"
            ],
            "type": "string",
            "description": "Empty = both."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "private",
              "agency",
              "developer"
            ],
            "type": "string",
            "description": "Empty = all."
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "type": "integer",
            "description": "Posted within (days)."
          },
          "buildYearFrom": {
            "title": "Built from (year)",
            "type": "integer",
            "description": "Built from (year)."
          },
          "locationPaths": {
            "title": "Other locations (Otodom paths)",
            "type": "array",
            "description": "Any place as Otodom writes it in its links, e.g. mazowieckie/piaseczynski/piaseczno or malopolskie/krakow/krakow/krakow/podgorze.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Or paste search links",
            "type": "array",
            "description": "Otodom search links (https://www.otodom.pl/pl/wyniki/...) with your filters.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerSearch": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 7200,
            "type": "integer",
            "description": "Per city and transaction, newest first. Gone listings are only reported when a search fits in this limit.",
            "default": 300
          },
          "minDealScore": {
            "title": "Only deals with score at least",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "50 = district price per m², 75 = about 10% below, 88+ = 15%+ below. Flagged and suspiciously low listings score 60 at most."
          },
          "minYieldPct": {
            "title": "Only sale listings with gross yield at least (%)",
            "type": "number",
            "description": "Needs 'Sale and rent'. E.g. 6."
          },
          "onlyChanges": {
            "title": "Monitor: only new and changed listings",
            "type": "boolean",
            "description": "For scheduled runs: after the first run, return only new listings, price drops, price rises and re-posted homes (plus gone ones).",
            "default": false
          },
          "includeRemoved": {
            "title": "Report gone listings",
            "type": "boolean",
            "description": "Report gone listings.",
            "default": true
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Runs with the same name share their history."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}