{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Realty Scraper: Яндекс Недвижимость",
    "description": "Search Yandex Realty (Яндекс Недвижимость) listings across Russian cities. Filter by price, area, rooms, floor, build year, owner-only, and new buildings. Get renovation state, amenity tags, mortgage estimate, and GPS coordinates per listing.",
    "version": "0.1",
    "x-build-id": "5gHGquPUfYqUNfksU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~yandex-realty-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-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/getascraper~yandex-realty-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-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/getascraper~yandex-realty-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Provide direct Yandex Realty search URLs (e.g., https://realty.yandex.ru/moskva/kupit/kvartira/). These override the structured category dropdowns below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "dealType": {
            "title": "Deal Type",
            "enum": [
              "sell",
              "rent"
            ],
            "type": "string",
            "description": "Select whether to scrape property sale or rental listings.",
            "default": "sell"
          },
          "propertyType": {
            "title": "Property Type",
            "enum": [
              "kvartira",
              "dom",
              "komnata",
              "uchastok",
              "garazh",
              "kommercheskaya-nedvizhimost"
            ],
            "type": "string",
            "description": "Select the target property classification.",
            "default": "kvartira"
          },
          "region": {
            "title": "Region Slug",
            "type": "string",
            "description": "The URL city slug. Examples: 'moskva' (Moscow), 'sankt-peterburg' (St. Petersburg), 'ekaterinburg' (Yekaterinburg). Leave empty if Start URLs are supplied.",
            "default": "moskva"
          },
          "maxItems": {
            "title": "Max Property Listings",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of property listing records to extract.",
            "default": 100
          },
          "priceMin": {
            "title": "Min Price",
            "minimum": 0,
            "type": "integer",
            "description": "Only return listings priced at or above this amount (in the listing's own currency, usually RUB)."
          },
          "priceMax": {
            "title": "Max Price",
            "minimum": 0,
            "type": "integer",
            "description": "Only return listings priced at or below this amount (in the listing's own currency, usually RUB)."
          },
          "areaMin": {
            "title": "Min Total Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return listings with total area at or above this value."
          },
          "areaMax": {
            "title": "Max Total Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return listings with total area at or below this value."
          },
          "roomsTotal": {
            "title": "Rooms",
            "enum": [
              "",
              "0",
              "1",
              "2",
              "3",
              "4"
            ],
            "type": "string",
            "description": "Filter by room count. Leave blank for all room counts.",
            "default": ""
          },
          "floorMin": {
            "title": "Min Floor",
            "minimum": 0,
            "type": "integer",
            "description": "Only return listings on or above this floor."
          },
          "floorMax": {
            "title": "Max Floor",
            "minimum": 0,
            "type": "integer",
            "description": "Only return listings on or below this floor."
          },
          "builtYearMin": {
            "title": "Min Build Year",
            "minimum": 1900,
            "type": "integer",
            "description": "Only return listings in buildings completed in or after this year."
          },
          "builtYearMax": {
            "title": "Max Build Year",
            "minimum": 1900,
            "type": "integer",
            "description": "Only return listings in buildings completed in or before this year."
          },
          "ownerOnly": {
            "title": "Owner Listings Only",
            "type": "boolean",
            "description": "When enabled, excludes listings posted by real estate agents/agencies, keeping only direct owner listings.",
            "default": false
          },
          "newBuildingOnly": {
            "title": "New Buildings Only",
            "type": "boolean",
            "description": "When enabled, restricts results to primary-market new-construction listings.",
            "default": false
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "RELEVANCE",
              "PRICE",
              "PRICE_DESC",
              "PRICE_PER_SQUARE",
              "PRICE_PER_SQUARE_DESC",
              "AREA",
              "AREA_DESC",
              "DATE_DESC"
            ],
            "type": "string",
            "description": "Result ordering, matching Yandex Realty's own sort options.",
            "default": "RELEVANCE"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Russian residential proxies are highly recommended to bypass edge-level geo-blocking on realty.yandex.ru.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "RU"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}