Search market listings
const url = 'https://api.avtopodatki.si/v1/market/listings?sort=last_seen_at&order=desc&status=active&offset=0&with_total=true';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?sort=last_seen_at&order=desc&status=active&offset=0&with_total=true' \ --header 'Authorization: Bearer <token>'Search vehicle listings — cars unless you pass category (lcv vans,
hcv trucks, bus, … or all).
Returns a summary per listing; GET /v1/market/listings/{id} adds the
description, specifications and photos.
Fuel and transmission take the values GET /v1/market/filter-values lists
(petrol, manual); any other is a 422. By default only active listings are
returned. Pass with_total=false for faster responses when you don’t need the
total count.
Every listing carries the seller’s declared condition — damaged,
accident_free and roadworthy; damaged=true or damaged=false keeps one
side.
Requires the market.read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Column to sort by. One of: last_seen_at, first_seen_at, price, mileage_km, year, published_at.
Column to sort by. One of: last_seen_at, first_seen_at, price, mileage_km, year, published_at.
asc or desc.
asc or desc.
true: only listings the seller declares damaged or faulty; false: every other listing, including those whose condition is not known yet. Omit for both. See damaged on the listing.
true: only listings the seller declares damaged or faulty; false: every other listing, including those whose condition is not known yet. Omit for both. See damaged on the listing.
active (still advertised, the default), removed (sold or withdrawn) or unknown. A removed listing with reposted_as_id (on its detail) was reposted, not sold; the price statistics leave such ads out.
active (still advertised, the default), removed (sold or withdrawn) or unknown. A removed listing with reposted_as_id (on its detail) was reposted, not sold; the price statistics leave such ads out.
Vehicle class: car (the default), lcv (vans), hcv (trucks), bus, moto, other — or all for every class.
Vehicle class: car (the default), lcv (vans), hcv (trucks), bus, moto, other — or all for every class.
Make, the same for every marketplace: a slug (mercedes-benz) or a name in any case or spelling (Mercedes Benz, MB, VW). Values from GET /v1/market/filter-values. An unknown make is a 422 naming the nearest ones.
Make, the same for every marketplace: a slug (mercedes-benz) or a name in any case or spelling (Mercedes Benz, MB, VW). Values from GET /v1/market/filter-values. An unknown make is a 422 naming the nearest ones.
With make: the canonical model line, a slug or a name within that make (golf, GLC); bodies are included (golf takes the Golf Variant), separate models are not (golf-sportsvan). Values from GET /v1/market/filter-values?make=…. Needs make.
With make: the canonical model line, a slug or a name within that make (golf, GLC); bodies are included (golf takes the Golf Variant), separate models are not (golf-sportsvan). Values from GET /v1/market/filter-values?make=…. Needs make.
Fuel type: petrol, diesel, electric, hybrid, plugin_hybrid, lpg, cng, hydrogen, other.
How the vehicle is powered.
HYBRID is a full hybrid. A mild hybrid is its fuel (PETROL or
DIESEL) with Powertrain.MHEV; a range extender is PLUGIN_HYBRID.
Fuel type: petrol, diesel, electric, hybrid, plugin_hybrid, lpg, cng, hydrogen, other.
Transmission: manual, automatic, semi_automatic, cvt, other.
Gearbox type.
Transmission: manual, automatic, semi_automatic, cvt, other.
Exact VIN. Finds every advert for one vehicle, e.g. one advertised twice or relisted. Searches every vehicle class unless you pass category. Most adverts have no VIN.
Exact VIN. Finds every advert for one vehicle, e.g. one advertised twice or relisted. Searches every vehicle class unless you pass category. Most adverts have no VIN.
Body, any of these (repeat the parameter). Each vehicle class has its own list (GET /v1/market/filter-values?category=…); a body outside the class’s list is a 422.
Body, any of these (repeat the parameter). Each vehicle class has its own list (GET /v1/market/filter-values?category=…); a body outside the class’s list is a 422.
Colour, any of these (repeat the parameter).
Colour, any of these (repeat the parameter).
Drive, any of these, as the advert states it. avto.net cars state only four-wheel drive, so fwd and rwd find none of them.
Drive, any of these, as the advert states it. avto.net cars state only four-wheel drive, so fwd and rwd find none of them.
Powertrain, any of these. Use it beside fuel_type: a petrol mild hybrid is fuel_type=petrol and powertrain=mhev. Every electrified one: all values but ice. Mild hybrids a seller doesn’t name are ice.
Powertrain, any of these. Use it beside fuel_type: a petrol mild hybrid is fuel_type=petrol and powertrain=mhev. Every electrified one: all values but ice. Mild hybrids a seller doesn’t name are ice.
Emission class, any of these (repeat the parameter).
Emission class, any of these (repeat the parameter).
This emission class or a later one: euro_6d takes euro_6d, euro_6e and euro_7. Plain euro_6 (stage not stated) ranks below euro_6c.
European emission standard (Euro 1 … Euro 7).
EURO_6 is Euro 6 with its stage not stated. Rank with
:data:avtopodatki_shared.values.EMISSION_ORDER, never by the value string.
This emission class or a later one: euro_6d takes euro_6d, euro_6e and euro_7. Plain euro_6 (stage not stated) ranks below euro_6c.
new, used, demo or pre_registered, any of these. Use it rather than is_new, the marketplace’s own flag.
new, used, demo or pre_registered, any of these. Use it rather than is_new, the marketplace’s own flag.
Gross weight band, any of these: vans and trucks. avto.net states none.
Gross weight band, any of these: vans and trucks. avto.net states none.
Results to skip.
Results to skip.
Include the total count. Set false for faster responses.
Include the total count. Set false for faster responses.
Responses
Section titled “Responses”Successful Response
object
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
{ "items": [ { "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": {} } ]}