{
  "openapi": "3.0.1",
  "info": {
    "title": "Otodom Scraper with Rental Yield & Deal Score – Poland",
    "description": "Gross rental yield by district and a 0–100 deal score for every Otodom flat for sale in 12 Polish cities, incl. Warsaw, Kraków, Katowice and Szczecin. EUR and PLN. For investors, analysts, AI agents",
    "version": "0.0",
    "x-build-id": "2h27pL3D4KLhOMbaE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data-nest~cee-rental-yield/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data-nest-cee-rental-yield",
        "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/data-nest~cee-rental-yield/runs": {
      "post": {
        "operationId": "runs-sync-data-nest-cee-rental-yield",
        "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/data-nest~cee-rental-yield/run-sync": {
      "post": {
        "operationId": "run-sync-data-nest-cee-rental-yield",
        "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",
            "minItems": 1,
            "type": "array",
            "description": "Cities to analyse. Each city samples apartments for sale and for long-term rent. Katowice is available; its rental market is small, so many groups fall back to city level.",
            "items": {
              "type": "string",
              "enum": [
                "warszawa",
                "krakow",
                "wroclaw",
                "katowice",
                "lodz",
                "gdansk",
                "poznan",
                "szczecin",
                "gdynia",
                "rzeszow",
                "lublin",
                "bydgoszcz"
              ],
              "enumTitles": [
                "Warsaw",
                "Kraków",
                "Wrocław",
                "Katowice",
                "Łódź",
                "Gdańsk",
                "Poznań",
                "Szczecin",
                "Gdynia",
                "Rzeszów",
                "Lublin",
                "Bydgoszcz"
              ]
            },
            "default": [
              "warszawa",
              "krakow"
            ]
          },
          "mode": {
            "title": "What to return",
            "enum": [
              "both",
              "yieldReport",
              "scoreListings",
              "listings"
            ],
            "type": "string",
            "description": "listings: every listing for sale and for rent with our analytics (deal score, estimated rent and yield for sales), one row each, no yield rows; the number of rows follows from maxListingsPerSide / the district quota, maxScoredListings is ignored. yieldReport: gross rental yield per district and room count. scoreListings: a 0–100 deal score for every listing for sale. both: yield report and scored listings. rooms and areaMin/areaMax apply to listings rows too, minScore only to sale rows.",
            "default": "both"
          },
          "rooms": {
            "title": "Rooms",
            "minItems": 1,
            "type": "array",
            "description": "Room counts to include in the results. \"4+\" means four or more rooms.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4+"
              ],
              "enumTitles": [
                "1 room",
                "2 rooms",
                "3 rooms",
                "4 or more rooms"
              ]
            },
            "default": [
              "1",
              "2",
              "3",
              "4+"
            ]
          },
          "areaMin": {
            "title": "Minimum area",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Smallest flat size to include.",
            "default": 15
          },
          "areaMax": {
            "title": "Maximum area",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Largest flat size to include.",
            "default": 250
          },
          "minScore": {
            "title": "Minimum deal score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Return only listings with a deal score at or above this value (50 = priced at the median of comparable flats).",
            "default": 0
          },
          "maxScoredListings": {
            "title": "Maximum scored listings",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Return at most this many listings, best deals first. 0 = all. Ignored in mode listings.",
            "default": 1000
          },
          "includePrimaryMarket": {
            "title": "Include primary market (new builds)",
            "type": "boolean",
            "description": "On (default): compare new builds from developers together with resales; isPrimaryMarket is then true or null (unknown). Off: ask the portal for resales only (secondary market); every record then has isPrimaryMarket false.",
            "default": true
          },
          "samplingMode": {
            "title": "Sampling mode",
            "enum": [
              "perDistrict",
              "city"
            ],
            "type": "string",
            "description": "perDistrict: the newest listings of every district, for district-level comparisons. city: the newest listings of the whole city; faster, but recent listings only.",
            "default": "perDistrict"
          },
          "maxListingsPerDistrict": {
            "title": "Listings per district",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Per-district mode: listings per district and market side. 0 = automatic: 150, or more in cities with few districts (max(150, 1500 ÷ districts)). Ignored in whole-city mode.",
            "default": 0
          },
          "maxListingsPerSide": {
            "title": "Listings per city and side",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Whole-city mode: listings for sale and, separately, for rent per city. Ignored in per-district mode.",
            "default": 1500
          },
          "minSaleSample": {
            "title": "Minimum sale listings per group",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Fewer listings for sale than this in a district and room group: the group falls back to the city level.",
            "default": 15
          },
          "minRentSample": {
            "title": "Minimum rent listings per group",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Fewer listings for rent than this in a district and room group: the rent estimate falls back to the city level.",
            "default": 10
          },
          "onlyNewOrChanged": {
            "title": "Only new or cheaper listings",
            "type": "boolean",
            "description": "Return only listings that are new or at least 1% cheaper since the last run with the same watchlist name.",
            "default": false
          },
          "watchlistName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Name of the monitoring memory. Use a different name for each watchlist; letters, digits, '.', '_' and '-'.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy used to reach the listing portal. The default is Apify Proxy in automatic mode, which uses the proxy groups available to your account. You can pass your own proxyConfiguration instead.",
            "default": {
              "useApifyProxy": true
            }
          },
          "minSalePrice": {
            "title": "Minimum sale price",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Return only listings for sale asking at least this much, in PLN. Filters returned rows only; scores compare with the whole sample of the city. Modes listings, scoreListings and both."
          },
          "maxSalePrice": {
            "title": "Maximum sale price",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Return only listings for sale asking at most this much, in PLN. Filters returned rows only; scores compare with the whole sample of the city. Modes listings, scoreListings and both."
          },
          "minMonthlyRent": {
            "title": "Minimum monthly rent",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Return only rentals asking at least this much per month, in PLN, without the administrative fee. Filters returned rows only; estimates use the whole sample of the city. Mode listings only."
          },
          "maxMonthlyRent": {
            "title": "Maximum monthly rent",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Return only rentals asking at most this much per month, in PLN, without the administrative fee. Filters returned rows only; estimates use the whole sample of the city. Mode listings only."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}