# Avito Scraper · Парсер объявлений Авито (`theshark/avito-scraper`) Actor

Avito listings from search results and listing pages: title, price, city, text, attributes, photos, address, seller name and profile. Объявления Авито из выдачи и со страниц: заголовок, цена, город, текст, характеристики, фото, адрес, имя и профиль продавца.

- **URL**: https://apify.com/theshark/avito-scraper.md
- **Developed by:** [TheShark](https://apify.com/theshark) (community)
- **Categories:** E-commerce, Real estate, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 0 monthly users, 96.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 Scraper · Парсер объявлений Авито

Collect **listings from Avito.ru**, Russia's largest classifieds site: from search results and from listing pages. You get the title,
price, city, full text, attributes, photo links, views, the address and the seller: name, profile link, rating, since when on Avito. 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

- **Search result cards and full listings, priced separately.** Need prices across a category? Take the cards. Need the text and attributes?
  Open the pages. Pay only for what you use.
- **Only new listings.** Run it on a schedule and get just what appeared since your last run, without paying for the rest again.
- **Price tracking.** Run the same links on a schedule and see which listings got cheaper or pricier since your last run, with their price
  history.
- **Links or plain words.** Paste any search or category link with your filters, or just type a query and a city.
- **Rows arrive as they are ready.** If a run stops early, what was collected stays in the dataset.
- **Proxies included.** You can use your own if you prefer.

### What you can use it for

- **Market prices** — what a product costs in a city, across sellers.
- **Monitoring** — new listings in a category or for a search, on a schedule.
- **Real estate and cars** — asking prices, attributes and locations of listings: rooms, area and floor, or brand, model, year, mileage and
  Avito's market price as columns.
- **Datasets for analysis** — clean rows with attributes instead of raw pages.

### How to use

1. Fill in **Avito links** (search results, a category or single listings), or **Search queries** with a **City for search queries**. At least
   one link or query is required.
2. Set the **Listings limit**. It is shared evenly between your links and queries.
3. Choose: **Open listing pages** gives full data, 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. Run it: rows appear in the dataset as they are ready. Use `position` to restore the order of the search results.

### Input example

```json
{
  "urls": ["https://www.avito.ru/moskva/telefony/mobilnye_telefony/apple"],
  "queries": ["велосипед trek"],
  "city": "moskva",
  "max_items": 100,
  "open_items": true,
  "new_only": false,
  "track_prices": false
}
```

The city is written as in Avito links: `moskva`, `sankt-peterburg`, `kazan`. `rossiya` searches the whole country.

### Output example

A row from a real run. The number, link, address and seller are changed, the text is shortened.

```json
{
  "id": 8000000000,
  "url": "https://www.avito.ru/moskva/telefony/iphone_15_plus_256_gb_2_sim_8000000000",
  "status": "ok",
  "page_loaded": true,
  "source": "https://www.avito.ru/moskva/telefony",
  "position": 3,
  "title": "iPhone 15 Plus, 256 ГБ, 2 SIM",
  "description": "iPhone 15 Plus, 256 ГБ, 2 SIM. Новый, гарантия. Звоните, отвечу на вопросы.",
  "price": 35490,
  "price_text": "35 490 ₽",
  "category": "Телефоны",
  "category_id": 84,
  "published_at": "2026-11-06T13:15:01+00:00",
  "city": "Москва",
  "district": "Соколиная Гора",
  "metro": "Шоссе Энтузиастов",
  "address": "Москва, ш. Энтузиастов, 1",
  "latitude": 55.75,
  "longitude": 37.75,
  "seller_type": "company",
  "seller_rating": 4.9,
  "seller_reviews": 1530,
  "seller_name": "Магазин-пример",
  "seller_url": "https://www.avito.ru/brands/example",
  "seller_since": "2017-08",
  "seller_listings": 120,
  "image_urls": ["https://00.img.avito.st/image/1/example"],
  "images_count": 5,
  "parameters": {"Состояние": "Новое", "Производитель": "Apple", "Встроенная память": "256 ГБ"},
  "views_total": 219,
  "views_today": 7
}
```

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

### What is in a row

| Field | With a card | With a listing page |
|---|---|---|
| `title`, `price`, `price_text`, `category`, `city`, `published_at`, `url` | yes | yes |
| `description` | the beginning | the full text |
| `image_urls` | yes | all photos |
| `seller_rating`, `seller_reviews`, `seller_name`, `seller_url` | if Avito shows them | yes |
| `seller_type`, `seller_since`, `seller_listings`, `seller_verified`, `seller_badges`, `seller_reply_time` | no | yes |
| `seller_closed_listings` | no | when Avito shows it |
| `parameters`, `district`, `metro`, `views_total`, `views_today` | no | yes |
| `address`, `latitude`, `longitude` | yes | yes |
| `price_status`, `previous_price`, `price_change`, `price_change_percent`, `first_seen_at`, `price_history` | with Track prices | with Track prices |
| Real estate: `deal_type`, `rent_term`, `rooms`, `area_total`, `land_area`, `floor`, `floors_total`, `price_per_m2` | from the card title | yes |
| Real estate: `new_building`, `residential_complex`, `median_price_per_m2`, `price_vs_median_percent` | yes | yes |
| Real estate: `area_living`, `area_kitchen`, `house_type`, `build_year`, `renovation`, `deposit`, `commission_percent` | no | if the seller filled them in |
| Cars: `brand`, `model`, `year`, `mileage`, `engine_volume`, `engine_power`, `transmission`, `fuel`, `drive`, `body`, `new_car`, `damaged`, `owners` | from the card title and specs line | yes, brand and model exact |
| Cars: `generation`, `color`, `steering`, `pts`, `modification`, `trim`, `vin`, `market_price`, `market_price_low`, `market_price_high`, `market_verdict`, `price_vs_market_percent` | no | when Avito shows them |

### 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 listings with their pages cost about $4.89, and 1,000 cards 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). So when a search needs more than 1,500, the Actor sorts it by date. A link with its
  own sort (by date or by price) keeps it.
- **Only new listings go newest first.** The search is sorted by date (unless your link has its own sort), and the Actor stops at the first
  page with a listing your previous runs returned: everything after it is older. The first run takes the newest listings up to your limit.
- **Track prices compares with your previous runs.** The first run marks every listing `new`, later runs give `same`, `cheaper` or
  `pricier` and the price before. Cards are enough for prices, so it is cheap to run daily. The history lives in your history store: only
  price changes are kept, and listings not seen for 90 days are dropped. A listing that left the search is simply not in the rows: it may be
  sold, closed or further down the search.
- A run returns **at most 5,000 listings**.
- **Other cities in results.** Avito mixes in listings from other cities, for example with delivery. `city` shows the listing's real city, and
  sometimes Avito does not give one.
- **Views.** `views_total` and `views_today` come when Avito shows them: on pages of cars, motorcycles, trucks, boats, services, daily rentals
  and lost and found pets the total is often missing, and new cars have no views at all.
- **Top-level sections.** Some section pages, such as furniture, trucks or repair and construction, have only subsections and no listings. You
  get a free row with the status `no_listings`: use a subsection link instead, for example from the section's page on Avito.
- **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, 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**, крупнейшей доски объявлений России: из выдачи и со страниц объявлений. В строке — заголовок, цена, город,
полный текст, характеристики, ссылки на фото, просмотры, адрес и продавец: имя, ссылка на профиль, рейтинг, с какого времени на Авито. Аккаунт
Авито не нужен.

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

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

- **Карточки выдачи и полные объявления — по разной цене.** Нужны цены по разделу — берите карточки. Нужны текст и характеристики —
  открывайте страницы. Платите только за то, что берёте.
- **Только новые.** Запускайте по расписанию и получайте только то, что появилось с прошлого запуска, не платя за остальное снова.
- **Слежение за ценами.** Запускайте те же ссылки по расписанию и смотрите, что подешевело или подорожало с прошлого запуска, с историей
  цен.
- **Ссылки или просто слова.** Вставьте любую ссылку на поиск или раздел с вашими фильтрами или просто напишите запрос и город.
- **Строки приходят по мере готовности.** Если запуск остановился раньше, собранное остаётся в датасете.
- **Прокси уже есть.** Можно и свои.

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

- **Цены рынка** — сколько стоит товар в городе у разных продавцов.
- **Мониторинг** — новые объявления в разделе или по запросу, по расписанию.
- **Недвижимость и авто** — цены, характеристики и где находятся объявления: комнаты, площадь и этаж или марка, модель, год, пробег и оценка
  Авито — колонками.
- **Данные для анализа** — чистые строки с характеристиками вместо сырых страниц.

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

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

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

```json
{
  "urls": ["https://www.avito.ru/moskva/telefony/mobilnye_telefony/apple"],
  "queries": ["велосипед trek"],
  "city": "moskva",
  "max_items": 100,
  "open_items": true,
  "new_only": false,
  "track_prices": false
}
```

Город пишется как в ссылках Авито: `moskva`, `sankt-peterburg`, `kazan`. `rossiya` — поиск по всей стране.

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

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

```json
{
  "id": 8000000000,
  "url": "https://www.avito.ru/moskva/telefony/iphone_15_plus_256_gb_2_sim_8000000000",
  "status": "ok",
  "page_loaded": true,
  "source": "https://www.avito.ru/moskva/telefony",
  "position": 3,
  "title": "iPhone 15 Plus, 256 ГБ, 2 SIM",
  "description": "iPhone 15 Plus, 256 ГБ, 2 SIM. Новый, гарантия. Звоните, отвечу на вопросы.",
  "price": 35490,
  "price_text": "35 490 ₽",
  "category": "Телефоны",
  "category_id": 84,
  "published_at": "2026-11-06T13:15:01+00:00",
  "city": "Москва",
  "district": "Соколиная Гора",
  "metro": "Шоссе Энтузиастов",
  "address": "Москва, ш. Энтузиастов, 1",
  "latitude": 55.75,
  "longitude": 37.75,
  "seller_type": "company",
  "seller_rating": 4.9,
  "seller_reviews": 1530,
  "seller_name": "Магазин-пример",
  "seller_url": "https://www.avito.ru/brands/example",
  "seller_since": "2017-08",
  "seller_listings": 120,
  "image_urls": ["https://00.img.avito.st/image/1/example"],
  "images_count": 5,
  "parameters": {"Состояние": "Новое", "Производитель": "Apple", "Встроенная память": "256 ГБ"},
  "views_total": 219,
  "views_today": 7
}
```

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

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

| Поле | С карточки | Со страницы объявления |
|---|---|---|
| `title`, `price`, `price_text`, `category`, `city`, `published_at`, `url` | да | да |
| `description` | начало | весь текст |
| `image_urls` | да | все фото |
| `seller_rating`, `seller_reviews`, `seller_name`, `seller_url` | если Авито их показывает | да |
| `seller_type`, `seller_since`, `seller_listings`, `seller_verified`, `seller_badges`, `seller_reply_time` | нет | да |
| `seller_closed_listings` | нет | когда Авито его показывает |
| `parameters`, `district`, `metro`, `views_total`, `views_today` | нет | да |
| `address`, `latitude`, `longitude` | да | да |
| `price_status`, `previous_price`, `price_change`, `price_change_percent`, `first_seen_at`, `price_history` | со слежением за ценами | со слежением за ценами |
| Недвижимость: `deal_type`, `rent_term`, `rooms`, `area_total`, `land_area`, `floor`, `floors_total`, `price_per_m2` | из заголовка карточки | да |
| Недвижимость: `new_building`, `residential_complex`, `median_price_per_m2`, `price_vs_median_percent` | да | да |
| Недвижимость: `area_living`, `area_kitchen`, `house_type`, `build_year`, `renovation`, `deposit`, `commission_percent` | нет | если продавец заполнил |
| Авто: `brand`, `model`, `year`, `mileage`, `engine_volume`, `engine_power`, `transmission`, `fuel`, `drive`, `body`, `new_car`, `damaged`, `owners` | из заголовка и строки характеристик карточки | да, марка и модель точные |
| Авто: `generation`, `color`, `steering`, `pts`, `modification`, `trim`, `vin`, `market_price`, `market_price_low`, `market_price_high`, `market_verdict`, `price_vs_market_percent` | нет | когда Авито их показывает |

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

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

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

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

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

- **Больше 1500 объявлений с одной выдачи берутся по дате.** В обычном порядке Авито показывает не больше 30 страниц (1500 объявлений), по
  дате — до 100 страниц (5000). Поэтому, когда с выдачи нужно больше 1500, актор сортирует её по дате. Ссылка со своей сортировкой (по
  дате или по цене) её сохраняет.
- **«Только новые» идут по дате.** Выдача сортируется по дате (если у ссылки нет своей сортировки), и актор останавливается на первой
  странице с объявлением, которое отдали прошлые запуски: всё дальше — старше. Первый запуск берёт самые новые до вашего предела.
- **Слежение за ценами сравнивает с прошлыми запусками.** Первый запуск помечает все объявления `new`, следующие дают `same`, `cheaper`
  или `pricier` и прежнюю цену. Для цен хватает карточек, поэтому запускать каждый день дёшево. История лежит в хранилище истории:
  хранятся только изменения цен, а объявления, которых не видели 90 дней, удаляются. Объявления, которое ушло из выдачи, просто нет в
  строках: его могли продать, закрыть или оно ушло ниже.
- Запуск отдаёт **не больше 5000 объявлений**.
- **Другие города в выдаче.** Авито подмешивает объявления из других городов, например с доставкой. В `city` — настоящий город объявления,
  а иногда Авито его не даёт.
- **Просмотры.** `views_total` и `views_today` есть, когда Авито их показывает: на страницах авто, мотоциклов, грузовиков, водного транспорта,
  услуг, посуточной аренды, потерянных и найденных животных общего числа часто нет, а у новых машин просмотров нет совсем.
- **Верхние разделы.** У некоторых разделов, например мебели, грузовиков, ремонта и строительства, на странице только подразделы, а
  объявлений нет. Тогда приходит бесплатная строка со статусом `no_listings`: возьмите ссылку на подраздел, например со страницы раздела на
  Авито.
- **Запуск может остановиться раньше**, если Авито блокирует слишком много запросов. Собранное остаётся в датасете, а причина — в статусе
  запуска и в записи `OUTPUT`.

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

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

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

# Actor input Schema

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

Links to search results or to single listings, 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 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: full text, attributes, views and the seller in full (type, since when on Avito, listings, badges) from each listing page. Off: search result cards only, faster and cheaper.<br><br>Включено: полный текст, характеристики, просмотры и продавец полностью (тип, стаж, объявления, значки) со страницы каждого объявления. Выключено: только карточки выдачи, быстрее и дешевле.

## `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. Запускайте по расписанию с теми же ссылками. Не вместе с «Только новые».

## `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.<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": false,
  "track_prices": false,
  "sessions": 4,
  "browsers": 2,
  "history_store": "avito-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-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/velosipedy"],
    "max_items": 20,
    "open_items": False,
}

# Run the Actor and wait for it to finish
run = client.actor("theshark/avito-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/velosipedy"
  ],
  "max_items": 20,
  "open_items": false
}' |
apify call theshark/avito-scraper --silent --output-dataset

```

## MCP server setup

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