{
  "openapi": "3.0.1",
  "info": {
    "title": "Otodom.pl Scraper",
    "description": "[💰 $0.95 / 1K] Extract real-estate listings from Otodom.pl. Get prices, area, rooms, addresses, photos, agent contacts, and full descriptions for apartments, houses, plots, and commercial properties — both for sale and for rent — across Poland.",
    "version": "1.0",
    "x-build-id": "LncNxg8nczb0uoEBa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidcode~otodom-pl-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidcode-otodom-pl-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/solidcode~otodom-pl-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidcode-otodom-pl-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/solidcode~otodom-pl-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidcode-otodom-pl-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": {
          "dealType": {
            "title": "Deal Type",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Are you looking for properties to buy or to rent? Ignored when Start URLs are provided (the URL controls deal type).",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property Type",
            "enum": [
              "apartment",
              "studio",
              "house",
              "room",
              "plot",
              "commercial",
              "hall",
              "garage",
              "investment"
            ],
            "type": "string",
            "description": "Filter by property category. Mirrors Otodom's own category navigation. Note: 'Room' is only valid with Deal Type = For Rent. If you pick Room + For Sale, the actor will automatically switch to For Rent and warn you (Otodom does not sell individual rooms).",
            "default": "apartment"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Where in Poland to search — a city name (e.g. 'Warszawa', 'Kraków', 'Gdańsk'), voivodeship, or 'cała Polska' for the entire country. Polish characters are accepted and recommended."
          },
          "radius": {
            "title": "Search Radius",
            "enum": [
              "0",
              "5",
              "10",
              "15",
              "25",
              "50",
              "75"
            ],
            "type": "string",
            "description": "Expand the search this many kilometres beyond the selected location. Set 0 to limit results to the location boundary itself. Matches Otodom's UI options.",
            "default": "0"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Power-user input. Paste Otodom search-result URLs (e.g. https://www.otodom.pl/pl/wyniki/sprzedaz/mieszkanie/warszawa) or individual listing URLs (e.g. https://www.otodom.pl/pl/oferta/...). When provided, these override the Deal Type / Property Type / Location / Filters settings above.",
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Minimum Price (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include listings priced at or above this amount in Polish złoty. Leave empty for no minimum."
          },
          "priceMax": {
            "title": "Maximum Price (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include listings priced at or below this amount in Polish złoty. Leave empty for no maximum."
          },
          "areaMin": {
            "title": "Minimum Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties with floor area at or above this many square metres."
          },
          "areaMax": {
            "title": "Maximum Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties with floor area at or below this many square metres."
          },
          "rooms": {
            "title": "Number of Rooms",
            "uniqueItems": true,
            "type": "array",
            "description": "Only include properties with these room counts. Select multiple to combine. Leave empty for no filter. Applies to apartments, houses, and rooms — ignored for plots, garages, and commercial.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6+"
              ],
              "enumTitles": [
                "1 room",
                "2 rooms",
                "3 rooms",
                "4 rooms",
                "5 rooms",
                "6 or more"
              ]
            },
            "default": []
          },
          "buildYearMin": {
            "title": "Minimum Build Year",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Only include properties built in or after this year. Leave empty for no minimum. Most useful for apartments and houses; ignored by Otodom for plots, garages, and commercial premises."
          },
          "buildYearMax": {
            "title": "Maximum Build Year",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Only include properties built in or before this year. Leave empty for no maximum."
          },
          "marketType": {
            "title": "Market",
            "enum": [
              "any",
              "primary",
              "secondary"
            ],
            "type": "string",
            "description": "Primary market (developer / new build) vs secondary market (resale). Otodom uses this distinction prominently on sale listings.",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "default",
              "date_newest",
              "date_oldest",
              "price_lowest",
              "price_highest",
              "area_smallest",
              "area_largest"
            ],
            "type": "string",
            "description": "How Otodom orders results before we collect them.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to collect across all searches and URLs. Set to 0 for no cap (an internal safety limit of 100,000 is then applied). Results are collected in full pages of ~36 listings, so the final page may overshoot this number by a few rows.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}