{
  "openapi": "3.0.1",
  "info": {
    "title": "Otodom Scraper & API: Export Listings, Prices & Agents",
    "description": "Scrape Otodom (otodom.pl) without login: flats, houses, plots and commercial space for sale or rent by place, price, area, rooms or search URL. Price per m², address, photos, agency, optional full description and building details. Whole country, no page limit. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "zlSrIm6O6eX6TwyoI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~otodom-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-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/s_actors~otodom-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-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/s_actors~otodom-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-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": "Places",
            "type": "array",
            "description": "Towns, districts or voivodeships to search, typed as on the site: \"Kraków\", \"Warszawa\", \"Mokotów\", \"Wola, Warszawa\", \"małopolskie\". Over 1 000 places are known; for any other place paste the path from an Otodom URL (mazowieckie/warszawa/warszawa/warszawa). One search per place and property type. Leave empty for the whole of Poland.",
            "items": {
              "type": "string"
            }
          },
          "transaction": {
            "title": "Sale or rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Offers for sale or for rent.",
            "default": "sale"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "What to search. One search per place and type, each up to the limit below.",
            "items": {
              "type": "string",
              "enum": [
                "flat",
                "studio",
                "house",
                "room",
                "plot",
                "commercial",
                "warehouse",
                "garage"
              ],
              "enumTitles": [
                "Flats (mieszkania)",
                "Studios (kawalerki)",
                "Houses (domy)",
                "Rooms (pokoje, rent only)",
                "Plots (działki)",
                "Commercial space (lokale)",
                "Warehouses and halls (hale i magazyny)",
                "Garages (garaże)"
              ]
            },
            "default": [
              "flat"
            ]
          },
          "startUrls": {
            "title": "Otodom URLs",
            "type": "array",
            "description": "Search pages copied from your browser with the filters already set, or links of single offers (https://www.otodom.pl/pl/oferta/...). A search URL keeps its place, type, sale or rent and its own filters; an offer link returns that offer with full details.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Offers per search",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Maximum offers for each place and property type and for each URL. The site lists a search to its very last page, so even all flats of Poland (about 150 000) can be exported.",
            "default": 100
          },
          "priceFrom": {
            "title": "Minimum price (PLN)",
            "minimum": 0,
            "type": "number",
            "description": "Only offers priced at or above this amount in złoty (monthly rent for rentals)."
          },
          "priceTo": {
            "title": "Maximum price (PLN)",
            "minimum": 0,
            "type": "number",
            "description": "Only offers priced at or below this amount in złoty (monthly rent for rentals)."
          },
          "areaFrom": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Only offers with at least this usable area in square metres."
          },
          "areaTo": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Only offers with at most this usable area in square metres."
          },
          "rooms": {
            "title": "Rooms",
            "type": "array",
            "description": "Number of rooms (flats and houses). Several values are allowed; 5+ means five or more.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5+"
              ],
              "enumTitles": [
                "1 room",
                "2 rooms",
                "3 rooms",
                "4 rooms",
                "5 or more rooms"
              ]
            }
          },
          "market": {
            "title": "Market",
            "enum": [
              "all",
              "primary",
              "secondary"
            ],
            "type": "string",
            "description": "New builds from developers (primary) or resale (secondary).",
            "default": "all"
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "private",
              "agency"
            ],
            "type": "string",
            "description": "Private owners only, agencies and developers only, or both.",
            "default": "all"
          },
          "postedWithinDays": {
            "title": "Posted within",
            "enum": [
              "1",
              "3",
              "7",
              "14",
              "30"
            ],
            "type": "string",
            "description": "Only offers posted in the last 1, 3, 7, 14 or 30 days. Empty = any time."
          },
          "buildYearFrom": {
            "title": "Built from (year)",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Only buildings built in this year or later."
          },
          "buildYearTo": {
            "title": "Built until (year)",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Only buildings built in this year or earlier."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "oldest",
              "priceAsc",
              "priceDesc",
              "areaDesc",
              "pricePerM2Asc",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first is the steadiest while offers are added during a run.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Full details",
            "type": "boolean",
            "description": "Open the page of every offer to add the full description, exact coordinates, building and flat attributes (year, heating, material, windows, ownership, charges, deposit), the agency address and every photo. Charged as a separate \"Offer details\" event per offer.",
            "default": false
          },
          "includeAgencyContacts": {
            "title": "Agency contacts",
            "type": "boolean",
            "description": "Open the page of each agency once per run and add its office phone numbers, website, address and city to every offer of that agency. Included in the offer price, no extra charge. Private owners have no agency page: their phone is not public.",
            "default": false
          },
          "findEmails": {
            "title": "Find agency emails",
            "type": "boolean",
            "description": "Look for an email on the website of each agency (the home page and up to two contact pages; the mail server of the address is checked) and add it to every offer of that agency. Turns on \"Agency contacts\". Charged once per agency with an email found in a run, as the \"Agency email\" event; agencies without an email or website cost nothing.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new offers",
            "type": "boolean",
            "description": "Output only offers that were not returned for the same search in the previous runs with the same monitor name (sorted by newest). Schedule the Actor to get new offers every hour.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of seen offers apart for different schedules."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}