{
  "openapi": "3.0.1",
  "info": {
    "title": "Otodom Scraper — Poland Property, Agent Phones & Monitor (MCP)",
    "description": "Otodom.pl listings for all Poland: price, price/m2, area, rooms, photos + the agency or owner phone number (100% hit rate in tests), GPS and full descriptions. Monitor mode: new listings, price drops & removed ads. $1.5 per 1 000 listings.",
    "version": "0.0",
    "x-build-id": "4Od1vaJUpjgxBUPQj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/amygraphics~otodom-poland-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-amygraphics-otodom-poland-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/amygraphics~otodom-poland-scraper/runs": {
      "post": {
        "operationId": "runs-sync-amygraphics-otodom-poland-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/amygraphics~otodom-poland-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-amygraphics-otodom-poland-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "monitor"
            ],
            "type": "string",
            "description": "search = extract every matching listing. monitor = compare with the previous run and return only what is new, changed (price drops included) or gone — perfect for a daily schedule.",
            "default": "search"
          },
          "operation": {
            "title": "For sale or for rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "sale = sprzedaż, rent = wynajem.",
            "default": "sale"
          },
          "estateType": {
            "title": "Property type",
            "enum": [
              "mieszkanie",
              "dom",
              "dzialka",
              "lokal",
              "garaz",
              "pokoj"
            ],
            "type": "string",
            "description": "mieszkanie = flat, dom = house, dzialka = plot, lokal = commercial, garaz = garage, pokoj = room.",
            "default": "mieszkanie"
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "City, province or Otodom path: \"warszawa\", \"kraków\", \"mazowieckie/warszawa\", \"malopolskie/krakow/krakow\" or \"\" for all Poland (use \"\" only with filters, the whole country is 150 000+ listings).",
            "default": [
              "warszawa"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchUrl": {
            "title": "Search URL (optional)",
            "type": "string",
            "description": "Instead of the fields above, paste any Otodom search-results URL — the Actor reuses its category and location path.",
            "default": ""
          },
          "priceMin": {
            "title": "Min price (PLN)",
            "type": "integer",
            "description": "Optional. Example: 500000."
          },
          "priceMax": {
            "title": "Max price (PLN)",
            "type": "integer",
            "description": "Optional. Example: 900000."
          },
          "areaMin": {
            "title": "Min area (m²)",
            "type": "integer",
            "description": "Optional. Example: 40."
          },
          "areaMax": {
            "title": "Max area (m²)",
            "type": "integer",
            "description": "Optional. Example: 120."
          },
          "rooms": {
            "title": "Rooms",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional. One or more room counts as text, e.g. [\"2\", \"3\"].",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "market": {
            "title": "Market",
            "enum": [
              "any",
              "primary",
              "secondary"
            ],
            "type": "string",
            "description": "Primary = new builds from developers, secondary = resale.",
            "default": "any"
          },
          "ownerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "agency",
              "private"
            ],
            "type": "string",
            "description": "Agency/developer listings, private owners, or everything.",
            "default": "any"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "price_asc",
              "price_desc",
              "price_per_m2_asc",
              "price_per_m2_desc"
            ],
            "type": "string",
            "description": "newest = Otodom's default (newest first). Other options order by price or price per m².",
            "default": "newest"
          },
          "limit": {
            "title": "Page size",
            "enum": [
              "72",
              "36"
            ],
            "type": "string",
            "description": "72 (recommended, verified working) or 36. Bigger pages mean fewer requests.",
            "default": "72"
          },
          "maxPages": {
            "title": "Max pages per location",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Each page holds `limit` listings (72 by default). 30 pages = up to 2 160 listings per location.",
            "default": 30
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 300000,
            "type": "integer",
            "description": "Global cap on rows returned (and billed).",
            "default": 200
          },
          "includeDetails": {
            "title": "Fetch contacts & full details",
            "type": "boolean",
            "description": "One extra request per listing: adds the agency/owner phone number, agent name, full description, building attributes (year, floors, extras), floor plans and GPS coordinates. Verified to return a phone number on 100% of listings tested.",
            "default": true
          },
          "onlyChanges": {
            "title": "Monitor: only new / changed / closed",
            "type": "boolean",
            "description": "In monitor mode, return only the deltas instead of the full list (unchanged listings are not billed).",
            "default": true
          },
          "detectClosed": {
            "title": "Monitor: detect closed listings",
            "type": "boolean",
            "description": "Flag listings that disappeared from the results as closed (sold, rented or withdrawn). Only done when the scan was complete and error-free.",
            "default": true
          },
          "stateKey": {
            "title": "Monitor state key",
            "type": "string",
            "description": "Optional name for this monitored search. Leave empty — it is derived from the search scope.",
            "default": ""
          },
          "delayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Politeness delay. Leave 0 for the built-in value (0.6 s between search pages). Otodom does not block crawlers, but please stay reasonable.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}