{
  "openapi": "3.0.1",
  "info": {
    "title": "Otodom Scraper | $1 per 1k Listings | New & Price Alerts",
    "description": "Scrape Otodom.pl real estate by city name, sale or rent, type, price, area and rooms, or by any Otodom URL. Price per m², rooms, floor, agency, photos, optional GPS and details. Monitor new listings and price changes. Never a silent empty run.",
    "version": "0.1",
    "x-build-id": "3hY3IppezvR0Wn6Xc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidrows~otodom-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidrows-otodom-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/solidrows~otodom-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidrows-otodom-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/solidrows~otodom-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidrows-otodom-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": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Where to search: city, district or voivodeship names, one search per line. Examples: \"Warszawa\", \"Kraków, Stare Miasto\", \"Mokotów\", \"Piaseczno, mazowieckie\", \"pomorskie\". You can also paste a location path from an Otodom URL (\"mazowieckie/warszawa/warszawa/warszawa/wola\"). Leave empty to search all of Poland.",
            "items": {
              "type": "string"
            }
          },
          "transaction": {
            "title": "Sale or rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Listings for sale or for rent.",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "apartment",
              "studio",
              "house",
              "investment",
              "room",
              "plot",
              "commercial",
              "warehouse",
              "garage"
            ],
            "type": "string",
            "description": "Otodom category to search.",
            "default": "apartment"
          },
          "priceMin": {
            "title": "Price from (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in PLN. For rentals: monthly rent."
          },
          "priceMax": {
            "title": "Price to (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in PLN. For rentals: monthly rent."
          },
          "areaMin": {
            "title": "Area from (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum floor area in square meters."
          },
          "areaMax": {
            "title": "Area to (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum floor area in square meters."
          },
          "roomsMin": {
            "title": "Rooms from",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Minimum number of rooms (1-6, where 6 means six or more)."
          },
          "roomsMax": {
            "title": "Rooms to",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Maximum number of rooms (1-6, where 6 means six or more)."
          },
          "pricePerMeterMin": {
            "title": "Price per m² from (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price per square meter in PLN."
          },
          "pricePerMeterMax": {
            "title": "Price per m² to (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price per square meter in PLN."
          },
          "market": {
            "title": "Market",
            "enum": [
              "all",
              "primary",
              "secondary"
            ],
            "type": "string",
            "description": "Primary market (new builds from developers) or secondary market (resale).",
            "default": "all"
          },
          "advertiserType": {
            "title": "Advertiser",
            "enum": [
              "all",
              "private",
              "agency",
              "developer"
            ],
            "type": "string",
            "description": "Who posted the listing. \"Private owners\" returns listings without an agency.",
            "default": "all"
          },
          "buildYearMin": {
            "title": "Built from (year)",
            "minimum": 0,
            "type": "integer",
            "description": "Earliest construction year, e.g. 2010."
          },
          "buildYearMax": {
            "title": "Built to (year)",
            "minimum": 0,
            "type": "integer",
            "description": "Latest construction year."
          },
          "postedWithinDays": {
            "title": "Posted within",
            "enum": [
              "any",
              "1",
              "3",
              "7",
              "14",
              "30",
              "90"
            ],
            "type": "string",
            "description": "Only listings added to Otodom in the last N days.",
            "default": "any"
          },
          "distanceRadius": {
            "title": "Search radius",
            "enum": [
              "0",
              "5",
              "10",
              "15",
              "25",
              "50",
              "75"
            ],
            "type": "string",
            "description": "Also include listings within this distance around each location.",
            "default": "0"
          },
          "keyword": {
            "title": "Keyword in description",
            "type": "string",
            "description": "Optional word or phrase that must appear in the listing text, e.g. \"penthouse\", \"taras\", \"metro\"."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "default",
              "newest",
              "oldest",
              "price_asc",
              "price_desc",
              "area_asc",
              "area_desc"
            ],
            "type": "string",
            "description": "Order of results. Matters when you limit the number of listings: \"Newest first\" is the right choice for monitoring.",
            "default": "default"
          },
          "startUrls": {
            "title": "Otodom URLs",
            "type": "array",
            "description": "Otodom.pl search result URLs (any filters, map areas or sort order you set on the site are kept; a URL with page=N starts from that page) and/or single listing URLs (https://www.otodom.pl/pl/oferta/...). Listing URLs are always scraped with full details. The filter fields above do not change these URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeDetails": {
            "title": "Open each listing for full details",
            "type": "boolean",
            "description": "Off: fast mode, data from search results (price, area, rooms, floor, location, agency, photos). On: also opens every listing page and adds the full description, GPS coordinates, build year, building type, heating, ownership, features, equipment, floor plans and all photos. Slower, and each opened listing is charged as an extra \"listing details\" event.",
            "default": false
          },
          "onlyNewListings": {
            "title": "Only new listings (monitoring)",
            "type": "boolean",
            "description": "Remembers which listings were already returned for this search and returns only new ones on the next runs. Schedule the Actor (e.g. hourly) to get a feed of fresh listings. The first run returns everything and builds the memory. You pay only for listings that are returned.",
            "default": false
          },
          "trackPriceChanges": {
            "title": "Also return price changes",
            "type": "boolean",
            "description": "Works with \"Only new listings\". Listings seen before are returned again when their price changed, with changeType \"price_changed\", previousPrice and priceChangePercent.",
            "default": false
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to save in the whole run. Use 0 for no limit.",
            "default": 100
          },
          "maxItemsPerSearch": {
            "title": "Max listings per search",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings per location or search URL, so that several cities get a balanced share. Use 0 for no limit.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy is used by default. Datacenter proxies work for Otodom, no residential proxies needed.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}