Skip to content

One listing

GET
/v1/market/listings/{listing_id}
curl --request GET \
--url https://api.avtopodatki.si/v1/market/listings/1 \
--header 'Authorization: Bearer <token>'

One listing with its full details: description, specifications, seller and photos.

And its repost chain: a seller who takes an ad down and posts the same car again starts a new ad, linked to the one it replaced. reposts, listed_since and days_advertised are the car’s across its ads; reposted_as_id on a removed ad means it was reposted, not sold.

description_html is the seller’s own HTML — sanitize it before displaying.

Requires the market.read permission.

listing_id
required
Listing Id

Listing id.

integer
>= 1

Listing id.

Successful Response

Media typeapplication/json
ListingDetail

A listing with all details.

object
id
required
Id
integer
site_id
required
Site Id
integer
external_id
required
External Id
string
url
required
Url
string
status
required
ListingStatus
string
Allowed values: active removed unknown
category
required
VehicleCategory

Vehicle class: car, lcv (van), hcv (truck), bus, moto, other.

string
Allowed values: car lcv hcv bus moto other
title
required
Title

The advert’s title, as the seller wrote it.

Any of:
string
make

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.

Any of:
MakeOut

A canonical make: the same for every marketplace.

object
slug
required
Slug

What make= takes: mercedes-benz.

string
name
required
Name

How to show it: Mercedes-Benz.

string
model

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.

Any of:
ModelOut

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
slug
required
Slug

What model= takes, with make=.

string
name
required
Name

The maker’s international name: 3 Series, C-Class.

string
family

The model heading its family, if it belongs to one.

Any of:
FamilyOut

The model heading a model’s family: the M3’s 3 Series.

object
slug
required
Slug

What family= takes, with make=.

string
name
required
Name
string
site_make
Site Make

The marketplace’s own make text (“VW”, “KGM SsangYong”).

Any of:
string
site_model
Site Model

The marketplace’s own model text (“C-Razred”, “Golf Variant 2.0 TDI”).

Any of:
string
price
required
Price

The advertised price, in currency; null if the advert has none (price_note).

Any of:
string
discount_price
Discount Price

A reduced price anyone can pay (AKCIJSKA CENA, ZNIŽANA CENA). Prices that need a condition — financing, a voucher — are in conditional_price instead.

Any of:
string
conditional_price
Conditional Price

A lower price available only on a condition, named in price_condition — most often dealer financing. Not a discount: a cash buyer cannot pay it.

Any of:
string
price_condition
Price Condition

The marketplace’s label for conditional_price, e.g. CENA S FINANCIRANJEM (with financing), FINANCIRANJE+BON, Z BONOM (with a voucher).

Any of:
string
currency
required
Currency

ISO 4217 code of the prices: EUR.

string
price_note

Why price is null, when it is.

Any of:
PriceNote
string
Allowed values: call_for_price negotiate
year
required
Year

Model year.

Any of:
integer
first_registration
required
First Registration

Date of first registration.

Any of:
string format: date
mileage_km
required
Mileage Km

Odometer reading in kilometres.

Any of:
integer
fuel_type
required
Fuel Type

Fuel type: petrol, diesel, electric, hybrid, plugin_hybrid, lpg, cng, hydrogen, other.

Any of:
string
transmission
required
Transmission

Transmission: manual, automatic, semi_automatic, cvt, other.

Any of:
string
engine_power_kw
required
Engine Power Kw

Engine power in kW (× 1.36 for hp).

Any of:
integer
location
required
Location

Where the vehicle is, as the advert says.

Any of:
string
is_new
required
Is New

New, as the marketplace flags it. Filter and group by condition instead.

Any of:
boolean
vin
Vin

Vehicle identification number, if the seller published it (most don’t). Identifies the same car across adverts.

Any of:
string
damaged
Damaged

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).

Any of:
boolean
accident_free
Accident Free

true when the seller states the car was never in an accident. false only on mobile.de, which can state an accident (Repaired accident damage, Accident-damaged vehicle); Avto.net has no such box, so there it is true or null. null: not stated.

Any of:
boolean
roadworthy
Roadworthy

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.

Any of:
boolean
for_parts
For Parts

true: sold for parts only. Only Njuškalo states it (true or false); null elsewhere. Left out of price statistics.

Any of:
boolean
body_style
Body Style

The body, the same values on every marketplace; each vehicle class has its own list. Labels and lists: GET /v1/market/filter-values. null: not stated (or a trailer or machine).

Any of:
string
powertrain
Powertrain

ice, mhev, hev, phev, erev, bev or fcev. Read it beside fuel_type. A mild hybrid its seller doesn’t name is ice.

Any of:
string
condition
Condition

new, used, demo or pre_registered; null when not stated. Use it rather than is_new, the marketplace’s own flag.

Any of:
string
weight_class
Weight Class

Gross weight band of a van or truck: up_to_3_5t, 3_5t_to_7_5t, over_7_5t. avto.net states none.

Any of:
string
first_seen_at
required
First Seen At
string format: date-time
last_seen_at
required
Last Seen At
string format: date-time
detail_pending
required
Detail Pending
boolean
full_title
required
Full Title

The advert’s full title, where the marketplace gives one besides title.

Any of:
string
engine_ccm
required
Engine Ccm

Engine displacement in cm³.

Any of:
integer
battery_kwh
required
Battery Kwh

Battery capacity in kWh (electrified cars).

Any of:
integer
num_owners
required
Num Owners

Number of owners, as the seller states it.

Any of:
integer
num_doors
required
Num Doors

Number of doors.

Any of:
integer
num_seats
required
Num Seats

Number of seats.

Any of:
integer
color
Color

The colour, the same values on every marketplace (black, grey, …); label it from GET /v1/market/filter-values. The marketplace’s own words are in attributes.site_color.

Any of:
string
metallic
Metallic

Metallic paint. true or false on avto.net; elsewhere true or null, as only metallic paint is marked.

Any of:
boolean
drive
Drive

fwd, rwd, awd; motorbikes chain, belt, shaft; other. As stated: avto.net cars state only awd, so null is not two-wheel drive.

Any of:
string
emission_class
Emission Class

euro_1 … euro_7, with the Euro 6 stages; euro_6 means the stage isn’t stated. other, or null when not stated.

Any of:
string
gross_weight_kg
Gross Weight Kg

Gross vehicle weight in kg (mobile.de only).

Any of:
integer
description_html
Description Html

The seller’s description as HTML. Sanitize before displaying.

Any of:
string
attributes
Attributes

Further specifications, depending on marketplace and vehicle type.

object
key
additional properties
any
published_at
required
Published At
Any of:
string format: date-time
views
required
Views
Any of:
integer
removed_at
required
Removed At
Any of:
string format: date-time
seller
Any of:
SellerSummary

The listing’s seller. Full details: GET /v1/market/sellers/{id}.

object
id
required
Id
integer
name
required
Name
Any of:
string
seller_type
required
SellerType

Who placed a listing: a business or a private person.

UNKNOWN is the source not saying, an exception to the module’s rule that “not stated” is no value: a seller is always stored with a type, so the column is never NULL.

string
Allowed values: company person unknown
images
Images

The listing’s current photos, in page order. Empty when it has none.

Array<object>
ListingImageOut

One of the listing’s current photos.

object
url
required
Url

The photo at the marketplace’s own address.

string
position
required
Position

Its place on the listing’s page, from 0.

integer
removed
Removed

Always false: only the listing’s current photos are kept. Deprecated; it will be removed.

boolean
repost_of_id
Repost Of Id

The ad this one replaced (an older ad for the same car), if any.

Any of:
integer
repost_root_id
Repost Root Id

The first ad of this car’s chain, when this is a repost.

Any of:
integer
reposted_as_id
Reposted As Id

The ad that replaced this one. A removed ad with it was reposted, not sold.

Any of:
integer
reposts
Reposts

How many times the car was reposted: its chain’s ads but the first. GET /v1/market/listings/{id}/chain lists them.

integer
0
listed_since
Listed Since

When the car first appeared: its first ad’s publication (or first sighting).

Any of:
string format: date-time
days_advertised
Days Advertised

Days the car has been on sale across its chain, gaps between ads not counted: each ad from its publication to when it was last seen (or now). Use it for “days on sale”.

Any of:
number

Example

{
"status": "active",
"category": "car",
"price_note": "call_for_price",
"seller": {
"seller_type": "company"
},
"images": [
{
"removed": false
}
],
"reposts": 0
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}