{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Realty Scraper — Russia Property Data & API",
    "description": "Yandex Realty scraper & real estate data API for Russia's leading property portal. Sale & rent apartments, rooms, houses & land: price (RUB), price/m², rooms, area, floor, building year, address, GPS, metro, seller & photos — clean JSON/CSV.",
    "version": "1.0",
    "x-build-id": "KJtEoa0z2sZ6Xzu8n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~yandex-realty-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-yandex-realty-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/sian.agency~yandex-realty-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-yandex-realty-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/sian.agency~yandex-realty-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-yandex-realty-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": {
          "scrapeMode": {
            "title": "⚡ Scrape mode",
            "enum": [
              "overview",
              "detail"
            ],
            "type": "string",
            "description": "⚡ **OVERVIEW** — fast, cheap, ungated. Pulls every core field straight from Yandex Realty's search pages (price, price/m², rooms, area, floor, building, address, GPS, metro, seller, photos).\n\n🔍 **DETAIL** — fetches each offer's own page individually. Use when you have specific offer URLs to refresh.\n\n**TIP:** Start with Overview — it already carries the full field set for residential offers.",
            "default": "overview"
          },
          "searchMode": {
            "title": "🧭 Search by (auto-detected)",
            "enum": [
              "bySearchUrl",
              "byOfferUrl"
            ],
            "type": "string",
            "description": "🧭 How to tell the scraper what to fetch. **Usually leave this blank — it is auto-inferred** from which inputs you provide:\n\n- **By search URL** — paste one or more Yandex Realty search-results URLs (or build a search with the city / deal / type / filters below). The default for Overview.\n- **By offer URL** — Detail mode only: paste specific offer URLs (or offer IDs) to fetch those exact properties.\n\n**NOTE:** *By offer URL* is valid only when Scrape mode = Detail.",
            "default": "bySearchUrl"
          },
          "city": {
            "title": "🏙️ City",
            "type": "string",
            "description": "🏙️ City slug to search, taken straight from a Yandex Realty URL (the first path segment). Examples: `moskva` (Moscow), `sankt-peterburg` (St. Petersburg), `novosibirsk`, `ekaterinburg`, `kazan`, `krasnodar`. Any city slug Yandex Realty knows works here.\n\n**Ignored when you paste full search URLs below** (the URL's own city wins).",
            "default": "moskva"
          },
          "deal": {
            "title": "🤝 Deal type",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "🤝 Whether to search properties for **sale** or for **rent**.",
            "default": "sale"
          },
          "ptype": {
            "title": "🏠 Property type",
            "enum": [
              "apartment",
              "room",
              "house",
              "lot"
            ],
            "type": "string",
            "description": "🏠 Which property type to search.",
            "default": "apartment"
          },
          "searchUrls": {
            "title": "🔗 Search URLs",
            "type": "array",
            "description": "🔗 Yandex Realty search-results URLs to scrape. Used when **Search by = By search URL**.\n\n**TIP:** Build any search on Yandex Realty (set your city, deal, type, filters, sort order), then copy the URL from the address bar — every on-page filter is honored.\n\n**BULK EDIT:** Click \"Bulk edit\" to paste many URLs, one per line.",
            "items": {
              "type": "string"
            }
          },
          "offerUrls": {
            "title": "🆔 Offer URLs",
            "type": "array",
            "description": "🆔 **Detail mode only.** Specific Yandex Realty offer URLs (or bare offer IDs) to fetch as full property pages.\n\n**BULK EDIT:** Click \"Bulk edit\" to paste many URLs, one per line.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "🔢 Max results",
            "minimum": 1,
            "type": "integer",
            "description": "🔢 Maximum offers to extract this run.\n\n- **FREE tier:** capped at 25 offers per run.\n- **PAID tier:** unlimited — set as high as you need.\n\n**NOTE:** Yandex Realty paginates one search to ~500 offers max — narrow with price/area/room filters to reach a city's full inventory.",
            "default": 100
          },
          "rooms": {
            "title": "🛏️ Rooms",
            "enum": [
              "",
              "0",
              "1",
              "2",
              "3",
              "4"
            ],
            "type": "string",
            "description": "🛏️ Optional. Room count to filter by. Use **0** for studios, **1**–**4** for that many rooms. Leave blank for any.",
            "default": ""
          },
          "sort": {
            "title": "↕️ Sort by",
            "enum": [
              "",
              "RELEVANCE",
              "PRICE",
              "PRICE_DESC",
              "DATE_DESC",
              "AREA",
              "AREA_DESC",
              "PRICE_PER_SQUARE_METER"
            ],
            "type": "string",
            "description": "↕️ How Yandex Realty orders the search results before they are scraped.",
            "default": ""
          },
          "priceMin": {
            "title": "💸 Min price (RUB)",
            "minimum": 0,
            "type": "integer",
            "description": "💸 Optional. Minimum price filter in Russian rubles."
          },
          "priceMax": {
            "title": "💰 Max price (RUB)",
            "minimum": 0,
            "type": "integer",
            "description": "💰 Optional. Maximum price filter in Russian rubles."
          },
          "areaMin": {
            "title": "📐 Min area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "📐 Optional. Minimum total area in square metres."
          },
          "areaMax": {
            "title": "📐 Max area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "📐 Optional. Maximum total area in square metres."
          },
          "builtYearMin": {
            "title": "🏗️ Min build year",
            "minimum": 0,
            "type": "integer",
            "description": "🏗️ Optional. Earliest building/commissioning year."
          },
          "builtYearMax": {
            "title": "🏗️ Max build year",
            "minimum": 0,
            "type": "integer",
            "description": "🏗️ Optional. Latest building/commissioning year."
          },
          "floorMin": {
            "title": "🛗 Min floor",
            "minimum": 0,
            "type": "integer",
            "description": "🛗 Optional. Minimum floor."
          },
          "floorMax": {
            "title": "🛗 Max floor",
            "minimum": 0,
            "type": "integer",
            "description": "🛗 Optional. Maximum floor."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}