# Yandex Realty Scraper · Парсер Яндекс Недвижимости (`theshark/yandex-realty-scraper`) Actor

Yandex Realty listings by city or search link: price, area, rooms, floor, building, address, metro, photos, the author and phones. Объявления Яндекс Недвижимости по городу или ссылке на поиск: цена, площадь, комнаты, этаж, дом, адрес, метро, фото, автор и телефоны.

- **URL**: https://apify.com/theshark/yandex-realty-scraper.md
- **Developed by:** [TheShark](https://apify.com/theshark) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 94.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Yandex Realty Scraper · Парсер Яндекс Недвижимости

Scrape **real estate listings from Yandex Realty** (realty.yandex.ru): give a city as the site writes it in its address
(`moskva`, `kazan`), a deal (buy or rent) and a property type (apartment, room, house, land lot, commercial, garage), or
paste search links with any filters you set on the site, or links to single listings — and get a row per listing: price
and price per m², area, rooms, floor, building and year, residential complex, address, coordinates, metro with minutes,
description, photos, the author (owner, agent, agency or developer) and the author's **phone numbers** as the site shows
them on «Show phone». No Yandex account needed, proxies included.

*Описание на русском — ниже, в разделе «По-русски».*

### Why this Actor

- **Phones included** — the numbers the site shows on «Show phone» (Yandex relay numbers that forward to the author), with
  no extra pages; switch them off if you do not need them.
- **Any search of the site** — paste the search link with the filters you set on realty.yandex.ru (price, rooms, area,
  metro, year, renovation): the Actor pages through it, up to 25 pages, about 500 listings per search.
- **Cheap pages** — the first page is the site page, the next ones come through the site's own feed, four times lighter.
- **Only new listings** — a scheduled run with **Only new listings** delivers and charges only listings it has not
  delivered before.
- **Yandex's own price estimate** — the site's estimate of the price (from–to) and its «Good price» mark come with the
  listing, at no extra cost.
- **Price history and the residential complex** — on request, from the listing page.
- **Listing page details** — on request: how many times the listing was viewed, other listings in the same building with
  how long they were on sale and their prices, and the agency or developer card.

### What you can use it for

- **Leads for agencies and brokers** — fresh listings with phones by city, deal and property type, every day.
- **Market analytics** — prices per m² by district, metro, year built and building type; listings priced below Yandex's
  own estimate.
- **Price monitoring** — the same searches on a schedule, only new listings each time; price history where the site has it.
- **New-building research** — listings with the complex card: construction state, class, floors, apartments, price range,
  developer and how many houses it has finished.

### How to use

1. Set **City** as Yandex Realty writes it in its address (`moskva`, `sankt-peterburg`, `kazan`), **Deal** and
   **Property type** — or paste **Search or listing links** from realty.yandex.ru.
2. Set **Maximum listings per run**.
3. Run it — a row per listing appears in the dataset; **Phones** are on by default.
4. For a scheduled run turn on **Only new listings**; for new buildings add **Residential complex details**; for
   listings whose price changed — **Price history**; for views, the building's other listings and the agency card —
   **Listing page details**.

### Input example

```json
{
  "city": "moskva",
  "deal": "buy",
  "category": "apartment",
  "max_items": 20
}
```

### Output example

A new-building listing from a real run (trimmed: the description and photos are shortened, the phone is replaced):

```json
{
  "id": "6988527579888155988",
  "url": "https://realty.yandex.ru/offer/6988527579888155988/",
  "deal": "SELL",
  "category": "APARTMENT",
  "price": 15802493,
  "currency": "RUR",
  "price_period": "WHOLE_LIFE",
  "price_per_m2": 429416,
  "price_trend": "INCREASED",
  "has_price_history": true,
  "predicted_price": null,
  "predicted_price_min": null,
  "predicted_price_max": null,
  "price_advice": null,
  "price_advice_diff": null,
  "area": 36.8,
  "living_area": 12.5,
  "kitchen_area": 12,
  "rooms": 1,
  "flat_type": "NEW_FLAT",
  "floor": 2,
  "floors_total": 17,
  "ceiling_height": 3.03,
  "renovation": "BEFORE_CLEAN",
  "new_building": true,
  "built_year": 2027,
  "building_type": null,
  "complex_name": "Переделкино Ближнее",
  "complex_id": "86069",
  "deal_status": "PRIMARY_SALE",
  "address": "Москва, НАО, район Внуково, микрорайон Переделкино Ближнее, 18-й квартал, к1",
  "region": "Москва и МО",
  "latitude": 55.645313,
  "longitude": 37.330276,
  "metro": [
    {"name": "Мичуринец", "minutes": 11, "transport": "ON_FOOT"},
    {"name": "Рассказовка", "minutes": 16, "transport": "ON_FOOT"}
  ],
  "description": "Продается однокомнатная квартира в 18 квартале города-парка «Переделкино Ближнее». Общая площадь квартиры - 36,8 кв. м…",
  "photos": [
    "https://avatars.mds.yandex.net/get-realty-offers/20074534/35ee5275-00f4-4167-a49e-ce4c4b908266/orig",
    "https://avatars.mds.yandex.net/get-realty-offers/15204576/bea667bd-d6a5-45d5-8928-19bde476a7d4/orig"
  ],
  "photos_count": 3,
  "created_at": "2025-09-04T12:04:13Z",
  "updated_at": "2026-11-09T16:45:27Z",
  "author_category": "DEVELOPER",
  "author_name": "Недвижимость от застройщика",
  "author_organization": "Абсолют Недвижимость",
  "author_has_whatsapp": false,
  "author_has_telegram": false,
  "trusted_owner": false,
  "cadastre_matched": false,
  "phones": ["+79160000000"],
  "price_history": [],
  "complex": {},
  "views": null,
  "house_offers": [],
  "author_card": {},
  "partner_url": "//realty.yandex.ru/offer/6988527579888155988",
  "source": "https://realty.yandex.ru/moskva/kupit/kvartira/",
  "position": 2,
  "status": "ok"
}
```

### What you get

A row per listing: `id`, `url`, `deal` (SELL, RENT), `category` (APARTMENT, ROOMS, HOUSE, LOT, COMMERCIAL, GARAGE),
`price`, `currency`, `price_period`, `price_per_m2`, `price_trend`, Yandex's price estimate — `predicted_price`,
`predicted_price_min`, `predicted_price_max`, `price_advice` (LOW — below the estimate, «Good price» on the site) and
`price_advice_diff` (by how much), `area`, `living_area`, `kitchen_area`, `rooms`, `flat_type`, `floor`, `floors_total`,
`ceiling_height`, `renovation`, `new_building`, `built_year`, `building_type`, `complex_name`, `complex_id`,
`deal_status`, `address`, `region`, `latitude`, `longitude`, `metro` (name, minutes, on foot or by transport),
`description`, `photos` (full size), `photos_count`, `created_at`, `updated_at`, `author_category` (OWNER, AGENT,
PRIVATE_AGENT, AGENCY, DEVELOPER), `author_name`, `author_organization`, `author_has_whatsapp`, `author_has_telegram`,
`trusted_owner` and `cadastre_matched` (the site's verified-owner marks), `phones`, `partner_url`, `source`, `position` in
the search and `status`.

With **Price history** — `price_history` (date and price; the last one is the current price). With **Residential complex
details** — `complex` (state, class, floors, apartments, price range, developer and the houses it has finished). With
**Listing page details** — `views`, `house_offers` (other listings in the same building, closed ones too: dates, days on
sale, first and last price) and `author_card` (agency: founded, on the site since, address, hours, number of listings;
developer: website and phones).

### Pricing

| Event | Price | What it is |
|---|---|---|
| `offer` | $0.80 / 1,000 | a listing row |
| `phone` | $1.19 / 1,000 | a listing row with phones (**Phones**, on by default) |
| `price-history` | $1.99 / 1,000 | a listing row with its price history (**Price history**; only listings that have one) |
| `complex` | $8.00 / 1,000 | a listing row with the residential complex card (**Residential complex details**; only listings in a complex) |
| `details` | $1.99 / 1,000 | a listing row with views, the building's other listings or the author card (**Listing page details**) |
| Actor start | $0.00004 | once per run |

For example, 500 listings with phones cost $0.40 + $0.60 + $0.00004 for the start. Listing links that did not open or do
not exist are free rows with a `status`. The **Pricing** tab always has the up-to-date prices.

### Good to know

- Phones are the numbers Yandex Realty shows on «Show phone»: relay numbers that forward to the author. The site may change
  them over time, so call soon after the run.
- One search gives at most 25 pages — about 500 listings: that is how far Yandex Realty pages. For more, split the search
  with the site's filters (price ranges, districts, rooms) and paste several links.
- The city is part of the site address (`realty.yandex.ru/<city>/kupit/kvartira/`): copy it from the site.
- The listing page (**Price history**, **Residential complex details**, **Listing page details**) weighs about 0.6 MB, so
  these options are slower and priced separately; one page serves all three.
- Yandex gives its price estimate and the «Good price» mark only for some listings; for the others these fields are empty.
- Prices are in rubles, dates are UTC.

***

### По-русски

Собирает **объявления Яндекс Недвижимости** (realty.yandex.ru): задайте город, как он пишется в адресе сайта (`moskva`,
`kazan`), сделку (купить или снять) и вид недвижимости (квартира, комната, дом, участок, коммерческая, гараж), или вставьте
ссылки на поиск с любыми фильтрами, выставленными на сайте, или ссылки на объявления — и получите строку на объявление:
цена и цена за м², площадь, комнаты, этаж, дом и год, жилой комплекс, адрес, координаты, метро с минутами, описание, фото,
автор (владелец, агент, агентство или застройщик) и его **телефоны** — те, что сайт показывает по кнопке «Показать
телефон». Аккаунт Яндекса не нужен, прокси уже включены.

#### Зачем этот актор

- **Телефоны включены** — номера, которые сайт показывает по кнопке «Показать телефон» (подменные номера Яндекса, они
  переадресуют автору), без лишних страниц; не нужны — выключите.
- **Любой поиск сайта** — вставьте ссылку на поиск с фильтрами, выставленными на realty.yandex.ru (цена, комнаты, площадь,
  метро, год, ремонт): актор пролистает её, до 25 листов, около 500 объявлений на поиск.
- **Дешёвые листы** — первый лист — страница сайта, следующие — его же лента, в четыре раза легче.
- **Только новые объявления** — запуск по расписанию с **Только новые объявления** отдаёт и оплачивает лишь те, что ещё не
  отдавал.
- **Оценка цены самим Яндексом** — оценка сайта (от и до) и его отметка «Хорошая цена» приходят вместе с объявлением,
  без доплаты.
- **История цены и жилой комплекс** — по запросу, со страницы объявления.
- **Подробно со страницы объявления** — по запросу: сколько раз объявление смотрели, другие объявления того же дома (сколько
  висели и за сколько) и карточка агентства или застройщика.

#### Для чего подходит

- **Лиды для агентств и риелторов** — свежие объявления с телефонами по городу, сделке и виду недвижимости, каждый день.
- **Аналитика рынка** — цены за м² по районам, метро, году постройки и типу дома; объявления дешевле оценки самого
  Яндекса.
- **Мониторинг цен** — одни и те же поиски по расписанию, каждый раз только новое; история цены там, где она есть у сайта.
- **Исследование новостроек** — объявления с карточкой ЖК: стадия строительства, класс, этажи, квартиры, диапазон цен,
  застройщик и сколько домов он сдал.

#### Как запустить

1. Укажите **Город** так, как Яндекс Недвижимость пишет его в адресе (`moskva`, `sankt-peterburg`, `kazan`), **Сделку** и
   **Вид недвижимости** — или вставьте **Ссылки на поиск или объявления** с realty.yandex.ru.
2. Задайте **Объявлений за запуск, не больше**.
3. Запустите — в датасете появится строка на каждое объявление; **Телефоны** включены по умолчанию.
4. Для запуска по расписанию включите **Только новые объявления**; для новостроек — **Карточка ЖК**; для объявлений, у
   которых менялась цена, — **История цены**; для просмотров, других объявлений дома и карточки агентства — **Подробно со
   страницы объявления**.

#### Пример входа

```json
{
  "city": "moskva",
  "deal": "buy",
  "category": "apartment",
  "max_items": 20
}
```

#### Пример результата

Объявление в новостройке из настоящего запуска (сокращено: описание и фото подрезаны, телефон заменён):

```json
{
  "id": "6988527579888155988",
  "url": "https://realty.yandex.ru/offer/6988527579888155988/",
  "deal": "SELL",
  "category": "APARTMENT",
  "price": 15802493,
  "currency": "RUR",
  "price_period": "WHOLE_LIFE",
  "price_per_m2": 429416,
  "price_trend": "INCREASED",
  "has_price_history": true,
  "predicted_price": null,
  "predicted_price_min": null,
  "predicted_price_max": null,
  "price_advice": null,
  "price_advice_diff": null,
  "area": 36.8,
  "living_area": 12.5,
  "kitchen_area": 12,
  "rooms": 1,
  "flat_type": "NEW_FLAT",
  "floor": 2,
  "floors_total": 17,
  "ceiling_height": 3.03,
  "renovation": "BEFORE_CLEAN",
  "new_building": true,
  "built_year": 2027,
  "building_type": null,
  "complex_name": "Переделкино Ближнее",
  "complex_id": "86069",
  "deal_status": "PRIMARY_SALE",
  "address": "Москва, НАО, район Внуково, микрорайон Переделкино Ближнее, 18-й квартал, к1",
  "region": "Москва и МО",
  "latitude": 55.645313,
  "longitude": 37.330276,
  "metro": [
    {"name": "Мичуринец", "minutes": 11, "transport": "ON_FOOT"},
    {"name": "Рассказовка", "minutes": 16, "transport": "ON_FOOT"}
  ],
  "description": "Продается однокомнатная квартира в 18 квартале города-парка «Переделкино Ближнее». Общая площадь квартиры - 36,8 кв. м…",
  "photos": [
    "https://avatars.mds.yandex.net/get-realty-offers/20074534/35ee5275-00f4-4167-a49e-ce4c4b908266/orig",
    "https://avatars.mds.yandex.net/get-realty-offers/15204576/bea667bd-d6a5-45d5-8928-19bde476a7d4/orig"
  ],
  "photos_count": 3,
  "created_at": "2025-09-04T12:04:13Z",
  "updated_at": "2026-11-09T16:45:27Z",
  "author_category": "DEVELOPER",
  "author_name": "Недвижимость от застройщика",
  "author_organization": "Абсолют Недвижимость",
  "author_has_whatsapp": false,
  "author_has_telegram": false,
  "trusted_owner": false,
  "cadastre_matched": false,
  "phones": ["+79160000000"],
  "price_history": [],
  "complex": {},
  "views": null,
  "house_offers": [],
  "author_card": {},
  "partner_url": "//realty.yandex.ru/offer/6988527579888155988",
  "source": "https://realty.yandex.ru/moskva/kupit/kvartira/",
  "position": 2,
  "status": "ok"
}
```

#### Что вы получите

Строка на объявление: `id`, `url`, `deal` (SELL, RENT), `category` (APARTMENT, ROOMS, HOUSE, LOT, COMMERCIAL, GARAGE),
`price`, `currency`, `price_period`, `price_per_m2`, `price_trend`, оценка цены Яндексом — `predicted_price`,
`predicted_price_min`, `predicted_price_max`, `price_advice` (LOW — ниже оценки, на сайте «Хорошая цена») и
`price_advice_diff` (на сколько), `area`, `living_area`, `kitchen_area`, `rooms`, `flat_type`, `floor`, `floors_total`,
`ceiling_height`, `renovation`, `new_building`, `built_year`, `building_type`, `complex_name`, `complex_id`,
`deal_status`, `address`, `region`, `latitude`, `longitude`, `metro` (название, минуты, пешком или транспортом),
`description`, `photos` (полный размер), `photos_count`, `created_at`, `updated_at`, `author_category` (OWNER, AGENT,
PRIVATE_AGENT, AGENCY, DEVELOPER), `author_name`, `author_organization`, `author_has_whatsapp`, `author_has_telegram`,
`trusted_owner` и `cadastre_matched` (отметки сайта «проверенный собственник»), `phones`, `partner_url`, `source`,
`position` в выдаче и `status`.

С **Историей цены** — `price_history` (дата и цена; последняя запись — нынешняя цена). С **Карточкой ЖК** — `complex`
(стадия, класс, этажи, квартиры, диапазон цен, застройщик и сколько домов он сдал). С **Подробно со страницы
объявления** — `views`, `house_offers` (другие объявления того же дома, и снятые: даты, сколько висели, первая и последняя
цена) и `author_card` (агентство: год основания, на сайте с, адрес, часы, число объявлений; застройщик: сайт и телефоны).

#### Цены

| Событие | Цена | Что это |
|---|---|---|
| `offer` | $0,80 / 1000 | строка объявления |
| `phone` | $1,19 / 1000 | строка объявления с телефонами (**Телефоны**, включены по умолчанию) |
| `price-history` | $1,99 / 1000 | строка объявления с историей цены (**История цены**; только у объявлений, где она есть) |
| `complex` | $8,00 / 1000 | строка объявления с карточкой ЖК (**Карточка ЖК**; только у объявлений в ЖК) |
| `details` | $1,99 / 1000 | строка объявления с просмотрами, объявлениями дома или карточкой автора (**Подробно со страницы объявления**) |
| Запуск актора | $0,00004 | один раз за запуск |

Например, 500 объявлений с телефонами стоят $0,40 + $0,60 + $0,00004 за запуск. Ссылки на объявления, которые не
открылись или которых нет, — бесплатные строки со `status`. Актуальные цены — всегда на вкладке **Pricing**.

#### Полезно знать

- Телефоны — те номера, что Яндекс Недвижимость показывает по кнопке «Показать телефон»: подменные, они переадресуют
  автору. Со временем сайт может их сменить, поэтому звоните вскоре после запуска.
- Один поиск даёт не больше 25 листов — около 500 объявлений: дальше сайт не листает. Нужно больше — разбейте поиск
  фильтрами сайта (диапазоны цен, районы, комнаты) и вставьте несколько ссылок.
- Город — часть адреса сайта (`realty.yandex.ru/<город>/kupit/kvartira/`): скопируйте его оттуда.
- Страница объявления (**История цены**, **Карточка ЖК**, **Подробно со страницы объявления**) весит около 0,6 МБ, поэтому
  эти опции медленнее и оплачиваются отдельно; страница на все три — одна.
- Оценку цены и отметку «Хорошая цена» Яндекс даёт только части объявлений; у остальных эти поля пустые.
- Цены — в рублях, даты — в UTC.

# Actor input Schema

## `city` (type: `string`):

City as Yandex Realty writes it in its address: moskva, sankt-peterburg, kazan, novosibirsk (realty.yandex.ru/<city>/kupit/kvartira/).<br><br>Город так, как Яндекс Недвижимость пишет его в адресе: moskva, sankt-peterburg, kazan, novosibirsk (realty.yandex.ru/<город>/kupit/kvartira/).

## `deal` (type: `string`):

Buy or rent.<br><br>Купить или снять.

## `category` (type: `string`):

What to search for in the city.<br><br>Что искать в городе.

## `urls` (type: `array`):

Yandex Realty search pages with any filters you set on the site (price, rooms, area, metro…): realty.yandex.ru/moskva/kupit/kvartira/?priceMax=15000000, or single listings: realty.yandex.ru/offer/5513960850204306051/. One search gives at most 25 pages, about 500 listings: that is how far Yandex Realty pages; narrow it with filters for more.<br><br>Страницы поиска Яндекс Недвижимости с любыми фильтрами, выставленными на сайте (цена, комнаты, площадь, метро…): realty.yandex.ru/moskva/kupit/kvartira/?priceMax=15000000, или отдельные объявления: realty.yandex.ru/offer/5513960850204306051/. Один поиск даёт не больше 25 листов, около 500 объявлений: дальше сайт не листает; нужно больше — сузьте поиск фильтрами.

## `max_items` (type: `integer`):

The run stops collecting at this number, across the city and all links.<br><br>На этом числе запуск останавливается — по городу и всем ссылкам вместе.

## `phones` (type: `boolean`):

Author phone numbers as the site shows them on «Show phone»: Yandex relay numbers that forward to the author (the site may change them over time). They come with the listing, no extra pages. A separate charge per listing with a phone.<br><br>Телефоны автора — те, что сайт показывает по кнопке «Показать телефон»: подменные номера Яндекса, они переадресуют автору (со временем сайт может их сменить). Приходят вместе с объявлением, без лишних страниц. Отдельная плата за объявление с телефоном.

## `price_history` (type: `boolean`):

Also collect how the price changed (dates and prices) for listings the site marks as having a history: one more page per such listing, about 650 KB. A separate charge per listing with a history.<br><br>Ещё и как менялась цена (даты и суммы) у объявлений, где сайт отмечает историю: ещё одна страница на такое объявление, около 650 КБ. Отдельная плата за объявление с историей.

## `complex_details` (type: `boolean`):

For listings in a residential complex: the complex card — construction state, class, floors, apartments, price range and the developer with how many houses it has finished. One more page per such listing (shared with the price history). A separate charge per listing with a complex.<br><br>У объявлений в жилом комплексе — карточка ЖК: стадия строительства, класс, этажи, квартиры, диапазон цен и застройщик со счётом сданных домов. Ещё одна страница на такое объявление (та же, что у истории цены). Отдельная плата за объявление с ЖК.

## `offer_details` (type: `boolean`):

For every listing: how many times it was viewed, other listings in the same building (closed ones too, with how long they were on sale and their first and last price) and the agency or developer card (founded, address, hours, number of listings; a developer's website and phones). One more page per listing, about 650 KB (shared with the price history and the complex card). A separate charge per listing with these details.<br><br>У каждого объявления: сколько раз его смотрели, другие объявления того же дома (и снятые — сколько висели, первая и последняя цена) и карточка агентства или застройщика (год основания, адрес, часы, число объявлений; у застройщика — сайт и телефоны). Ещё одна страница на объявление, около 650 КБ (та же, что у истории цены и карточки ЖК). Отдельная плата за объявление с этими данными.

## `new_only` (type: `boolean`):

Skip listings this history store has already delivered, and pay only for new ones.<br><br>Пропускать объявления, которые это хранилище истории уже отдавало, и платить только за новые.

## `sessions` (type: `integer`):

How many anonymous visitors work at the same time, each with its own IP. One search goes on one visitor.<br><br>Сколько анонимных посетителей работают одновременно, у каждого свой IP. Один поиск идёт на одном посетителе.

## `proxy` (type: `string`):

Optional. One per line: user:pass@host:port, Russian IPs. Without them the run uses its own Russian proxies.<br><br>Необязательно. По одному в строке: user:pass@host:port, российские IP. Без них запуск идёт через свои российские прокси.

## `history_store` (type: `string`):

Named key-value store that keeps sessions and delivered listings between runs.<br><br>Именованное key-value хранилище, где между запусками лежат сессии и отданные объявления.

## `output_language` (type: `string`):

Yandex Realty's own data stays as the site gives it.<br><br>Данные самой Яндекс Недвижимости остаются такими, как отдаёт сайт.

## Actor input object example

```json
{
  "city": "moskva",
  "deal": "buy",
  "category": "apartment",
  "urls": [],
  "max_items": 20,
  "phones": true,
  "price_history": false,
  "complex_details": false,
  "offer_details": false,
  "new_only": false,
  "sessions": 4,
  "history_store": "yandex-realty-history",
  "output_language": "en"
}
```

# Actor output Schema

## `results` (type: `string`):

One row per listing. Строка на объявление.

## `summary` (type: `string`):

OUTPUT record: how many rows were delivered. Запись OUTPUT: сколько строк отдано.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "city": "moskva",
    "max_items": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("theshark/yandex-realty-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "city": "moskva",
    "max_items": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("theshark/yandex-realty-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "city": "moskva",
  "max_items": 20
}' |
apify call theshark/yandex-realty-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,theshark/yandex-realty-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Zgdb8WHCVJiREhSBy/builds/OpIBtgIcF4dZSsOJ2/openapi.json
