# Avito Scraper — Russia Classifieds, Prices & Sellers | $1.9/1K (`bovi/avito-listings-scraper`) Actor

Scrape Avito.ru — Russia's largest classifieds — by keyword, category, region and price. Returns title, price, location, seller name+type, posted date, listing params/specs, images, and URL. Pay per result.

- **URL**: https://apify.com/bovi/avito-listings-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** E-commerce, Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.87 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Avito Scraper — Russia Classifieds, Prices, Sellers | from $2/1K

Scrape **Avito.ru** — Russia's largest classifieds platform with 100M+ listings — by keyword, category, region and price filters.

### What you get

Every listing record includes:

| Field | Description |
|-------|-------------|
| `listing_id` | Avito numeric listing ID |
| `title` | Listing title |
| `url` | Full listing URL |
| `price` | Price in RUB (numeric) |
| `price_string` | Formatted price string (e.g. "3 000") |
| `currency` | Always "RUB" |
| `location_name` | City/region name |
| `address` | Street-level address (from listing page) |
| `lat` / `lng` | GPS coordinates when available |
| `seller_name` | Seller's display name |
| `seller_type` | `"private"` or `"pro"` |
| `seller_type_label` | Russian label (e.g. "Частное лицо", "Компания") |
| `posted_date` | Posting date (e.g. "сегодня в 13:52", "2 июня в 23:39") |
| `description` | Full listing description (plain text) |
| `image_urls` | List of image URLs (high-res) |
| `thumbnail` | First image URL |
| `images_count` | Number of images |
| `params` | Listing specs: `[{"title": "Состояние", "description": "Отличное"}, ...]` |
| `params_map` | Flat dict: `{"Состояние": "Отличное", ...}` |
| `category_id` | Avito category ID |
| `category_name` | Category name |
| `category_path` | Breadcrumb path (e.g. "Главная > Одежда > Брюки") |
| `is_discounted` | Price was lowered |
| `is_active` | Listing is currently active |

### How to use

1. Enter a **search query** (Russian or English keywords)
2. Set **Location ID** (637640 = Moscow, 621540 = St. Petersburg, 660311 = All Russia)
3. Optional: category ID, price range
4. Set **proxy** to Apify Residential (RU) — required for reliable access

### Pricing

Pay per result: **$2 per 1,000 listings** extracted.

### Proxy

Avito uses aggressive IP-based rate limiting. **Apify Residential (RU) proxy is required** — no external proxy account needed, Apify's built-in proxy is billed to your run.

### Common location IDs

- `660311` — All Russia
- `637640` — Moscow
- `621540` — Saint Petersburg
- `648940` — Novosibirsk
- `649295` — Yekaterinburg
- `561424` — Krasnodar

### Limitations

- Avito's access protection may occasionally require retries; the actor handles this automatically.
- Posted dates are relative strings (e.g. "сегодня в 13:52") as Avito displays them.
- Price is extracted as numeric RUB; "price on request" listings have `price: null`.

# Actor input Schema

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

Keyword(s) to search on Avito (e.g. 'iphone 14', 'ноутбук lenovo', 'велосипед'). Required.
## `locationId` (type: `integer`):

Avito numeric location ID for the city or region. Common IDs: 637640 = Moscow, 621540 = Saint-Petersburg, 660311 = All Russia. Default: 660311 (all Russia). Find yours in the Avito URL when you select a location.
## `categoryId` (type: `integer`):

Optional Avito numeric category ID to restrict results (e.g. 84 = Phones, 10 = Laptops, 9 = Real Estate). Leave blank for all categories.
## `priceMin` (type: `integer`):

Only return listings priced at or above this amount in rubles. Leave blank for no lower bound.
## `priceMax` (type: `integer`):

Only return listings priced at or below this amount in rubles. Leave blank for no upper bound.
## `maxItems` (type: `integer`):

Maximum number of listings to return. Default 100. Set to 0 for unlimited (you are charged per listing returned).
## `fetchDetails` (type: `boolean`):

ON (default): visit each listing page for rich fields (description, seller, params). OFF: fast mode — search-API fields only (~10x faster, immune to per-listing rate-limits).
## `proxyConfiguration` (type: `object`):

REQUIRED. Avito uses aggressive IP-based rate limiting and fingerprinting. Use Apify Residential proxy with country Russia (RU) for best pass rate. No external proxy account needed — Apify built-in residential proxy is billed to your run.

## Actor input object example

```json
{
  "query": "iphone 14",
  "locationId": 660311,
  "maxItems": 100,
  "fetchDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "RU"
  }
}
````

# Actor output Schema

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

Dataset containing Avito Listings Scraper records (listing\_id, title, price, price\_string, currency, location\_name, address, seller\_name, seller\_type, posted\_date, url, image\_urls, params, description, category\_id, category\_name, scraped\_at).

# 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 = {
    "query": "iphone 14",
    "locationId": 660311,
    "maxItems": 100,
    "fetchDetails": true,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "RU"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/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 = {
    "query": "iphone 14",
    "locationId": 660311,
    "maxItems": 100,
    "fetchDetails": True,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "RU",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/avito-listings-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "iphone 14",
  "locationId": 660311,
  "maxItems": 100,
  "fetchDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "RU"
  }
}' |
apify call bovi/avito-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=bovi/avito-listings-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Avito Scraper — Russia Classifieds, Prices & Sellers | $1.9/1K",
        "description": "Scrape Avito.ru — Russia's largest classifieds — by keyword, category, region and price. Returns title, price, location, seller name+type, posted date, listing params/specs, images, and URL. Pay per result.",
        "version": "0.1",
        "x-build-id": "mrK8m3KHiVnG1tuHj"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/bovi~avito-listings-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-bovi-avito-listings-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/bovi~avito-listings-scraper/runs": {
            "post": {
                "operationId": "runs-sync-bovi-avito-listings-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/bovi~avito-listings-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-bovi-avito-listings-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "query"
                ],
                "properties": {
                    "query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Keyword(s) to search on Avito (e.g. 'iphone 14', 'ноутбук lenovo', 'велосипед'). Required."
                    },
                    "locationId": {
                        "title": "Location ID",
                        "type": "integer",
                        "description": "Avito numeric location ID for the city or region. Common IDs: 637640 = Moscow, 621540 = Saint-Petersburg, 660311 = All Russia. Default: 660311 (all Russia). Find yours in the Avito URL when you select a location.",
                        "default": 660311
                    },
                    "categoryId": {
                        "title": "Category ID (optional)",
                        "type": "integer",
                        "description": "Optional Avito numeric category ID to restrict results (e.g. 84 = Phones, 10 = Laptops, 9 = Real Estate). Leave blank for all categories."
                    },
                    "priceMin": {
                        "title": "Minimum price (RUB)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return listings priced at or above this amount in rubles. Leave blank for no lower bound."
                    },
                    "priceMax": {
                        "title": "Maximum price (RUB)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return listings priced at or below this amount in rubles. Leave blank for no upper bound."
                    },
                    "maxItems": {
                        "title": "Max listings to scrape",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of listings to return. Default 100. Set to 0 for unlimited (you are charged per listing returned).",
                        "default": 100
                    },
                    "fetchDetails": {
                        "title": "Fetch full listing details",
                        "type": "boolean",
                        "description": "ON (default): visit each listing page for rich fields (description, seller, params). OFF: fast mode — search-API fields only (~10x faster, immune to per-listing rate-limits).",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "REQUIRED. Avito uses aggressive IP-based rate limiting and fingerprinting. Use Apify Residential proxy with country Russia (RU) for best pass rate. No external proxy account needed — Apify built-in residential proxy is billed to your run.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "RU"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
