Skip to content

The dealer's vehicles

GET
/v1/integrations/stock/vehicles
curl --request GET \
--url 'https://api.avtopodatki.si/v1/integrations/stock/vehicles?sort=first_seen_at&order=desc&offset=0&with_total=true' \
--header 'Authorization: Bearer <token>'

The vehicles you are selling: the active adverts of your seller profiles, every vehicle class unless you pass category.

The filters are those of GET /v1/market/listings and mean the same, but they only ever narrow your own stock. Only active adverts: status other than active is a 422. Newest first unless you sort.

Requires the integration.stock permission.

sort
Sort

One of: first_seen_at, price, year, mileage_km.

string
default: first_seen_at

One of: first_seen_at, price, year, mileage_km.

order
Order

asc or desc.

string
default: desc /^(asc|desc)$/

asc or desc.

category
Category

Vehicle class: car, lcv (vans), hcv (trucks), bus, moto, other. Every class when left out. Values with counts: GET /filter-values (category).

Any of:
CategoryFilter
string
Allowed values: car lcv hcv bus moto other all

Vehicle class: car, lcv (vans), hcv (trucks), bus, moto, other. Every class when left out. Values with counts: GET /filter-values (category).

make
Make

Make: a slug from GET /filter-values (make), such as volkswagen, or a name in any spelling (VW). An unknown make is a 422 naming the nearest ones.

Any of:
string
<= 120 characters

Make: a slug from GET /filter-values (make), such as volkswagen, or a name in any spelling (VW). An unknown make is a 422 naming the nearest ones.

model
Model

With make: a model slug from GET /filter-values (model, with its make), such as golf, or a name. Bodies are included (golf takes the Golf Variant).

Any of:
string
<= 200 characters

With make: a model slug from GET /filter-values (model, with its make), such as golf, or a name. Bodies are included (golf takes the Golf Variant).

family
Family

With make: a model and every model under it (3-series takes the M3).

Any of:
string
<= 200 characters

With make: a model and every model under it (3-series takes the M3).

year_min
Year Min

Earliest model year, inclusive.

Any of:
integer
>= 1900 <= 2100

Earliest model year, inclusive.

year_max
Year Max

Latest model year, inclusive.

Any of:
integer
>= 1900 <= 2100

Latest model year, inclusive.

price_min
Price Min

Minimum advertised price in EUR, inclusive.

Any of:
number

Minimum advertised price in EUR, inclusive.

price_max
Price Max

Maximum advertised price in EUR, inclusive.

Any of:
number

Maximum advertised price in EUR, inclusive.

mileage_max
Mileage Max

Maximum odometer reading in kilometres.

Any of:
integer

Maximum odometer reading in kilometres.

fuel_type
Fuel Type

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

Any of:
FuelType

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.

string
Allowed values: petrol diesel electric hybrid plugin_hybrid lpg cng hydrogen other

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

transmission
Transmission

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

Any of:
Transmission

Gearbox type.

string
Allowed values: manual automatic semi_automatic cvt other

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

body_style
Body Style

Body, any of these (repeat the parameter). Each class has its own bodies; with category, a body outside its list is a 422.

Any of:
Array<string>
Allowed values: sedan hatchback wagon suv coupe convertible van minivan pickup microcar panel_van minibus chassis_cab dropside curtainsider box refrigerated tipper hooklift swap_body tractor_unit car_transporter tow_truck crane platform tanker concrete_mixer refuse timber livestock special city_bus intercity_bus coach scooter maxi_scooter naked touring sport enduro motocross supermoto trial cruiser moped minibike quad utv three_wheeler snowmobile ebike kick_scooter other

Body, any of these (repeat the parameter). Each class has its own bodies; with category, a body outside its list is a 422.

color
Color

Colour, any of these (repeat the parameter).

Any of:
Array<string>
Allowed values: white black grey silver blue red green brown beige yellow orange gold purple other

Colour, any of these (repeat the parameter).

metallic
Metallic

true: metallic paint only. false: paint the advert states is not metallic (only avto.net states it).

Any of:
boolean

true: metallic paint only. false: paint the advert states is not metallic (only avto.net states it).

drive
Drive

Drive, any of these, as the advert states it. avto.net cars state only four-wheel drive (awd).

Any of:
Array<string>
Allowed values: fwd rwd awd chain belt shaft other

Drive, any of these, as the advert states it. avto.net cars state only four-wheel drive (awd).

powertrain
Powertrain

Powertrain, any of these: ice (combustion only), mhev, hev, phev, erev, bev, fcev.

Any of:
Array<string>
Allowed values: ice mhev hev phev erev bev fcev

Powertrain, any of these: ice (combustion only), mhev, hev, phev, erev, bev, fcev.

emission_class
Emission Class

Emission class, any of these (repeat the parameter).

Any of:
Array<string>
Allowed values: euro_1 euro_2 euro_3 euro_4 euro_5 euro_6 euro_6c euro_6d_temp euro_6d euro_6e euro_7 other

Emission class, any of these (repeat the parameter).

emission_class_min
Emission Class Min

This emission class or a later one: euro_6d takes euro_6d, euro_6e and euro_7.

Any of:
EmissionClass

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.

string
Allowed values: euro_1 euro_2 euro_3 euro_4 euro_5 euro_6 euro_6c euro_6d_temp euro_6d euro_6e euro_7 other

This emission class or a later one: euro_6d takes euro_6d, euro_6e and euro_7.

condition
Condition

new, used, demo or pre_registered, any of these.

Any of:
Array<string>
Allowed values: new used demo pre_registered

new, used, demo or pre_registered, any of these.

has_price
Has Price

true: only vehicles with a price; false: only those without (see price_note). Omit for both.

Any of:
boolean

true: only vehicles with a price; false: only those without (see price_note). Omit for both.

q
Q

The advert’s title starts with this text, case-insensitive: Volkswagen matches »Volkswagen Golf«, Golf does not.

Any of:
string
>= 2 characters <= 100 characters

The advert’s title starts with this text, case-insensitive: Volkswagen matches »Volkswagen Golf«, Golf does not.

vin
Vin

Exactly this VIN, where the advert has one.

Any of:
string
>= 11 characters <= 17 characters

Exactly this VIN, where the advert has one.

limit
Limit

Results per page.

Any of:
integer
>= 1

Results per page.

offset
Offset

Results to skip.

integer
0

Results to skip.

with_total
With Total

Include the total count. Set false for faster responses.

boolean
default: true

Include the total count. Set false for faster responses.

If-None-Match
string

The ETag of the answer you have: if nothing changed, the answer is an empty 304.

Successful Response

Media typeapplication/json
Page[WebsiteVehicle]
object
items
required
Items
Array<object>
WebsiteVehicle

One vehicle the dealer is selling: one of their active adverts, with the fields of GET /v1/market/listings/{id} a website shows.

Closed values are codes, the same on every marketplace: category, fuel_type, transmission, body_style, color, drive, powertrain, emission_class and condition. Show them with the labels GET /filter-values gives (lang=sl, en or hr): called without filters, it lists every value your stock has, with its label. null means the advert does not say.

object
id
required
Id

The advert’s own id. It changes when you take the advert down and post the car again: link with vehicle_id.

integer
vehicle_id
required
Vehicle Id

The vehicle’s id: it stays when you take the advert down and post the car again, so a link to it keeps working. GET /vehicles/{vehicle_id} takes it.

integer
url
required
Url

The advert on the marketplace.

string
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 (hatchback, suv, …); its label is in GET /filter-values (body_style).

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
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 (black, grey, …); its label is in GET /filter-values (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
images
required
Images

Its photos and videos, in the advert’s order, as the marketplace shows them. A video is a YouTube link (youtube.com, youtu.be): embed it rather than show it as an image. For now the photos are the marketplace’s own addresses; they will move to ours.

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
first_seen_at
required
First Seen At

When the advert was first seen.

string format: date-time
total
Total

Total number of results, or null when with_total=false.

Any of:
integer
limit
required
Limit
integer
offset
required
Offset
integer

Example

{
"items": [
{
"category": "car",
"price_note": "call_for_price",
"images": [
{
"removed": false
}
]
}
]
}
ETag
string

The answer’s fingerprint: send it back as If-None-Match.

Cache-Control
string

private, max-age=300: keep the answer five minutes on your server.

Not Modified: nothing changed since the ETag you sent in If-None-Match. No body; keep your copy. Costs nothing.

ETag
string

The answer’s fingerprint: send it back as If-None-Match.

Cache-Control
string

private, max-age=300: keep the answer five minutes on your server.

No key, or not a valid one (unauthorized).

Media typeapplication/json
ErrorOut

Every error has this shape.

object
error
required
ErrorInfo
object
code
required
Code

Stable, for your code: unauthorized, forbidden, not_found, validation_error, rate_limited, quota_exceeded, …

string
message
required
Message

Readable text.

string
detail
Detail

More about it, depending on code.

Example generated

{
"error": {
"code": "example",
"message": "example",
"detail": "example"
}
}

The key lacks integration.stock, or the request came from an address the key does not allow (forbidden, ip_not_allowed).

Media typeapplication/json
ErrorOut

Every error has this shape.

object
error
required
ErrorInfo
object
code
required
Code

Stable, for your code: unauthorized, forbidden, not_found, validation_error, rate_limited, quota_exceeded, …

string
message
required
Message

Readable text.

string
detail
Detail

More about it, depending on code.

Example generated

{
"error": {
"code": "example",
"message": "example",
"detail": "example"
}
}

A parameter is not valid (validation_error); detail lists each one. An unknown make names the nearest ones.

Media typeapplication/json
ErrorOut

Every error has this shape.

object
error
required
ErrorInfo
object
code
required
Code

Stable, for your code: unauthorized, forbidden, not_found, validation_error, rate_limited, quota_exceeded, …

string
message
required
Message

Readable text.

string
detail
Detail

More about it, depending on code.

Example generated

{
"error": {
"code": "example",
"message": "example",
"detail": "example"
}
}

Too many calls: 120 a minute per key (rate_limited); wait Retry-After seconds. Or the month’s credits are spent (quota_exceeded).

Media typeapplication/json
ErrorOut

Every error has this shape.

object
error
required
ErrorInfo
object
code
required
Code

Stable, for your code: unauthorized, forbidden, not_found, validation_error, rate_limited, quota_exceeded, …

string
message
required
Message

Readable text.

string
detail
Detail

More about it, depending on code.

Example generated

{
"error": {
"code": "example",
"message": "example",
"detail": "example"
}
}