Cars search
Search used and new cars on Avito Auto with car-specific filters.
Loading / 加载中…
Avito.ru API · Classifieds & second-hand data
The Avito.ru API searches classified ads by keyword, city, category, price and seller type, runs dedicated searches for cars and real estate, and opens a single ad with its parameters, seller rating and view counts. Lookups for categories, locations and search suggestions supply the values the searches expect.
JSON in, a structured response out. Every public gateway endpoint uses POST.
Search used and new cars on Avito Auto with car-specific filters.
List Avito.ru categories with node ids and the paths a search accepts.
Open one ad by id or URL for its parameters, seller and view counts.
Find the location slug and id for a Russian city, town or region.
Search apartments, rooms, houses, land, garages and commercial property for sale or rent.
Search ads in any category by keyword, category, location, price and seller type.
Return the suggestions Avito shows for a partly typed query, with a category and filters for each.
The search operations return rows in listings, and each row describes one ad:
| Field | What it tells you |
|---|---|
title, subtitle | the ad headline and a secondary line under it |
category | the ad's category with its id, name, slug and root category id |
published_at | when the ad was posted |
params_summary | a short summary of the ad's key parameters |
description_snippet | the opening part of the ad text |
images, images_count | the pictures of the ad and how many there are |
has_video | whether the ad carries a video |
delivery_available | whether Avito Delivery is offered, with delivery_text giving its wording |
is_reserved | whether the item is marked as reserved |
Prices on ads come in several forms, so the price fields carry the context. price holds the amount in currency, and price_text gives the price as displayed. price_is_from shows that the amount is a starting price, while price_min and price_max describe a range.
is_free shows a free ad, and price_not_published shows an ad whose seller stated no price. price_period records the period that a rent or salary price covers.
Discounts have their own fields. price_before_discount and discount_percent show the reduction, and price_lowered shows that the price was cut. price_per_unit gives a value and a unit, such as price per m² on real estate rows.
Rows with paid placement carry is_promoted, and paid_services lists the services applied to them. The search operations drop these rows by default and report how many were removed in sponsored_dropped, while promoted_on_page reports the paid rows found on the page. Setting body.include_sponsored to true keeps them in listings.
When a search finds nothing, Avito pads the page with unrelated ads. avito-search leaves that padding out unless body.include_fallback_results is true. In that case the padding comes back separately in fallback_results, and fallback_results_dropped reports how many fallback ads were dropped.
Seller filters differ between the searches. avito-search and avito-cars-search take private for individuals or company for shops and businesses in body.seller_type.
avito-real-estate-search offers private, developer and agency for apartments on sale, and owner and agency for apartments for rent. body.delivery_only on avito-search limits results to ads with Avito Delivery.
The seller block of each row describes who is selling:
type and type_label: the seller category and its display labelrating, rating_scale and reviews_count: the average rating, the scale it uses and the number of reviewshas_shop and closed_ads_count: whether the seller runs a shop and how many ads the seller has closedreseller_likely and reseller_reasons: whether the seller looks like a reseller, with the reasonsPrivate sellers' names, typed addresses and exact coordinates are withheld, and name_withheld and coordinates_withheld show it. body.include_pii set to true returns them.
avito-listing returns one listing that goes further than a search row. status and closed_status_text tell whether the ad is still open, expires_at gives its expiry, and views splits into total and today.
The full description replaces the search row's snippet, images holds the pictures and breadcrumbs shows the category path. Each published parameter appears in params as an attribute_id, a name and a value.
Some blocks depend on the ad type:
vehicle describes a car by its year, mileage in km (mileage_km), engine, gearbox, drive, body type, colour, condition, owners and VINproperty describes real estate by rooms, area in m², floor and renovation, and adds a market_estimate with estimated, lowest, highest and a verdictAvito turns many keywords into a category with filters, and body.category_detection decides whether an avito-search call follows that behaviour. Left on, a keyword such as iphone becomes the phones category with an Apple filter, as it does on the site.
Set to false, the keyword stays a plain keyword search. query_interpreted_as shows the category path and a note for what was applied, and filters_applied shows the filters that were in force.
Avito.ru is a Russian classified advertisements website where people post goods for sale, jobs, real estate, personal ads, cars and services. It started in Moscow in 2007 and was founded by Swedish entrepreneurs. It is described as Russia's largest classifieds platform, and in December 2021 it became the world's most-visited classifieds site.
POST /api/v1/avito/<action> with x-api-key, Content-Type: application/json and a required Idempotency-Key.ok: true: data is the result of the operation, meta.requestId identifies the recorded request and meta.chargedCreditUnits is the amount charged. Otherwise ok is false and error.code names the reason; read ok and error.code rather than relying on the HTTP status alone. Every gateway reply carries a request id for support: meta.requestId, or a top-level requestId in a reply without meta (such as a refusal before admission).body.max_rotations takes 0 to 20 on every operation except avito-categories; a value outside that range is ignored and the default of 0 applies.avito-listing requires body.ad_id, avito-real-estate-search requires body.transaction, and avito-locations and avito-suggest require body.query.avito-locations expects at least 2 letters in body.query, and avito-suggest expects at most 64 characters there.avito-cars-search needs body.make whenever it is given body.model, a year or mileage bound, body.fuel, body.drive or body.seller_type.body.market applies to apartments for sale.Call avito-search with the keyword in body.query and a city slug such as moskva in body.location. Without a location the search runs across Russia. Russian and Latin keywords both work, and each page returns 50 rows in listings. count shows how many rows the page holds, and search_url holds the URL of the search itself.
Send the place name to avito-locations in body.query, either in Russian such as казань or transliterated. Each match in locations has a slug, a name, a region and a location_id. Put the slug into body.location of any search operation. A few major city names, such as Москва, can also be sent to body.location directly.
Call avito-categories, optionally with body.query to filter by category name or path. Category names are Russian, so a Russian fragment such as диван works as the filter. Pass a node id, a Russian name or a path such as telefony/mobilnye_telefony as body.category to avito-search to restrict a keyword search to that branch.
Send the ad id as body.ad_id to avito-listing. The id is the string of digits at the end of an ad URL, such as 8341164961, and the full URL is accepted too. The seller block of the record adds the shop name as shop_name, the contact_person and how quickly the seller answers in reply_time, and param_groups gathers related parameters into groups such as building and rent_terms.
Use avito-cars-search with body.make as it appears in Avito URLs, such as toyota, and body.model such as camry. The body.condition input separates used from new cars, body.year_min and body.year_max limit the model year, and the mileage bounds count kilometres. body.fuel and body.drive take arrays. body.query adds a free-text keyword on top of the make and model, and rows come back newest first unless body.sort says otherwise.
Call avito-real-estate-search with body.transaction set to rent_long for long-term rent or rent_daily for daily rent, and body.location set to a slug. Apartments are searched by default. Add body.rooms as an array of values such as studio, 2 or 10_plus, then body.area_min and body.area_max in square metres. For purchases, sale replaces the rent values and body.market separates secondary resale from new_build.
Each page holds 50 rows and body.page runs from 1 to 30, so one query is paged through a window of 1,500 rows. has_more shows whether another page follows, and pageable_total next to total shows how many matches paging can reach. A narrower query, for example with price bounds or a category, gets a window of its own.
Send the partial text to avito-suggest in body.query, for example айфо. Each entry in suggestions returns a completed query, a category_id and the filters Avito applies to it, and related_words lists related terms. Run avito-search with the chosen suggestion's query once the user picks one, because suggestions return completions rather than ad rows.
The body.sort input exists on avito-search, avito-cars-search and avito-real-estate-search, each with its own set of orders. newest is the default order. price_asc and price_desc order by price, and relevance is Avito's own order, where paid rows rank first. avito-search adds discount, which puts the biggest discount first for goods, and avito-cars-search adds year_desc and mileage_asc. avito-real-estate-search offers newest, relevance, price_asc and price_desc only.