Avito Scraper avatar

Avito Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
Avito Scraper

Avito Scraper

Scrapes search-result listings from Avito (avito.ru) by keyword, category, region and price range.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

SilentHunter

SilentHunter

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

15 hours ago

Last modified

Share

Avito Scraper (Apify Actor)

Scrapes search-result listings from Avito (avito.ru). You provide a keyword, optional category/region and a price range; the actor builds the search URL, paginates through results and stores each listing card in the dataset.

Scope: search-result cards only. It does not open individual ad pages and does not collect phone numbers.

Features

  • Structured search — by keyword, region, category and price range, with sorting.
  • Or paste URLs — feed ready-made Avito search/category URLs via startUrls.
  • Hybrid engine — Chrome-TLS-fingerprinted HTTP (impit) for speed, with a headless-browser fallback used only to resolve Avito's category redirect; pagination then runs over HTTP.
  • Rich data from Avito's own JSON — exact price, posted date, GPS coordinates, category, photo count and seller rating; robust to HTML/markup changes.
  • Public data only — listing cards, no phone numbers and no personal data.

How it works

Avito renders search results client-side. A plain keyword search (/{region}?q=...) returns a JavaScript shell with no listings, then redirects — via in-page JS — to a canonical category URL (/all/{category}/mobile-<code>?...) that is server-side rendered with the cards. The actor uses a hybrid engine that exploits this:

  1. Fast HTTP passCheerioCrawler over impit (real Chrome TLS + HTTP/2 fingerprint, no browser; this is what gets past Avito's Cloudflare TLS fingerprinting). If the URL already resolves to a rendered results page — e.g. a results URL you pasted into startUrls straight from your browser — the cards are parsed here directly, fast and cheap.
  2. Browser passPlaywrightCrawler (headless Chromium with browser fingerprints). A bare keyword search only yields the JS shell over HTTP, so it is handed to the browser, which runs Avito's redirect and extracts the first page of cards. It then captures the resolved category URL and hands the remaining pages back to the fast impit pass — so the browser is used only for the one-time redirect resolution and pagination runs over HTTP.

Listings are parsed from the page's embedded catalog JSON (Avito's server-rendered state), which is more robust than HTML scraping and carries richer fields (exact price, posted timestamp, coordinates, category, photo count, seller rating). DOM selectors remain as a fallback. Because the data comes from that JSON, the browser pass blocks images, fonts, CSS and third-party trackers — cutting page weight and per-IP rate-limit pressure.

Both passes rotate identities via Crawlee's SessionPool, retire blocked sessions, and are rate-limited (maxRequestsPerMinute) to avoid hammering a single IP.

Tip: to skip the browser entirely, paste the results URL from your browser's address bar (after Avito has redirected to the category page) into startUrls — those pages are server-rendered, so the fast HTTP pass handles them on its own.

Input

You must provide either keyword or startUrls.

FieldTypeRequiredDescription
keywordstringyes*Search query (the q parameter). Required unless startUrls is set.
startUrlsarrayyes*Ready-made Avito search URLs (copy from your browser). Take precedence over keyword/region/category and bypass Avito's category redirect.
regionstringnoRegion slug from the Avito URL. Default rossiya (all Russia).
categorystringnoCategory slug. Empty = all categories.
priceMinintegernoLower bound of the price range (→ pmin).
priceMaxintegernoUpper bound of the price range (→ pmax).
maxItemsintegernoMax listings to collect. Default 100.
sortstringnoResult order: default, date (newest), priceAsc (cheaper first), priceDesc (expensive first). Maps to Avito's s param.
proxyConfigurationobjectyes*Proxy. Prefilled to Apify Residential, country RU.

* Russian residential proxies are effectively required — see below.

Region / category slugs

Use the slugs exactly as they appear in an Avito URL, e.g.:

  • Regions: rossiya, moskva, sankt-peterburg, novosibirsk, ekaterinburg
  • Categories: avtomobili, kvartiry, telefony, noutbuki, tovary_dlya_kompyutera

Tip: open Avito in a browser, set your filters, and copy the path segments from the resulting URL.

Example input

{
"keyword": "iphone 15",
"region": "moskva",
"category": "telefony",
"priceMin": 30000,
"priceMax": 70000,
"maxItems": 100,
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"],
"apifyProxyCountry": "RU"
}
}

Output

Each dataset item (fields are read from Avito's embedded catalog JSON):

{
"id": "7685094754",
"title": "iPhone 17, 256 ГБ",
"price": 53490,
"priceString": "53 490 ₽",
"currency": "RUB",
"url": "https://www.avito.ru/ekaterinburg/telefony/iphone_17_256_gb_7685094754",
"location": "Свердловская обл., Екатеринбург",
"locationId": 654070,
"lat": 56.830664,
"lng": 60.589794,
"categoryId": 84,
"categorySlug": "telefony",
"categoryName": "Телефоны",
"postedDate": "2026-05-31T20:05:23.000Z",
"postedTimestamp": 1780257923000,
"imageUrl": "https://...",
"photoCount": 7,
"description": "iPhone 17, 256 ГБ. Оригинальный, запечатанный…",
"sellerRating": 4.9,
"sellerReviews": "3 252 отзыва",
"isVerified": false,
"isNew": false,
"isPromoted": false,
"category": "telefony",
"region": "rossiya",
"keyword": "iphone",
"scrapedAt": "2026-05-31T12:00:00.000Z"
}

category/region/keyword echo your search input; categorySlug/locationId/etc. describe the listing itself. Some fields can be empty for certain listings (e.g. location/lat/lng when Avito hides the exact address — locationId is always present). If the embedded JSON is ever unavailable, the DOM fallback fills the core fields (id, title, price, url, location, imageUrl).

Proxies — important

Avito sits behind Cloudflare and rate-limits per IP. The TLS impersonation above defeats fingerprint-based detection, but IP reputation and per-IP rate limits still matter — so the proxy pool is decisive.

  • Apify Residential, country RU — the prefilled default. Apify Proxy has no selectable "mobile" group, so residential is the strongest Apify-native option for Avito (its pool does include some mobile IPs, but they can't be isolated).
  • The pool must be large. A handful of IPs gets detected and banned quickly; Avito's limits are aggressive. Prefer a big rotating residential pool.
  • Custom proxies for true mobile IPs. Carrier (mobile) IPs are rate-limited by Avito far less aggressively, but Apify doesn't offer them as a group. To use them, pick "Custom proxies" in the proxy editor and paste URLs from an external mobile provider (e.g. BrightData mobile). Datacenter IPs can work only with a very large rotating pool.

Without a decent Russian IP pool the actor will mostly hit "Доступ ограничен" block pages regardless of the engine.

Running locally

npm install
npx playwright install chromium # only needed for the browser fallback pass
apify login # required to use Apify residential proxies locally
apify run --purge # reads input from storage/key_value_stores/default/INPUT.json

Results land in storage/datasets/default/.

Deploy

$apify push

FAQ

Why are Russian proxies required? Avito is geofenced and Cloudflare-protected; without a Russian IP pool you mostly get "Доступ ограничен" block pages. See Proxies above.

Why does it launch a browser? A bare keyword search returns a JS shell and Avito resolves the category client-side. The browser runs that redirect once, then the fast HTTP pass takes over. Paste a resolved category URL into startUrls to skip the browser entirely.

Does it collect personal data? No. Only public listing fields (title, price, location, photos, rating, etc.). No phone numbers and no seller contact details.

Which regions and categories are supported? Any — use the slugs from an Avito URL (see above). Default region is rossiya (all Russia), all categories.

Why are some location fields empty? Avito hides the exact address for certain listings; locationId is always present.

Avito's Terms of Service restrict automated scraping. This actor collects only public listing fields and no personal data (no phone numbers, no seller contact details). You are responsible for ensuring your use complies with Avito's terms and applicable law; keep request volumes modest.