Vehicle listing lookup
Returns one AUTO.RIA vehicle advert's full detail by its id, including price, mileage, VIN, photos and seller.
Loading / 加载中…
AUTO.RIA Vehicle Listings API · Classifieds & second-hand data
This API has eight operations drawn from AUTO.RIA, Ukraine's vehicle marketplace. One reads a single advert by id and another reads up to 25 at once; four return the manufacturer, model, region and reference lists AUTO.RIA's own search filters take as input; the remaining two search AUTO.RIA's inventory by make, price, year, mileage, fuel, region and more, one returning detailed rows and the other returning only ids and a total count.
JSON in, a structured response out. Every public gateway endpoint uses POST.
Returns one AUTO.RIA vehicle advert's full detail by its id, including price, mileage, VIN, photos and seller.
Returns up to 25 AUTO.RIA vehicle adverts in one call, by id, reporting any ids AUTO.RIA does not recognize separately.
Returns every manufacturer AUTO.RIA lists for a vehicle category, with the id its make filter takes.
Returns every model AUTO.RIA lists under one manufacturer, with the id its model filter takes.
Returns AUTO.RIA's own closed lists of vehicle categories, body styles, gearbox types or drive types.
Returns Ukraine's oblasts, or one oblast's cities, with the ids the region and city filters take.
Searches AUTO.RIA's current listings by make, price, year, mileage, region and more, returning detailed rows and an exact matching total.
Runs the same search as listing search but returns only the matching ids and total, for sizing or paging a large result set.
body.category on autoria-makes, autoria-models, autoria-reference, autoria-search and autoria-search-ids chooses one of AUTO.RIA's eight vehicle catalogues, the first one below by default:
cars: passenger carsmoto: motorbikes and scooterswater: boats and other watercraftspecial: special machinerytrailers: towed trailerstrucks: trucks and vansbuses: passenger busesagricultural: agricultural machineryEach catalogue has its own manufacturer and model lists, which autoria-makes and autoria-models return as id and name pairs rather than names alone; body.make and body.model on the other operations then accept either the returned name or its numeric id, with a name costing one extra lookup compared to sending the id straight from autoria-makes or autoria-models. AUTO.RIA's cars catalogue alone lists over 500 manufacturers, including Chinese electric-vehicle brands that are not part of every vehicle catalogue.
body.listing_type on autoria-search and autoria-search-ids adds two further values beyond used/new:
order: vehicles offered to order or in transitall: every surface togetherautoria-listing and autoria-listings take only used or new. Reading an id under the wrong listing_type does not fail outright; because the new-car and used-car id ranges are numbered independently of each other and overlap, it can simply answer for the wrong vehicle instead. The overlap is concrete, not theoretical: id 2085460 names a Peugeot 2008 under the new-car namespace and an archived Subaru Forester under the used one, and each namespace answers for its own vehicle rather than refusing the id.
body.price_from_usd and body.price_to_usd on autoria-search and autoria-search-ids set the lowest and highest asking price AUTO.RIA's own price filter accepts, in US dollars from 0 up to 10,000,000. body.mileage_from_km and body.mileage_to_km take an odometer reading in kilometres from 0 up to 3,000,000, but AUTO.RIA's own mileage filter works in thousands of kilometres, so each value is rounded down to the nearest 1,000 km before it is applied. body.engine_from_l and body.engine_to_l set the smallest and largest engine displacement in litres, from 0 up to 30.
body.make accepts a manufacturer either as the name autoria-makes returns, such as Audi, or as that manufacturer's numeric id; sending the name costs one extra lookup against autoria-makes compared to sending the id directly, and a name AUTO.RIA does not recognize is rejected rather than matched loosely. body.seller_type filters listings to private sellers or dealers.
body.has_video and body.has_photo filter to listings carrying at least one video or photo, and body.vin_verified filters to listings whose VIN AUTO.RIA has checked; body.auction_possible filters to sellers open to bidding or haggling. body.sort on autoria-search and autoria-search-ids takes relevance, the default, which sends no sort key, uses AUTO.RIA's own ranking, and returns no duplicate across its own pages; newest, which can repeat or skip a row between pages as new ads keep arriving; or price_asc and price_desc, which return the result set in opposite order from each other, sharing none of the same rows.
autoria-reference's body.list chooses one of AUTO.RIA's own closed lists, each returned as id and name pairs, with a parent_id on an entry that belongs under a broader one:
categories: the vehicle categories body.category takesbody_types: body styles for a categorygearboxes: gearbox types for a categorydrive_types: drive types returned on every listing but not offered as a filterbody_types and gearboxes are the same lists body.body_type_id and body.gearbox draw their ids and values from on autoria-search and autoria-search-ids.
AUTO.RIA is an online marketplace in Ukraine where private sellers and dealers list used and new vehicles for sale. Before a used-car listing appears in search, an automated check reviews its photos, description and posting history, and removes or blocks sellers whose listing shows signs of fraud. A listed vehicle's VIN is cross-checked against vehicle and movable-property registries, and its accident history is checked against insurer and dealer databases.
{
"body": {
"category": "cars"
}
}POST /api/v1/autoria/<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.year_from and body.year_to on autoria-search and autoria-search-ids take a model year from 1900 to 2030.body.max_results defaults to 20 rows on autoria-search but to 100 on autoria-search-ids.body.model on autoria-search and autoria-search-ids is only accepted together with body.make.body.make or body.model name is rejected rather than matched loosely or silently ignored.body.mileage_from_km and body.mileage_to_km are rounded down to the nearest 1,000 km before AUTO.RIA applies them.body.body_type_id is accepted as a value but returns zero rows rather than an error.Call autoria-listing with body.listing_id set to the advert id, as autoria-search or autoria-search-ids returns it. body.listing_type picks the id namespace, used by default, covering ids from used, order and all searches; pass new only when the id came from a new search. Because new and used id ranges overlap, the same number can name a different vehicle in each namespace, so an id brought in from outside a search needs its matching listing_type.
Call autoria-listings with body.listing_ids set to up to 25 comma-separated advert ids. Ids AUTO.RIA does not recognize come back in not_found instead of failing the whole call, so a batch of mixed valid and invalid ids still returns every row it can find. body.listing_type applies to the whole batch the same way it applies to a single autoria-listing call, defaulting to used.
body.listing_type on autoria-listing and autoria-listings tells AUTO.RIA which id namespace to read, and it matters because the new and used ranges overlap: the same number can be a new-car advert in one namespace and an archived used advert in the other. autoria-search and autoria-search-ids route each row to the right namespace automatically, so this choice only comes up when you already hold an id from somewhere other than a search.
Send the same filters to autoria-search-ids instead of autoria-search. It answers the same total_available count and the same ordering, but its data holds listing_ids rather than full rows, and body.max_results goes up to 100 per call instead of 40, making it the cheaper way to size a search or page through a large result set before fetching each one's detail through autoria-listings.
Send body.region as the oblast's name, in the shape autoria-regions returns it, or as its numeric id. Send body.city the same way, but resolving a city by name also needs body.region in the same call; a numeric city id works on its own. Calling autoria-regions without body.region lists the oblasts, and calling it with one returns that oblast's cities.
Raise body.page by one on each call, from its default of 1 up to 5,000, keeping the same filters each time. autoria-search reads up to 40 rows per page (body.max_results) and autoria-search-ids up to 100; total_available on the response is AUTO.RIA's own exact count for the filters sent, not an estimate, so it tells you directly how many pages remain.
body.price_from_usd and body.price_to_usd filter in US dollars only; there is no filter denominated in another currency. A matching row's own price fields carry all three currencies AUTO.RIA publishes for it, plus a display price and a conflict flag for cases where the three do not agree, so filtering in USD and reading a row's price fields are two different things.
Send body.accident_history set to none for a vehicle AUTO.RIA has never flagged as having been in an accident, or had_accident for one it has. Send body.vin_verified set to true for a listing whose VIN AUTO.RIA has checked. The two filters are independent of each other, so combining them narrows a search to vehicles that satisfy both at once.