# Avito Scraper: Avito.ru Classifieds, Listings & Prices (`hyperbach/avito-scraper`) Actor

Scrape Avito.ru listings by search words and city, category URL or listing URL: item id, title, price, city, address, metro, date, seller name and type (private or company), images and category. Several searches per run, a max per search. No login. Misses free.

- **URL**: https://apify.com/hyperbach/avito-scraper.md
- **Developed by:** [Hyperbach](https://apify.com/hyperbach) (community)
- **Categories:** Lead generation, E-commerce, Real estate
- **Features:** Limited permissions
- **Stats:** 4 total users, 1 monthly users, 90.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.69 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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: Avito.ru Classifieds, Listings & Prices

**Avito.ru listings, logged out: search words in a city or region, Avito search or category URLs, or listing URLs in, one row per listing out — the item id and URL, the title, the price in roubles with the discount, the city, the address and the metro station, the date the listing shows, the seller's name and type (company or private), the seller's rating, the image URLs, the category and the description — several searches in one run, a max per search.** One free `query` row per input carries a completeness verdict: COMPLETE (the search's end), CAPPED (your limit), TRUNCATED (Avito's own depth limit, with its count) or PARTIAL. No login, no API key, no browser, proxies handled for you.

**$0.692 per 1,000 `listing` rows on the Free plan.** A run start is $0.00269. The default input returns about 50 rows for about $0.03729. A value that names nothing is a free row that says why.

![An Avito listing page in a browser: a green metal desk lamp from a company seller in Kazan, with a discounted price in roubles and the old price struck through. Beside it, a part of the row this Actor returns for the listing, with price_without_discount and seller_type highlighted, then the price, the discount, the seller's name and review count, the city, the address and the metro station.](https://api.apify.com/v2/key-value-stores/dcLLNGq99686o2A4v/records/hero-avito-scraper.webp)

### Why this Avito scraper

- **Searches, categories and listings in one run.** Give search words with a city or region (`iphone 15` in `moskva`), search URLs from your browser with the filters you set there, category URLs (`/moskva/telefony`, `/sankt-peterburg/kvartiry/sdam/na_dlitelnyy_srok`), or listing URLs and item ids. Each search gets its own cap (`maxItemsPerQuery`), and the run's cap sits on top (`maxItems`).
- **The listing as Avito shows it.** The title, the price in roubles with the price before a discount, the city, the address and the nearest metro station the card names, the date the listing shows, the seller type (company or private) with a company's name, profile, rating and review count, every photo's URL at its largest size, the category and the description's first lines. A listing URL adds the full description and the map coordinates.
- **Every listing of a search, checked.** Avito's own order, 50 listings a page, until the search's end: the free `query` row says COMPLETE with Avito's count. Avito shows a reader 1,500 listings of a search in its default order and up to 5,000 when it is sorted, whatever its count says (measured 2026-10-29); a run that reaches that end says TRUNCATED with Avito's count. A listing a later page or another search repeats is delivered and charged once.
- **Honest runs.** A listing Avito no longer has is a free `not_found` row, checked twice; a search with no match a free `no_results` row (Avito's suggestions from other searches are never rows); a URL that is not Avito a free `invalid` row. Every input gets a row.

### Who it's for

- **Resellers and price analysts** — the prices of a model or a category in a city, cheapest first, read again every day to see what is new and what moved.
- **Real estate and car market researchers** — the listings of a category URL with its filters (flats to rent in a district, a car model), with the address, the metro station, the seller type and the date.
- **Lead generation for B2B sellers** — the companies that sell in a category: their names, Avito profiles, ratings and review counts.

### Quick start

**The first 100 listings of a search in Moscow**

```json
{
  "searchTerms": [
    "iphone 15"
  ],
  "location": "moskva",
  "maxItemsPerQuery": 100
}
```

**The newest listings of a category**

```json
{
  "startUrls": [
    "https://www.avito.ru/sankt-peterburg/velosipedy"
  ],
  "sort": "newest",
  "maxItemsPerQuery": 500
}
```

**Two listings by URL and by id**

```json
{
  "startUrls": [
    "https://www.avito.ru/moskva/telefony/iphone_15_256_gb_sim_esim_8279423619",
    "8328092680"
  ]
}
```

### Output

One row per listing (and one free query row per input):

| field | meaning |
|---|---|
| `row_type` | `listing` (one listing, charged) or `query` (the input's row with the walk's verdict; free). |
| `input_index` | The 1-based position of the input this row answers: `startUrls` first, then `searchTerms`. |
| `input_value` | The input as you gave it (the URL or the search words). |
| `input_kind` | Which input it came from: `url` (`startUrls`) or `query` (`searchTerms`). |
| `search_url` | The search (the category URL Avito resolved it to) or the listing on avito.ru, as a URL you can open. |
| `status` | A query row: `ok`, `no_results`, `not_found`, `invalid`, `duplicate`, `failed` or `not_read` (see the FAQ). A listing row: `ok`. |
| `status_detail` | Why a query row is not `ok`, in a sentence. |
| `scraped_at` | When the row was read (UTC). |
| `position` | The listing's place among this input's delivered listings (1 = first); 1 for a listing URL. |
| `page` | The search page the listing was on (empty for a listing URL). |
| `source` | Where the row was read: `search` (a search or category page) or `listing_page` (the listing's own page). |
| `item_id` | Avito's item id (the number at the end of the listing URL). |
| `url` | The listing on avito.ru. |
| `title` | The listing's title. |
| `price` | The price in roubles, as a number (empty when the listing names no price). |
| `price_text` | The price as Avito writes it (`37 490 ₽`, `от 3 000 ₽`). |
| `currency` | `RUB` when the listing names a price. |
| `price_without_discount` | The price before a discount, in roubles, when Avito shows one. |
| `discount_percent` | The discount as Avito writes it (`–5%`), when it shows one. |
| `city` | The city or place the listing names (empty when the card names none: see `city_slug`). |
| `city_slug` | The place part of the listing's URL (`moskva`, `sankt-peterburg`), on every row. |
| `address` | The address the listing shows (a street, or a street and number). |
| `metro` | The metro stations (or other landmarks) the listing names near its address. |
| `latitude` | The listing's latitude on Avito's map (a listing URL only). |
| `longitude` | The listing's longitude on Avito's map (a listing URL only). |
| `posted_at` | The date Avito shows on the listing (UTC); a seller's paid raise moves it. |
| `seller_name` | The seller's name: a company's name (Avito hides a private seller's name from a visitor who is not logged in). |
| `seller_type` | `company` (the listing names a company profile) or `private`. |
| `seller_url` | A company seller's Avito profile. |
| `seller_rating` | A company seller's rating on Avito (out of 5). |
| `seller_reviews` | A company seller's number of reviews on Avito. |
| `category_id` | Avito's category id. |
| `category` | The category's name (`Телефоны`). |
| `category_slug` | The category's URL slug (`telefony`). |
| `description` | The description: its first lines on a search page, the whole text from a listing URL. |
| `image_urls` | The URL of every photo of the listing, at its largest size. |
| `images_count` | How many photos the listing has. |
| `has_video` | The listing has a video. |
| `is_verified` | Avito marks the listing (or, on a listing URL, the seller) as verified. |
| `delivery` | Avito delivery is offered for the listing. |
| `closed` | A listing URL only: the listing is closed, archived or expired. |
| `listings_count` | A query row: Avito's own count of listings in the search. |
| `listings_shown` | A query row: how many of them Avito shows a reader (1,500 in its default order, up to 5,000 sorted). |
| `listings_delivered` | A query row: the listings delivered for this input in this run. |
| `pages_read` | A query row: the search pages read. |
| `repeats_skipped` | A query row: listings met again (on an earlier page or delivered by another input) and skipped. |
| `verdict` | A query row: COMPLETE, CAPPED, TRUNCATED or PARTIAL. |
| `verdict_detail` | A query row: the verdict in a sentence, with the counts. |

Example record:

```json
{
  "row_type": "listing",
  "input_index": 5,
  "input_value": "iphone 15",
  "input_kind": "query",
  "search_url": "https://www.avito.ru/moskva?q=iphone+15&s=1",
  "status": "ok",
  "status_detail": null,
  "scraped_at": "2026-10-29T01:08:39Z",
  "position": 16,
  "page": 1,
  "source": "search",
  "item_id": "8211140068",
  "url": "https://www.avito.ru/moskva/telefony/iphone_15_128_gb_1_sim_8211140068",
  "title": "iPhone 15, 128 ГБ, 1 SIM",
  "price": 23000,
  "price_text": "23 000 ₽",
  "currency": "RUB",
  "price_without_discount": null,
  "discount_percent": null,
  "city": "Москва",
  "city_slug": null,
  "address": "пр-т Вернадского",
  "metro": [
    "Проспект Вернадского"
  ],
  "latitude": null,
  "longitude": null,
  "posted_at": "2026-10-11T18:15:36Z",
  "seller_name": "Women Bag",
  "seller_type": "company",
  "seller_url": "https://www.avito.ru/brands/3ccc8129e7e6264cc1b3706a670fe0fc",
  "seller_rating": null,
  "seller_reviews": null,
  "category_id": 84,
  "category": "Телефоны",
  "category_slug": "telefony",
  "description": "Iphone 15 128 ГБ. Использовался бережно, дефекты все на фото, по внутрянке все хорошо.",
  "image_urls": [
    "https://80.img.avito.st/image/1/1.v6Mt_7aAE0pjVelBX7mp3Q5fEU6fSBdKny9yTp-kGLCSXBdQY1XpQZs.ynv182Q3aenSo1eLWQZemWvT3oJKqPcBfj6x9tS8YY8",
    "https://50.img.avito.st/image/1/1.fmn7FraA0oC1vCiLi0s1Fti20IRJodaAScazhElN2XpEtdaatbwoi00.YP6BMcWQiey7GTDLl5rzIY8d8vUBqRzS-ucRF4xqvck",
    "https://b10.img.avito.st/image/1/1.1YbDCbaAeW-No4Nk5QrH-OCpe2txvn1vcdkYa3FScpV8qn11jaODZHU.i6L0_sRtdS1RXNyE7UXjJf4smrYIceBD3MZfsW8oF6k?cqp=2.2LhnDdKx1gU5sZ7QAbwhSdJoeYt5K_KL9JwGcCXpGrDVbBxJ1yJf9Jn7hY3rGWaiHtSha9zz1w=="
  ],
  "images_count": 5,
  "has_video": false,
  "is_verified": false,
  "delivery": false,
  "closed": null,
  "listings_count": null,
  "listings_shown": null,
  "listings_delivered": null,
  "pages_read": null,
  "repeats_skipped": null,
  "verdict": null,
  "verdict_detail": null
}
```

### Pricing

**Pay for the listings a run delivers**, plus one run start; no platform usage is billed to you. The listing price is the same on every Apify plan.

| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
| Listing (`listing`) | per 1,000 | $0.692 | $0.692 | $0.692 | $0.692 |
| Run start (`start`) | per run | $0.00269 | $0.00269 | $0.00269 | $0.00269 |

A listing is **$0.692 per 1,000** on the Free plan ($0.000692 a listing). Each run that delivers a charged listing also pays the **run start, $0.00269 once**; a run that delivers no charged listing pays nothing at all. So one search of 100 listings costs $0.07189 on the Free plan, and several searches in one run share one start. The free `query` row of every input, a value that is not an Avito search, category or listing URL (`invalid`), a listing Avito no longer has (`not_found`), a search with no match (`no_results`), a repeated input (`duplicate`), an input left at the cap or the time limit (`not_read`) and a refusal the run could not pass (`failed`) are never charged. A listing is charged once a run, also when several searches list it. A run that stops early (a timeout, an abort) is charged for the listings it delivered. `maxItems` counts the charged rows; before the first request the log names the price of each row at your plan and the most the run can cost. Enterprise plans have their own rates: the Actor's Pricing tab shows the price for your plan.

### Usage patterns

- **Searches, categories and listings** — `searchTerms` takes words, one search a line, searched in `location` (Avito's URL slug such as `moskva` or `kazan`, `all` for all of Russia, or a Russian city name). `startUrls` takes search URLs as your browser shows them (their filters are kept), category URLs (`/<city>/<category>/…`) and listing URLs (`/<city>/<category>/<name>_<id>`) or bare item ids. `sort` orders the searches (a URL with its own `s=` keeps it). avito.ru only.
- **What a row is** — `row_type` = `listing`: one listing, in Avito's order (`position`, and the `page` it was on; `source` search or listing_page). `row_type` = `query`: the free row of one input value — `listings_count` (Avito's own count), `listings_shown` (what Avito shows a reader of it), `listings_delivered`, `pages_read`, `repeats_skipped`, the `verdict` with its `verdict_detail`, and the `status` with its reason.
- **How far a search goes** — `maxItemsPerQuery` (default 100; 0 = every listing Avito shows) stops each search after that many new listings. Avito shows a reader 30 pages (1,500 listings) of a search in its default order and 100 pages (5,000) when it is sorted, whatever its count says; a run that reaches that end says TRUNCATED with Avito's count, and a category, a city, a price filter in the URL or a sort reads more of it. `maxItems` caps the charged rows of the whole run.

### Input configuration

| field | type | default | what it does |
|---|---|---|---|
| `searchTerms` | `array` |  | Words to search on avito.ru, one search a line (`iphone 15`, `диван`), as you would type them in Avito's search box. Avito's index is Russian: Russian words find the most. Each line is one search in the location below, read page after page. Words Avito matches with nothing give a free row with no listing. |
| `location` | `string` | `"all"` | Where the search words search: a city or region as Avito writes it in its URLs (`moskva`, `sankt-peterburg`, `kazan`, `moskovskaya_oblast`; `all` = all of Russia), or one of the names Россия, Москва, Санкт-Петербург, Московская область, Ленинградская область, Новосибирск, Екатеринбург, Казань, Нижний Новгород, Челябинск, Самара, Омск, Ростов-на-Дону, Уфа, Красноярск, Воронеж, Пермь, Волгоград, Краснодар. URLs in `startUrls` keep their own place. |
| `startUrls` | `array` |  | Avito pages to read, one a line: a search URL (`https://www.avito.ru/moskva?q=iphone+15`, with any filter you set in your browser), a category URL (`https://www.avito.ru/moskva/telefony`, `https://www.avito.ru/sankt-peterburg/kvartiry/sdam/na_dlitelnyy_srok`), or a listing URL (`https://www.avito.ru/moskva/telefony/<name>_<id>`, or the item id alone). A URL that is not an avito.ru search, category or listing (a seller's profile, avito.ma) gets a free `invalid` row; a URL given twice a free `duplicate` row. |
| `sort` | `default` / `cheapest` / `expensive` / `newest` | `"default"` | The order of the searches: Avito's default, cheapest first, most expensive first or newest first. A URL with its own sort keeps it. Avito shows a reader 1,500 listings of a search in its default order and up to 5,000 when it is sorted. |
| `maxItemsPerQuery` | `integer` | `100` | Stop each search or category after this many new listings. 0 = every listing Avito shows a reader of it: 1,500 in Avito's default order, up to 5,000 sorted, whatever its count says. Listing URLs are not counted here. |
| `maxItems` | `integer` | `0` | Stop the whole run after this many listing rows (the charged rows). 0 = no run cap; each search still stops at its own limit above. |
| `feedback` | `string` |  | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |

### Errors

**A run does not fail because of your input.** When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends **Succeeded**, charges nothing, and says what to change:

- the status message starts with `INPUT REJECTED`;
- the dataset holds one row, `{"error": true, "code": "…", "message": "…"}`, and no results;
- the key-value store record `ERROR` holds the same object.

From code, check `error` on the first row before reading results.

A URL that is not an Avito search, category or listing URL (a seller's profile, the home page, another site) is not an error: it gets one free `query` row with `status` invalid that says why, and the run goes on with the others. A run that ends **Failed** is a fault on our side, never your input; it charges nothing, and we are alerted.

### FAQ

**Which status is which?**

A query row's `status` is `ok` (listings served), `no_results` (Avito lists nothing for it; read on two connections), `not_found` (Avito sends the listing's URL to its category: the listing is gone; checked on two connections), `invalid` (an empty value, or a URL that is not an Avito search, category or listing URL), `duplicate` (the same search or listing again in the input: read once; or a listing another input already delivered), `failed` (Avito refused every try; free) or `not_read` (left at `maxItems`, the charge limit or the run's time limit). A listing row's `status` is `ok`.

**Why is the seller's name empty on some rows?**

Avito hides a private seller's name from a visitor who is not logged in: the listing shows an anonymous profile. Those rows say `seller_type` private with no name. A company's name, profile URL, rating and review count are on the row.

**Does it give phone numbers?**

No. Avito shows a seller's number only to a logged-in visitor who asks for it; this actor reads Avito logged out.

**Is `posted_at` the date the listing was first published?**

It is the date Avito shows on the listing. A seller who pays to raise a listing moves that date, so an old listing can show a recent date.

**Does it need an Avito account or API key?**

No. Everything is read from Avito's public pages, logged out.

**Do I need Apify Proxy or my own proxy?**

No. The Actor uses its own connections, at no extra cost to you.

### Integration

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('hyperbach/avito-scraper').call({"searchTerms": ["iphone 15"], "location": "moskva", "maxItemsPerQuery": 100});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('hyperbach/avito-scraper').call(run_input={'searchTerms': ['iphone 15'], 'location': 'moskva', 'maxItemsPerQuery': 100})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### CLI

```bash
apify call hyperbach/avito-scraper --input '{"searchTerms": ["iphone 15"], "location": "moskva", "maxItemsPerQuery": 100}'
```

#### REST

```bash
curl -X POST "https://api.apify.com/v2/acts/hyperbach~avito-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"searchTerms": ["iphone 15"], "location": "moskva", "maxItemsPerQuery": 100}'
```

#### AI agents and MCP

Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect `https://mcp.apify.com?tools=hyperbach/avito-scraper` and ask, for example: "Get the first 100 Avito listings for iphone 15 in Moscow with prices". The agent fills the input from the table above and reads the rows from the run's dataset. The input names are the ones in the table above. An agent or a person can add `feedback` to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.

#### n8n, Make and Zapier

The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.

### Support

**Disagree with a charge?** Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.

**Did it do the job?** A short [review on the Store](https://apify.com/hyperbach/avito-scraper/reviews), at any rating, helps the next buyer choose.

### See also

- **[Facebook Marketplace Scraper](https://apify.com/hyperbach/facebook-marketplace-scraper)** — Marketplace listings by search, category and city: the price, the date listed and the seller, and on request the description and the vehicle facts.
- **[Kleinanzeigen Scraper](https://apify.com/hyperbach/kleinanzeigen-scraper)** — Kleinanzeigen.de listings by search words and place, with the price, the postcode, the seller type and shipping.
- **[AutoScout24 Scraper](https://apify.com/hyperbach/autoscout24-scraper)** — AutoScout24 car listings in eight European markets by make, model and place, with the price, mileage, first registration and the dealer.
- **[Leboncoin Scraper](https://apify.com/hyperbach/leboncoin-scraper)** — Leboncoin.fr listings by search words, category and place or by URL, with the price, the postcode, the seller type and the images.
- **[AutoTrader.ca Scraper](https://apify.com/hyperbach/autotrader-ca-scraper)** — AutoTrader.ca car listings by search URL, make and model around a Canadian city or listing URL, with the price, mileage, year, trim, the VIN where shown and the dealer or private seller.
- **[Mercari Japan Scraper](https://apify.com/hyperbach/mercari-scraper)** — Mercari Japan items by search URL, keyword or item link: the price in yen, sold or on sale, the condition, shipping, likes, the seller and the photos.

*This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.*

# Actor input Schema

## `searchTerms` (type: `array`):

Words to search on avito.ru, one search a line (`iphone 15`, `диван`), as you would type them in Avito's search box. Avito's index is Russian: Russian words find the most. Each line is one search in the location below, read page after page. Words Avito matches with nothing give a free row with no listing.

## `location` (type: `string`):

Where the search words search: a city or region as Avito writes it in its URLs (`moskva`, `sankt-peterburg`, `kazan`, `moskovskaya_oblast`; `all` = all of Russia), or one of the names Россия, Москва, Санкт-Петербург, Московская область, Ленинградская область, Новосибирск, Екатеринбург, Казань, Нижний Новгород, Челябинск, Самара, Омск, Ростов-на-Дону, Уфа, Красноярск, Воронеж, Пермь, Волгоград, Краснодар. URLs in `startUrls` keep their own place.

## `startUrls` (type: `array`):

Avito pages to read, one a line: a search URL (`https://www.avito.ru/moskva?q=iphone+15`, with any filter you set in your browser), a category URL (`https://www.avito.ru/moskva/telefony`, `https://www.avito.ru/sankt-peterburg/kvartiry/sdam/na_dlitelnyy_srok`), or a listing URL (`https://www.avito.ru/moskva/telefony/<name>_<id>`, or the item id alone). A URL that is not an avito.ru search, category or listing (a seller's profile, avito.ma) gets a free `invalid` row; a URL given twice a free `duplicate` row.

## `sort` (type: `string`):

The order of the searches: Avito's default, cheapest first, most expensive first or newest first. A URL with its own sort keeps it. Avito shows a reader 1,500 listings of a search in its default order and up to 5,000 when it is sorted.

## `maxItemsPerQuery` (type: `integer`):

Stop each search or category after this many new listings. 0 = every listing Avito shows a reader of it: 1,500 in Avito's default order, up to 5,000 sorted, whatever its count says. Listing URLs are not counted here.

## `maxItems` (type: `integer`):

Stop the whole run after this many listing rows (the charged rows). 0 = no run cap; each search still stops at its own limit above.

## `feedback` (type: `string`):

A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note.

## Actor input object example

```json
{
  "searchTerms": [
    "iphone 15"
  ],
  "location": "moskva",
  "sort": "default",
  "maxItemsPerQuery": 50,
  "maxItems": 50
}
```

# Actor output Schema

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

All scraped records in the default dataset. One row per listing (and one free query row per input):

## `runSummary` (type: `string`):

How the run went: listing rows charged, free rows, inputs by status, the walk per search (listings delivered, pages read, repeated listings skipped, Avito's count, what Avito shows, the verdict), the source counters (calls, served, refused, exits, rotations, firewall checks, bytes) and the memory watch.

# 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 = {
    "searchTerms": [
        "iphone 15"
    ],
    "location": "moskva",
    "maxItemsPerQuery": 50,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hyperbach/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 = {
    "searchTerms": ["iphone 15"],
    "location": "moskva",
    "maxItemsPerQuery": 50,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hyperbach/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 '{
  "searchTerms": [
    "iphone 15"
  ],
  "location": "moskva",
  "maxItemsPerQuery": 50,
  "maxItems": 50
}' |
apify call hyperbach/avito-scraper --silent --output-dataset

```

## MCP server setup

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