# Avito Auto Scraper · Парсер авто Авито (`theshark/avito-auto-scraper`) Actor

Avito.ru cars, new and used: brand, model, year, mileage, engine, gearbox, owners, VIN and Avito's market price as columns, with the seller. Автомобили Авито, новые и с пробегом: марка, модель, год, пробег, двигатель, коробка, владельцы, VIN, оценка Авито — колонками, с продавцом.

- **URL**: https://apify.com/theshark/avito-auto-scraper.md
- **Developed by:** [TheShark](https://apify.com/theshark) (community)
- **Categories:** E-commerce, 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 Auto Scraper · Парсер авто Авито

Collect **car listings from Avito.ru**, Russia's largest classifieds site: new and used cars from search results and from listing pages.
Brand, model, year, mileage, engine, gearbox, body, owners, VIN as Avito shows it and **Avito's own market estimate** come as **separate
columns**, ready for a spreadsheet, not buried in a list of attributes. 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

- **Car specs as columns.** `brand`, `model`, `generation`, `year`, `mileage`, `new_car`, `damaged`, `engine_volume`, `engine_power`, `fuel`,
  `transmission`, `drive`, `body`, `color`, `steering`, `owners`, `pts`, `modification`, `trim` and `vin`: filter and sort right away.
- **Avito's own estimate.** Avito shows a market price for most used cars: you get it in `market_price` with its range (`market_price_low`,
  `market_price_high`), Avito's verdict (`market_verdict`: below, market or above) and how far the asking price is from the estimate
  (`price_vs_market_percent`).
- **Cheap cards already know the basics.** Avito builds the card title and the specs line itself («Renault Duster 2.0 AT, 2014, 54 881 км»),
  so even without opening listing pages you get brand, model, year, mileage, engine, gearbox, body, drive and fuel.
- **The seller too.** `seller_name`, `seller_url`, type, rating, since when on Avito, how many listings, badges and reply time: dealers and
  private sellers apart.
- **New and used**, any brand, any city: your Avito filters stay in the link.
- **Only new listings and Telegram.** Run it on a schedule and get just what appeared since your last run, also as messages in your chat.
- **Price tracking.** See which cars got cheaper or pricier since your last run, with their price history.
- **Proxies included.** You can use your own if you prefer.

### What you can use it for

- **Market prices** of a model by year, mileage, engine and gearbox, in a city or across Russia.
- **Underpriced cars** — sort by `price_vs_market_percent` and look at the bottom, or filter `market_verdict` = `below`.
- **Dealer stock** — what dealers in a city offer, with `seller_name` and `seller_type`.
- **New listings alerts** — fresh cars matching your filters, in Telegram.
- **Price drops** — cars that got cheaper since yesterday.

### How to use

1. Open Avito, choose cars (new or used) and your filters (city, brand, model, year, price), and copy the link into **Avito links**. Or type
   **Search queries** with a **City for search queries**.
2. Set the **Listings limit**. It is shared evenly between your links and queries.
3. Choose: **Open listing pages** gives every attribute (generation, colour, owners, title document, trim, VIN as Avito shows it, Avito's
   market estimate, full text, views, the seller in full), without it you get search result cards only, faster and cheaper.
4. Turn on **Only new listings** if you run it regularly, or **Track prices** to compare prices with your previous runs (not both).
5. Optional: fill in **Telegram bot token** and **Telegram chat ID** to get new or cheaper cars in Telegram.

### Input example

```json
{
  "urls": ["https://www.avito.ru/moskva/avtomobili/s_probegom-ASgBAgICAUSGFMjmAQ"],
  "max_items": 100,
  "open_items": true,
  "new_only": false,
  "track_prices": false
}
```

The city is in the link: `moskva`, `sankt-peterburg`, `kazan`. Any filters you set on Avito stay in the link and work here.

### Output example

A row from a real run, a used car with its page opened. The number, link, address and seller are changed, the text is shortened.

```json
{
  "id": 8000000000,
  "url": "https://www.avito.ru/moskva/avtomobili/renault_duster_2.0_at_2014_61_200_km_8000000000",
  "status": "ok",
  "page_loaded": true,
  "source": "https://www.avito.ru/moskva/avtomobili/s_probegom-ASgBAgICAUSGFMjmAQ",
  "position": 7,
  "title": "Renault Duster 2.0 AT, 2014, 61 200 км",
  "description": "Один владелец, обслуживалась у дилера. Торг у капота.",
  "price": 1190000,
  "price_text": "1 190 000 ₽",
  "category": "Автомобили",
  "category_id": 9,
  "published_at": "2026-11-10T06:02:11+00:00",
  "city": "Москва",
  "address": "Москва, Ленинградский проспект, 1",
  "latitude": 55.79,
  "longitude": 37.53,
  "seller_type": "company",
  "seller_rating": 4.8,
  "seller_reviews": 215,
  "seller_name": "Автосалон-пример",
  "seller_url": "https://www.avito.ru/brands/example",
  "seller_since": "2017-08",
  "seller_listings": 120,
  "seller_verified": true,
  "seller_badges": ["Надёжный продавец"],
  "seller_reply_time": "отвечает около 10 минут",
  "image_urls": ["https://00.img.avito.st/image/1/example"],
  "images_count": 24,
  "parameters": {"Год выпуска": "2014", "Пробег": "61 200 км", "Коробка передач": "Автомат", "Привод": "Полный",
                 "VIN или номер кузова": "XTA2*************"},
  "views_today": 60,
  "brand": "Renault",
  "model": "Duster",
  "generation": "I (2010—2015)",
  "year": 2014,
  "mileage": 61200,
  "new_car": false,
  "damaged": false,
  "engine_volume": 2.0,
  "engine_power": 135,
  "fuel": "бензин",
  "transmission": "AT",
  "drive": "полный",
  "body": "внедорожник 5-дверный",
  "color": "чёрный",
  "steering": "левый",
  "owners": 1,
  "pts": "оригинал",
  "modification": "2.0 4WD AT (135 л.с.)",
  "trim": "Luxe Privilege",
  "vin": "XTA2*************",
  "market_price": 1012300,
  "market_price_low": 952000,
  "market_price_high": 1071000,
  "market_verdict": "above",
  "price_vs_market_percent": 17.6
}
```

Avito's own data stays in Russian, as on the site. Volumes are in litres, mileage in km, power in hp.

### What is in a row

| Column | From a card | From a listing page |
|---|---|---|
| `brand`, `model` | yes, approximate: the first word of the title and the rest up to the engine | yes, exact |
| `year`, `mileage`, `new_car`, `damaged`, `engine_volume`, `transmission` | yes, from the card title | yes |
| `engine_power`, `body`, `drive`, `fuel` | yes, from the specs line | yes, `body` in full («внедорожник 5-дверный») |
| `owners` | only the «1 владелец» badge | yes |
| `generation`, `color`, `steering`, `pts`, `modification`, `trim` | no | yes |
| `vin` | no | as Avito shows it: the first characters, the rest masked by Avito |
| `market_price`, `market_price_low`, `market_price_high`, `market_verdict`, `price_vs_market_percent` | no | yes, when Avito gives an estimate |
| `parameters` | no | every attribute |
| `title`, `price`, `price_text`, `city`, `published_at`, `url`, `image_urls`, `address`, `latitude`, `longitude` | yes | yes |
| `description` | the beginning | the full text |
| `seller_name`, `seller_url`, `seller_rating`, `seller_reviews` | yes | yes |
| `seller_type`, `seller_since`, `seller_listings`, `seller_verified`, `seller_badges`, `seller_reply_time` | no | yes |
| `views_today`, `views_total` | no | when Avito shows them: used cars usually have today's views, the total not always; new cars have none |
| `price_status`, `previous_price`, `price_change`, `price_change_percent`, `first_seen_at`, `price_history` | with Track prices | with Track prices |

Every column of the regular Avito scrape is here too, and the car columns stay empty in rows from other sections. Motorcycles, trucks and
boats get `year`, `mileage`, `engine_volume`, `engine_power`, `fuel`, `transmission`, `brand` and `model` from their listing pages.

**Avito's estimate is missing for new, damaged and rare cars**: Avito does not calculate it for them, so those columns stay empty.
`price_vs_market_percent` is positive when the asking price is above the estimate.

### What you pay for

Pay per event, and only for rows with data:

- **`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.004** per run (Apify counts one more start for each GB of memory above 1 GB).

For example, 1,000 cars with every attribute, VIN and Avito's estimate from their pages cost about $4.89, and 1,000 cards with brand, year,
mileage, engine and gearbox about $3.29. A closed listing or a link that did not open is a free row. If a listing page does not open, you get
its card and pay for a card. Set a spending limit on your run and the Actor stops before going over it.

### Good to know

- **More than 1,500 listings from one search are taken newest first.** In its default order Avito shows no more than 30 pages (1,500
  listings), sorted by date — up to 100 pages (5,000). A link with its own sort keeps it.
- **Only new listings go newest first** and stop at the first page with a listing your previous runs returned.
- **Telegram** gets a message for each new listing with Only new listings, or for each cheaper one with Track prices, at most 20 per run.
- A run returns **at most 5,000 listings**.
- **Other cities in results.** Avito mixes in cars from nearby cities and dealers with delivery. `city` shows the listing's real city.
- **A run may stop early** if Avito blocks too many requests. What was collected stays in the dataset, and the reason is in the run status and in
  the `OUTPUT` record.

### What is not collected

Phone numbers (Avito shows them only after login), the full VIN (Avito masks it for everyone), Autoteka reports and the mileage history behind
them, 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**, крупнейшей доски объявлений России: новые и с пробегом, из выдачи и со страниц
объявлений. Марка, модель, год, пробег, двигатель, коробка, кузов, владельцы, VIN как показывает Авито и **оценка рынка самого Авито** идут
**отдельными колонками**, сразу для таблицы, а не спрятаны в списке характеристик. Аккаунт Авито не нужен.

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

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

- **Характеристики машины — колонками.** `brand`, `model`, `generation`, `year`, `mileage`, `new_car`, `damaged`, `engine_volume`,
  `engine_power`, `fuel`, `transmission`, `drive`, `body`, `color`, `steering`, `owners`, `pts`, `modification`, `trim` и `vin`: фильтруйте и
  сортируйте сразу.
- **Оценка самого Авито.** У большинства машин с пробегом Авито показывает рыночную цену: она в `market_price`, вилка — в `market_price_low` и
  `market_price_high`, вердикт Авито — в `market_verdict` (below, market или above), а насколько цена объявления отличается от оценки — в
  `price_vs_market_percent`.
- **Дешёвые карточки уже знают главное.** Заголовок и строку характеристик карточки Авито собирает сам («Renault Duster 2.0 AT, 2014, 54 881 км»),
  поэтому даже без страниц объявлений есть марка, модель, год, пробег, двигатель, коробка, кузов, привод и топливо.
- **И продавец.** `seller_name`, `seller_url`, тип, рейтинг, с какого времени на Авито, сколько объявлений, значки, время ответа: автосалоны и
  частники отдельно.
- **Новые и с пробегом**, любая марка, любой город: ваши фильтры Авито остаются в ссылке.
- **Только новые и Telegram.** Запускайте по расписанию и получайте только то, что появилось с прошлого запуска, и сообщениями в чат.
- **Слежение за ценами.** Что подешевело или подорожало с прошлого запуска, с историей цен.
- **Прокси уже есть.** Можно и свои.

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

- **Цены рынка** на модель по году, пробегу, двигателю и коробке, в городе или по всей России.
- **Машины ниже рынка** — отсортируйте по `price_vs_market_percent` и смотрите низ, или отберите `market_verdict` = `below`.
- **Склад автосалонов** — что предлагают дилеры города, с `seller_name` и `seller_type`.
- **Уведомления о новых** — свежие машины по вашим фильтрам, в Telegram.
- **Снижение цен** — что подешевело со вчера.

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

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

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

```json
{
  "urls": ["https://www.avito.ru/moskva/avtomobili/s_probegom-ASgBAgICAUSGFMjmAQ"],
  "max_items": 100,
  "open_items": true,
  "new_only": false,
  "track_prices": false
}
```

Город — в ссылке: `moskva`, `sankt-peterburg`, `kazan`. Все фильтры, что вы выбрали на Авито, остаются в ссылке и работают здесь.

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

Строка настоящего запуска: машина с пробегом, со страницей объявления. Номер, ссылка, адрес и продавец изменены, текст сокращён.

```json
{
  "id": 8000000000,
  "url": "https://www.avito.ru/moskva/avtomobili/renault_duster_2.0_at_2014_61_200_km_8000000000",
  "status": "ok",
  "page_loaded": true,
  "source": "https://www.avito.ru/moskva/avtomobili/s_probegom-ASgBAgICAUSGFMjmAQ",
  "position": 7,
  "title": "Renault Duster 2.0 AT, 2014, 61 200 км",
  "description": "Один владелец, обслуживалась у дилера. Торг у капота.",
  "price": 1190000,
  "price_text": "1 190 000 ₽",
  "category": "Автомобили",
  "category_id": 9,
  "published_at": "2026-11-10T06:02:11+00:00",
  "city": "Москва",
  "address": "Москва, Ленинградский проспект, 1",
  "latitude": 55.79,
  "longitude": 37.53,
  "seller_type": "company",
  "seller_rating": 4.8,
  "seller_reviews": 215,
  "seller_name": "Автосалон-пример",
  "seller_url": "https://www.avito.ru/brands/example",
  "seller_since": "2017-08",
  "seller_listings": 120,
  "seller_verified": true,
  "seller_badges": ["Надёжный продавец"],
  "seller_reply_time": "отвечает около 10 минут",
  "image_urls": ["https://00.img.avito.st/image/1/example"],
  "images_count": 24,
  "parameters": {"Год выпуска": "2014", "Пробег": "61 200 км", "Коробка передач": "Автомат", "Привод": "Полный",
                 "VIN или номер кузова": "XTA2*************"},
  "views_today": 60,
  "brand": "Renault",
  "model": "Duster",
  "generation": "I (2010—2015)",
  "year": 2014,
  "mileage": 61200,
  "new_car": false,
  "damaged": false,
  "engine_volume": 2.0,
  "engine_power": 135,
  "fuel": "бензин",
  "transmission": "AT",
  "drive": "полный",
  "body": "внедорожник 5-дверный",
  "color": "чёрный",
  "steering": "левый",
  "owners": 1,
  "pts": "оригинал",
  "modification": "2.0 4WD AT (135 л.с.)",
  "trim": "Luxe Privilege",
  "vin": "XTA2*************",
  "market_price": 1012300,
  "market_price_low": 952000,
  "market_price_high": 1071000,
  "market_verdict": "above",
  "price_vs_market_percent": 17.6
}
```

Данные Авито остаются по-русски, как на сайте. Объём — в литрах, пробег — в км, мощность — в л.с.

#### Что в строке

| Колонка | С карточки | Со страницы объявления |
|---|---|---|
| `brand`, `model` | да, приближённо: первое слово заголовка и остальное до двигателя | да, точно |
| `year`, `mileage`, `new_car`, `damaged`, `engine_volume`, `transmission` | да, из заголовка карточки | да |
| `engine_power`, `body`, `drive`, `fuel` | да, из строки характеристик | да, `body` полностью («внедорожник 5-дверный») |
| `owners` | только бейдж «1 владелец» | да |
| `generation`, `color`, `steering`, `pts`, `modification`, `trim` | нет | да |
| `vin` | нет | как показывает Авито: первые знаки, остальное Авито маскирует |
| `market_price`, `market_price_low`, `market_price_high`, `market_verdict`, `price_vs_market_percent` | нет | да, когда Авито даёт оценку |
| `parameters` | нет | все характеристики |
| `title`, `price`, `price_text`, `city`, `published_at`, `url`, `image_urls`, `address`, `latitude`, `longitude` | да | да |
| `description` | начало | весь текст |
| `seller_name`, `seller_url`, `seller_rating`, `seller_reviews` | да | да |
| `seller_type`, `seller_since`, `seller_listings`, `seller_verified`, `seller_badges`, `seller_reply_time` | нет | да |
| `views_today`, `views_total` | нет | когда Авито их показывает: у машин с пробегом обычно есть просмотры за сегодня, общее число — не всегда; у новых просмотров нет |
| `price_status`, `previous_price`, `price_change`, `price_change_percent`, `first_seen_at`, `price_history` | со слежением за ценами | со слежением за ценами |

Все колонки обычного парсера Авито тоже здесь, а в строках других разделов колонки машины пусты. У мотоциклов, грузовиков и водного
транспорта со страниц объявлений заполняются `year`, `mileage`, `engine_volume`, `engine_power`, `fuel`, `transmission`, `brand` и `model`.

**Оценки Авито нет у новых, битых и редких машин**: Авито её для них не считает, и эти колонки пусты. `price_vs_market_percent` положительная,
когда цена объявления выше оценки.

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

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

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

Например, 1000 машин со всеми характеристиками, VIN и оценкой Авито со страниц стоят около $4,89, а 1000 карточек с маркой, годом, пробегом,
двигателем и коробкой — около $3,29. Закрытое объявление или ссылка, которая не открылась, — бесплатная строка. Если страница объявления не
открылась, вы получаете его карточку и платите за карточку. Задайте предел трат запуска, и актор остановится до него.

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

- **Больше 1500 объявлений с одной выдачи берутся по дате.** В обычном порядке Авито показывает не больше 30 страниц (1500 объявлений), по
  дате — до 100 страниц (5000). Ссылка со своей сортировкой её сохраняет.
- **«Только новые» идут по дате** и останавливаются на первой странице с объявлением, которое отдали прошлые запуски.
- **В Telegram** приходит сообщение о каждом новом объявлении с «Только новые» или о каждом подешевевшем со «Следить за ценами», не больше
  20 за запуск.
- Запуск отдаёт **не больше 5000 объявлений**.
- **Другие города в выдаче.** Авито подмешивает машины из соседних городов и от дилеров с доставкой. В `city` — настоящий город объявления.
- **Запуск может остановиться раньше**, если Авито блокирует слишком много запросов. Собранное остаётся в датасете, а причина — в статусе
  запуска и в записи `OUTPUT`.

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

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

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

# Actor input Schema

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

Car search links from Avito with your filters: used or new, brand, model, year, price, in a city. Single listing links work too. Set links, queries, or both.<br><br>Ссылки на поиск автомобилей Авито с вашими фильтрами: с пробегом или новые, марка, модель, год, цена, в городе. Ссылки на отдельные объявления тоже подходят. Нужны ссылки, запросы или и то и другое.

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

Text searches in Russian, as you would type them on Avito. They run in the city below. A link with your filters is more precise.<br><br>Текстовый поиск по-русски, как на Авито. Ищет в городе ниже. Ссылка с фильтрами точнее.

## `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 most listings one run returns. It is shared evenly between your links and queries. Above 1500 from one search, it is taken newest first: in its default order Avito shows no more than 30 pages.<br><br>Больше этого запуск не отдаст. Делится поровну между ссылками и запросами. Больше 1500 с одной выдачи берутся по дате: в обычном порядке Авито показывает не больше 30 страниц.

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

On: every attribute from each listing page: generation, colour, owners, title document, trim, VIN as Avito shows it, Avito's market price, full text, views and the seller. Off: cards only, faster and cheaper: brand, model, year, mileage, engine, gearbox, body, drive and fuel come from the card.<br><br>Включено: все характеристики со страницы каждого объявления — поколение, цвет, владельцы, ПТС, комплектация, VIN как показывает Авито, оценка Авито, полный текст, просмотры и продавец. Выключено: только карточки выдачи, быстрее и дешевле: марка, модель, год, пробег, двигатель, коробка, кузов, привод и топливо — из карточки.

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

Skip listings returned by your previous runs (they are remembered in the history store). The search goes newest first and stops where your previous runs' listings begin.<br><br>Пропускать объявления, которые отдали прошлые запуски (они запоминаются в хранилище истории). Выдача идёт по дате и останавливается там, где начинаются объявления прошлых запусков.

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

Compare each listing's price with your previous runs: price_status (new, same, cheaper, pricier), previous_price, price_change and price_history. Run it on a schedule with the same links. Not together with Only new listings.<br><br>Сравнивать цену каждого объявления с прошлыми запусками: price_status (new, same, cheaper, pricier), previous_price, price_change и price_history. Запускайте по расписанию с теми же ссылками. Не вместе с «Только новые».

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

Optional, with Only new listings or Track prices: a message for each new or cheaper 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 keeps sessions, the listings you already got and the prices between runs. 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/avtomobili/s_probegom-ASgBAgICAUSGFMjmAQ"
  ],
  "queries": [],
  "city": "rossiya",
  "max_items": 20,
  "open_items": false,
  "new_only": false,
  "track_prices": false,
  "sessions": 4,
  "browsers": 2,
  "history_store": "avito-auto-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/avtomobili/s_probegom-ASgBAgICAUSGFMjmAQ"
    ],
    "max_items": 20,
    "open_items": false
};

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,theshark/avito-auto-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/u6sZoVod1Kn7BiUkn/builds/yU6SAovjfH6gkSMtT/openapi.json
