# Avito New Listings Monitor · Новые объявления Авито (`theshark/avito-new-listings-monitor`) Actor

New Avito listings for your searches since the last run, newest first, to a dataset and Telegram. Run it on a schedule. Новые объявления Авито по вашим поискам с прошлого запуска — в таблицу и в Telegram. Запускайте по расписанию.

- **URL**: https://apify.com/theshark/avito-new-listings-monitor.md
- **Developed by:** [TheShark](https://apify.com/theshark) (community)
- **Categories:** E-commerce, Real estate, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.89 / 1,000 listing · объявление

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

## Avito New Listings Monitor · Новые объявления Авито

Watch **Avito.ru searches** and get only the listings that appeared since your last run, newest first. Run it on a schedule: each run
returns what is new, as dataset rows and, if you like, as messages in your **Telegram** chat. No Avito account needed.

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

**What you get about the seller:** name, profile link, type, rating and reviews, since when on Avito, listings count, badges, reply time, and the
address with coordinates for every seller. Texts and attributes come as the seller wrote them. **Phone numbers are not collected:** Avito shows
them only to logged-in users, and the Actor never logs in.

### Why this Actor

- **Only what is new.** The search goes newest first and stops where your previous runs' listings begin, so you do not pay for the same
  listings twice and a run with nothing new is short.
- **Telegram messages.** A message for each new listing: title, price, city and a link with a preview.
- **Any search.** Paste a category or search link with your filters, or type a query and a city.
- **Cards or full listings.** Cards (title, price, city, photo, link) are enough for most alerts. Turn on listing pages for the full text,
  attributes and seller type.

### How to use

1. Fill in **Avito links** (a category or a search with your filters), or **Search queries** with a **City for search queries**.
2. Set the **Listings limit per run**. The first run takes the newest listings up to it, later runs only what is new.
3. Leave **Open listing pages** off for cards, or turn it on for the full text, attributes and seller type.
4. Optional: fill in **Telegram bot token** and **Telegram chat ID** (see below).
5. Run it once, then put it on a schedule: in Apify Console open **Schedules**, create one and add this Actor (or a saved task with your
   input). Every 15 to 60 minutes is usually enough.

### Telegram in three steps

1. In Telegram, open `@BotFather`, send `/newbot` and copy the token it gives you into **Telegram bot token**.
2. Open your new bot and send it any message: bots cannot start a chat themselves.
3. Find the chat ID: open `https://api.telegram.org/bot<your token>/getUpdates` in a browser and copy the number after `"chat":{"id":`.
   Put it into **Telegram chat ID**. For a channel, add the bot as an admin and use `@channelname`.

A run sends at most 20 messages. If there are more new listings, for example on the first run, the last message says how many more are in
the dataset.

A message looks like this:

```
Велосипед Trek Marlin 7, 2023
35 490 ₽ · Москва
https://www.avito.ru/moskva/velosipedy/velosiped_trek_marlin_7_8000000000
```

Avito's own data stays in Russian, as on the site.

### Price drops instead of new listings

Want to know when something gets cheaper? Turn off **Only new listings** and turn on **Price drops instead of new listings**. Each run then
compares the prices of all listings in your searches with the previous run. Rows get `price_status` (`new`, `same`, `cheaper`, `pricier`),
`previous_price`, `price_change` and `price_history`, and Telegram gets a message only for listings that got cheaper:

```
Велосипед Trek Marlin 7, 2023
32 000 ₽ · Москва
was 35 490 ₽, -9.8 %
https://www.avito.ru/moskva/velosipedy/velosiped_trek_marlin_7_8000000000
```

Set the **Listings limit per run** to cover your whole search: a listing that is not read cannot be compared. Only price changes are kept in
the history store, and listings not seen for 90 days are dropped, so the store stays small.

### Input example

```json
{
  "urls": ["https://www.avito.ru/moskva/velosipedy"],
  "max_items": 50,
  "open_items": false,
  "new_only": true,
  "telegram_bot_token": "123456789:your-bot-token",
  "telegram_chat_id": "123456789"
}
```

### Output

The same rows as in a regular Avito scrape: `id`, `url`, `title`, `price`, `price_text`, `city`, `published_at`, `image_urls`, `position`
and `source`, and with listing pages also `description`, `parameters`, `views_total` and `seller_type`. A run with nothing new has no rows.

### What you pay for

Pay per event, only for rows with data, plus a small fee per run:

- **`search-result`** — a search result card: **$3.29 per 1,000**.
- **`listing`** — a listing with its page opened: **$4.89 per 1,000**.
- **Actor start** — **$0.008** per run (Apify counts one more start for each GB of memory above 1 GB).

For example, a monitor every 15 minutes is 96 runs a day: $0.77 for the starts, plus the new listings it finds. Every hour it is $0.19 a
day. Set a spending limit on your run and the Actor stops before going over it.

### Good to know

- **The first run** takes the newest listings up to your limit. That is your starting point: later runs return only what is newer.
- **Give each monitor its own history store** if they watch different searches. Runs with one store wait for each other.
- **A link sorted by price** keeps its sort, so new listings can be anywhere in it: the Actor then reads pages while they still give new
  listings. For a monitor, use a link without a sort or sorted by date.
- **A run may stop early** if Avito blocks too many requests. What was collected stays in the dataset, and the next run picks up the rest.
- A run returns **at most 5,000 listings**.

### What is not collected

Phone numbers (Avito shows them only after login), the full VIN (Avito masks it for everyone), Autoteka reports, seller avatars. Photos are
links, the Actor does not copy them.

The Actor reads public pages only, without logging in. You are responsible for how you use the data, including under the laws that apply to you.

***

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

Следит за **поисками на Avito.ru** и отдаёт только объявления, которые появились с прошлого запуска, сначала новые. Запускайте по
расписанию: каждый запуск отдаёт новое — строками датасета и, если хотите, сообщениями в ваш чат **Telegram**. Аккаунт Авито не нужен.

**О продавце:** имя, ссылка на профиль, тип, рейтинг и отзывы, с какого времени на Авито, сколько объявлений, значки, время ответа, у всех —
адрес с координатами. Тексты и характеристики — как написал продавец. **Телефоны не собираются:** Авито показывает их только после входа в
аккаунт, а актор в аккаунт не входит.

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

- **Только новое.** Выдача идёт по дате и останавливается там, где начинаются объявления прошлых запусков: за одно объявление дважды не
  платите, а запуск без новых короткий.
- **Сообщения в Telegram.** О каждом новом объявлении: заголовок, цена, город и ссылка с превью.
- **Любой поиск.** Вставьте ссылку на раздел или поиск с вашими фильтрами или напишите запрос и город.
- **Карточки или полные объявления.** Для большинства уведомлений хватает карточек (заголовок, цена, город, фото, ссылка). Включите
  страницы объявлений, чтобы получить полный текст, характеристики и тип продавца.

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

1. Заполните **Ссылки Авито** (раздел или поиск с вашими фильтрами) или **Поисковые запросы** и **Город для запросов**.
2. Задайте **Объявлений за запуск**. Первый запуск берёт самые новые до этого предела, следующие — только новое.
3. Оставьте **Открывать объявления** выключенным для карточек или включите для полного текста, характеристик и типа продавца.
4. Необязательно: заполните **Токен бота Telegram** и **ID чата Telegram** (ниже — как).
5. Запустите один раз, потом поставьте по расписанию: в Apify Console откройте **Schedules**, создайте расписание и добавьте в него этот
   актор (или сохранённую задачу с вашим входом). Обычно хватает раза в 15–60 минут.

#### Telegram за три шага

1. В Telegram откройте `@BotFather`, отправьте `/newbot` и скопируйте токен, который он даст, в **Токен бота Telegram**.
2. Откройте нового бота и напишите ему что угодно: бот не может начать чат первым.
3. Узнайте ID чата: откройте в браузере `https://api.telegram.org/bot<ваш токен>/getUpdates` и скопируйте число после `"chat":{"id":`.
   Вставьте его в **ID чата Telegram**. Для канала добавьте бота администратором и укажите `@channelname`.

Запуск шлёт не больше 20 сообщений. Если новых объявлений больше, например в первый запуск, последнее сообщение скажет, сколько ещё в
датасете.

Сообщение выглядит так:

```
Велосипед Trek Marlin 7, 2023
35 490 ₽ · Москва
https://www.avito.ru/moskva/velosipedy/velosiped_trek_marlin_7_8000000000
```

Данные Авито остаются по-русски, как на сайте.

#### Снижение цен вместо новых

Хотите знать, когда что-то подешевеет? Выключите **Только новые** и включите **Снижение цен вместо новых**. Тогда каждый запуск
сравнивает цены всех объявлений ваших поисков с прошлым запуском. В строках — `price_status` (`new`, `same`, `cheaper`, `pricier`),
`previous_price`, `price_change` и `price_history`, а в Telegram приходит сообщение только о подешевевших:

```
Велосипед Trek Marlin 7, 2023
32 000 ₽ · Москва
was 35 490 ₽, -9.8 %
https://www.avito.ru/moskva/velosipedy/velosiped_trek_marlin_7_8000000000
```

Задайте **Объявлений за запуск** так, чтобы хватило на весь поиск: объявление, которое не прочитали, не с чем сравнить. В хранилище
истории лежат только изменения цен, а объявления, которых не видели 90 дней, удаляются, поэтому хранилище остаётся маленьким.

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

```json
{
  "urls": ["https://www.avito.ru/moskva/velosipedy"],
  "max_items": 50,
  "open_items": false,
  "new_only": true,
  "telegram_bot_token": "123456789:your-bot-token",
  "telegram_chat_id": "123456789"
}
```

#### Результат

Те же строки, что у обычного парсера Авито: `id`, `url`, `title`, `price`, `price_text`, `city`, `published_at`, `image_urls`, `position`
и `source`, а со страницами объявлений ещё `description`, `parameters`, `views_total` и `seller_type`. Запуск без новых объявлений строк не
даёт.

#### За что платите

Оплата по событиям, только за строки с данными, и небольшая плата за запуск:

- **`search-result`** — карточка выдачи: **$3,29 / 1000**.
- **`listing`** — объявление со страницей: **$4,89 / 1000**.
- **Старт актора** — **$0,008** за запуск (Apify считает ещё один старт за каждый ГБ памяти сверх первого).

Например, монитор раз в 15 минут — это 96 запусков в сутки: $0,77 за старты плюс найденные новые объявления. Раз в час — $0,19 в сутки.
Задайте предел трат запуска, и актор остановится до него.

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

- **Первый запуск** берёт самые новые объявления до вашего предела. Это точка отсчёта: следующие запуски отдают только то, что новее.
- **У каждого монитора — своё хранилище истории**, если они смотрят разные поиски. Запуски с одним хранилищем ждут друг друга.
- **Ссылка с сортировкой по цене** её сохраняет, и новые объявления могут быть где угодно: тогда актор читает страницы, пока на них есть
  новые. Для монитора берите ссылку без сортировки или с сортировкой по дате.
- **Запуск может остановиться раньше**, если Авито блокирует слишком много запросов. Собранное остаётся в датасете, остальное возьмёт
  следующий запуск.
- Запуск отдаёт **не больше 5000 объявлений**.

#### Что не собирается

Телефоны (Авито показывает их только после входа), полный VIN (Авито маскирует его для всех), отчёты Автотеки, аватары продавцов. Фото —
ссылками, актор их не копирует.

Актор читает только открытые страницы, без входа в аккаунт. За то, как вы используете данные, в том числе по законам вашей страны, отвечаете
вы.

# Actor input Schema

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

Searches to watch: a category or search link from Avito with your filters, for example a category in a city. Set links, queries, or both.<br><br>Какие поиски смотреть: ссылка на раздел или поиск Авито с вашими фильтрами, например раздел в городе. Нужны ссылки, запросы или и то и другое.

## `queries` (type: `array`):

Text searches, for example «iphone 15». They run in the city below.<br><br>Текстовый поиск, например «iphone 15». Ищет в городе ниже.

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

The city as it appears in Avito links: moskva, kazan, sankt-peterburg. rossiya searches the whole country.<br><br>Город, как в ссылках Авито: moskva, kazan, sankt-peterburg. rossiya — вся страна.

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

The first run takes the newest listings up to this limit, later runs only what is new. It is shared evenly between your links and queries.<br><br>Первый запуск берёт самые новые объявления до этого предела, следующие — только новое. Делится поровну между ссылками и запросами.

## `open_items` (type: `boolean`):

Off: search result cards (title, price, city, photo, link), faster and cheaper. On: full text, attributes, views and the seller in full from each listing page.<br><br>Выключено: карточки выдачи (заголовок, цена, город, фото, ссылка) — быстрее и дешевле. Включено: полный текст, характеристики, просмотры и продавец полностью со страницы каждого объявления.

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

Keep it on: that is what the monitor is for. The search goes newest first and stops where your previous runs' listings begin. Off: every run returns the newest listings again.<br><br>Не выключайте: для этого монитор и нужен. Выдача идёт по дате и останавливается там, где начинаются объявления прошлых запусков. Выключено: каждый запуск снова отдаёт самые новые.

## `track_prices` (type: `boolean`):

Follow the prices of all listings in your searches: rows get price_status, previous_price and price_history, and Telegram gets a message when a listing gets cheaper. Turn off Only new listings for it.<br><br>Следить за ценами всех объявлений ваших поисков: в строках — price_status, previous_price и price_history, а в Telegram — сообщение, когда объявление подешевело. Для этого выключите «Только новые».

## `telegram_bot_token` (type: `string`):

Optional. A message for each new listing goes to your chat. Create a bot with BotFather in Telegram and paste its token here.<br><br>Необязательно. Сообщение о каждом новом объявлении придёт в ваш чат. Создайте бота у BotFather в Telegram и вставьте сюда его токен.

## `telegram_chat_id` (type: `string`):

Where the bot writes: your chat with the bot, a group or a channel. A number such as 123456789 or -1001234567890, or @channelname. Send the bot a message first: bots cannot start a chat.<br><br>Куда пишет бот: ваш чат с ботом, группа или канал. Число вроде 123456789 или -1001234567890, или @channelname. Сначала напишите боту сами: бот не может начать чат первым.

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

How many anonymous visitors work at the same time, each with its own IP. More sessions need more browsers: about 2 sessions per browser.<br><br>Сколько анонимных посетителей работают одновременно, у каждого свой IP. Больше сессий — больше браузеров: примерно 2 сессии на браузер.

## `browsers` (type: `integer`):

Browser tabs that get new sessions at the same time. Each needs 256 MB of memory: 1 GB of run memory fits 2.<br><br>Вкладки браузера, которые одновременно добывают новые сессии. Каждой нужно 256 МБ памяти: в 1 ГБ запуска помещаются 2.

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

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

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

Named key-value store that remembers which listings you already got. Give each monitor with different searches its own store: runs with one store wait for each other.<br><br>Именованное хранилище: оно помнит, какие объявления вы уже получили. У каждого монитора с другими поисками — своё: запуски с одним хранилищем ждут друг друга.

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

Avito's own data stays as the site gives it.<br><br>Данные Авито остаются как на сайте.

## Actor input object example

```json
{
  "urls": [
    "https://www.avito.ru/moskva/velosipedy"
  ],
  "queries": [],
  "city": "rossiya",
  "max_items": 20,
  "open_items": false,
  "new_only": true,
  "track_prices": false,
  "sessions": 4,
  "browsers": 2,
  "history_store": "avito-monitor-history",
  "output_language": "en"
}
```

# Actor output Schema

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

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

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

OUTPUT record: how many rows were delivered and, if the run stopped early, why. Запись 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 = {
    "urls": [
        "https://www.avito.ru/moskva/velosipedy"
    ],
    "max_items": 20,
    "open_items": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("theshark/avito-new-listings-monitor").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 = {
    "urls": ["https://www.avito.ru/moskva/velosipedy"],
    "max_items": 20,
    "open_items": False,
}

# Run the Actor and wait for it to finish
run = client.actor("theshark/avito-new-listings-monitor").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 '{
  "urls": [
    "https://www.avito.ru/moskva/velosipedy"
  ],
  "max_items": 20,
  "open_items": false
}' |
apify call theshark/avito-new-listings-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,theshark/avito-new-listings-monitor"
        }
    }
}
```

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/XTNA5BEyQEFcDKlU6/builds/eaIXhklmqQvKdXLdd/openapi.json
