The car's repost chain
const url = 'https://api.avtopodatki.si/v1/market/listings/1/chain';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.avtopodatki.si/v1/market/listings/1/chain \ --header 'Authorization: Bearer <token>'Every ad of this listing’s car, oldest first: the ad it replaced, the ads before that, and the one that replaced it.
A seller who takes an ad down and posts the same car again starts a new ad; the ads are linked by VIN or, failing that, by the same seller, model, registration and mileage. One ad when the car was never reposted.
Requires the market.read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Listing id.
Listing id.
Responses
Section titled “Responses”Successful Response
A listing, as returned in search results.
object
Vehicle class: car, lcv (van), hcv (truck), bus, moto, other.
The canonical make. null: the marketplace named no make, or something that is none (“Ostale marke”, an ATV). Can differ from site_make: Mitsubishi’s “Canter” is a FUSO.
A canonical make: the same for every marketplace.
object
What make= takes: mercedes-benz.
How to show it: Mercedes-Benz.
The canonical model. null: no model was found. Today cars and vans, and trucks and buses where the advert names one (Atego, TGL); motorbikes have none yet.
A canonical model line, the same for every marketplace. Bodies are
folded in (a Golf Variant is a golf); a separate product is a model of
its own (golf-sportsvan, m3).
object
What model= takes, with make=.
The maker’s international name: 3 Series, C-Class.
ISO 4217 code of the prices: EUR.
Whether the seller declares unrepaired damage or a defect: on Avto.net the boxes poškodovano (damaged), v okvari (faulty) or ni vozno (not drivable), on mobile.de the Damaged flag. false means the advert declares none, which is how both marketplaces’ own searches treat it; null means the full advert has not been read yet. Declared by the seller, not inspected. A car can be damaged and accident-free at once (hail, a mechanical fault).
false when the seller states the car is not roadworthy (Avto.net ni vozno, mobile.de Not roadworthy). true only where mobile.de states it is ready to drive; Avto.net never states it, so there it is false or null. Avto.net counts a car that is not roadworthy as damaged; mobile.de keeps the two apart.
Example
[ { "status": "active", "category": "car", "price_note": "call_for_price" }]Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}