# Avito.ru Parser / Scraper - Phone Numbers, Reviews & More (`codingfrontend/avito-listings-scraper`) Actor

Extract public Avito listings, prices, seller information, product specifications, and optional reviews.

- **URL**: https://apify.com/codingfrontend/avito-listings-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### What does Avito Listings Scraper do?

**Avito Listings Scraper** extracts public classified listings from [Avito.ru](https://www.avito.ru), including cars, real estate, electronics, services, and other categories. It is an **Avito API alternative** for market research, price comparison, inventory discovery, and lead generation. It does not sign in, solve CAPTCHAs, or bypass access restrictions.

### Why use Avito Listings Scraper?

Search by a public URL or by query and city, process a batch of listing URLs, and cap results so runs stay predictable. Public seller names, prices, images, locations, specifications, ratings, and (when explicitly enabled) phone numbers are normalized into one dataset. Apify provides scheduling, API access, integrations, proxy configuration, and monitoring around the Actor.

### What data can it extract?

| Field | Type | Description |
| --- | --- | --- |
| `id` | integer | Avito listing identifier |
| `title` | string | Listing title |
| `price` / `currency` | number / string | Advertised price |
| `images` | array | Public listing image URLs |
| `sellerName` | string | Seller or shop name |
| `sellerPhone` | string | Public phone, only when `includePhone` is enabled |
| `attributes` | object | Public specification values |
| `url` | URL | Canonical listing URL |
| `scrapedAt` | string | UTC extraction timestamp |
| `sourceUrl` | URL | Public Avito page that produced the row |

### How to scrape Avito

1. Open this Actor in Apify Console and review the input tab.
2. Paste an Avito search URL, add direct listing URLs, or provide a query and location.
3. Choose a result limit and enable details, reviews, or public phones only when needed.
4. Start the run and download JSON, HTML, CSV, or Excel from the Dataset tab, or use the API tab.

### How much will it cost?

Runs consume standard Apify compute and data-transfer resources. Focused URLs and a small `maxResults` value reduce requests and cost. Apify offers a free allowance and paid plans for larger scheduled runs.

### Input

See the input tab for full configuration options. `listingUrls` accepts full URLs or numeric IDs. `searchUrl` takes priority over generated query URLs, and `fixtureFile` is only for local validation. Public phone extraction is opt-in.

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. A simplified item is:

```json
{
  "id": 7711127235,
  "title": "iPhone 17 Pro Max, 1 ТБ",
  "price": 134000,
  "currency": "₽",
  "location": "Москва",
  "url": "https://www.avito.ru/moskva/telefony/iphone_17_7711127235"
}
```

### Tips and troubleshooting

Avito may localize or limit results based on region and access state. Avito also applies **IP-based access restrictions**: requests from non-Russian or datacenter IPs can receive HTTP 429 with a "Доступ ограничен: проблема с IP" (access limited: IP problem) page. If a run returns no listings, inspect the log for an HTTP or consent page and retry later with a focused public URL, ideally from a Russian residential IP (Apify proxy with a `RU` country setting). Do not increase request pressure to work around a challenge.

### Pagination, diagnostics, and fixtures

Search inputs can use `maxPages` and `startPage`; Avito pagination is requested with the public `p` query parameter and stops when no next page or no new listings are observed. `maxResults`, request timeouts, retries, response size, and page delay are bounded. `listingUrls` keeps direct URL/ID batch compatibility.

The Actor never signs in, solves CAPTCHAs, uses stealth, or claims that a challenge page is a listing. With `includeDiagnostics` enabled (the default), a blocked, rate-limited, redirected, or empty source produces an explicit `recordType: "diagnostic"` row and `OUTPUT_SUMMARY` records the source outcome. `fixtureFile` and `fixtureFiles` are repository-relative deterministic HTML inputs for local QA and are not network fallbacks.

Normal rows contain only source-backed business fields plus `sourceUrl` and `scrapedAt`; diagnostics carry a minimal record/error envelope. `OUTPUT_SUMMARY` includes `normalRecords`, `diagnosticRecords`, `runStatus`, and source/transport metrics so a blocked run cannot be mistaken for a successful empty listing search.

### FAQ, disclaimer, and support

The Actor reads public classifieds only. Our Actors are ethical and do not extract private user data; a seller phone is included only if the seller has published it and you explicitly enable it. Personal data may still be present, so use results lawfully and follow Avito terms and privacy regulations. Use the Issues tab for feedback and the API tab for programmatic access.

# Actor input Schema

## `searchUrl` (type: `string`):

Optional public Avito search URL. It takes priority over query and location.

## `listingUrls` (type: `array`):

Optional direct Avito listing URLs or numeric listing IDs.

## `query` (type: `string`):

Keywords used when searchUrl and listingUrls are omitted.

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

Avito city or region, for example Москва or Санкт-Петербург.

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

Optional Avito category slug.

## `priceMin` (type: `number`):

Optional lower price filter.

## `priceMax` (type: `number`):

Optional upper price filter.

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

Ordering hint for generated searches.

## `maxResults` (type: `integer`):

Maximum unique records to store.

## `maxPages` (type: `integer`):

Maximum public search pages to inspect.

## `startPage` (type: `integer`):

One-based starting page for a search URL.

## `deduplicate` (type: `boolean`):

Remove repeated IDs or URLs.

## `includePhone` (type: `boolean`):

Keep a phone number only when it is exposed on the public page.

## `includeDetails` (type: `boolean`):

Keep public descriptions, images, locations, and specifications.

## `includeReviews` (type: `boolean`):

Keep public rating and review counts.

## `includeDiagnostics` (type: `boolean`):

Store one explicit diagnostic row when no usable listing is available.

## `requestDelayMs` (type: `integer`):

Bounded delay between page requests.

## `timeoutSecs` (type: `integer`):

Per-request timeout.

## `retries` (type: `integer`):

Retries for transient request failures.

## `maxResponseBytes` (type: `integer`):

Response-size safety limit.

## `userAgent` (type: `string`):

Optional honest browser-like User-Agent.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy configuration.

## `fixtureFile` (type: `string`):

Repository-relative HTML fixture for deterministic local validation.

## `fixtureFiles` (type: `array`):

Repository-relative HTML fixtures, selected one per page.

## Actor input object example

```json
{
  "location": "Россия",
  "category": "all",
  "sort": "relevance",
  "maxResults": 100,
  "maxPages": 1,
  "startPage": 1,
  "deduplicate": true,
  "includePhone": false,
  "includeDetails": false,
  "includeReviews": false,
  "includeDiagnostics": true,
  "requestDelayMs": 350,
  "timeoutSecs": 45,
  "retries": 1,
  "maxResponseBytes": 4194304
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

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

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/avito-listings-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/avito-listings-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 '{}' |
apify call codingfrontend/avito-listings-scraper --silent --output-dataset

```

## MCP server setup

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