Skip to content

Variant by avto.net id

GET
/v1/catalog/variants/by-source-ref/{source_ref}
curl --request GET \
--url https://api.avtopodatki.si/v1/catalog/variants/by-source-ref/example \
--header 'Authorization: Bearer <token>'

Find a variant by its avto.net id (source_ref).

This id doesn’t change, so it is the one to store when you reference a variant from your own data.

Requires the catalog.read permission.

source_ref
required
Source Ref

The variant’s id on avto.net (source_ref).

string
<= 32 characters

The variant’s id on avto.net (source_ref).

Successful Response

Media typeapplication/json
VariantDetail

One variant with its full specification.

object
available
required
Available

Whether it is currently on sale.

boolean
first_seen_at
required
First Seen At
string format: date-time
last_seen_at
required
Last Seen At
string format: date-time
discontinued_at
Discontinued At

When it was withdrawn from sale, if it was.

Any of:
string format: date-time
id
required
Id
integer
model_id
required
Model Id
integer
source_ref
required
Source Ref

The variant’s id on avto.net. Doesn’t change; use it to reference a variant.

string
name
required
Name
string
url
Url
Any of:
string
price
Price
Any of:
string
currency
required
Currency
string
fuel_type
Fuel Type

petrol, diesel, electric, … as on market listings. A mild hybrid is its fuel (petrol), with powertrain: mhev.

Any of:
string
transmission
Transmission

manual, automatic, semi_automatic or cvt; a dual-clutch is automatic.

Any of:
string
drive
Drive

fwd, rwd or awd.

Any of:
string
powertrain
Powertrain

ice, mhev, hev, phev, erev, bev or fcev.

Any of:
string
emission_class
Emission Class

euro_6d, euro_6e, … as on market listings; null for electric cars.

Any of:
string
site_fuel_type
Site Fuel Type

The catalogue’s own word for the fuel (Bencin).

Any of:
string
site_transmission
Site Transmission

The catalogue’s own text, with the gear count (Robotiziran, 7 prestav).

Any of:
string
site_drive
Site Drive

The catalogue’s own word (Prednji pogon).

Any of:
string
site_powertrain
Site Powertrain

The catalogue’s own word (Blagi hibrid (MHEV)).

Any of:
string
power_kw
Power Kw
Any of:
integer
engine_ccm
Engine Ccm

Engine displacement in cm³. Null for electric vehicles.

Any of:
integer
battery_kwh
Battery Kwh

Battery capacity in kWh. Null without a battery.

Any of:
string
range_km
Range Km

Electric range in km.

Any of:
integer
num_doors
Num Doors
Any of:
integer
num_seats
Num Seats
Any of:
integer
has_full_specs
required
Has Full Specs

False for the ~4% of variants without full specifications yet: no specs, fuel_type or power_kw.

boolean
brand_id
Brand Id
Any of:
integer
brand_name
Brand Name
Any of:
string
make

The canonical make, as on market listings (GET /v1/market/filter-values); make= takes its slug. name is the catalogue’s own spelling (KIA).

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_name
Model Name

The model’s name. Show it with name: since avto.net’s 22 Nov 2026 redesign a variant’s name is the trim alone (eDrive40 Gran Coupe).

Any of:
string
body_style
Body Style

The body, the market API’s values (suv, hatchback, …); body_style= filters on it.

Any of:
string
site_body_type
Site Body Type

The catalogue’s own word for the body (Limuzina, Kombilimuzina).

Any of:
string
change_30d

Net price change over the last 30 days. Null when the price did not change.

Any of:
PriceChange
object
delta
required
Delta

EUR; negative is a reduction.

string
pct
Pct

Percent of the price 30 days ago, one decimal.

Any of:
string
last_change_at
Last Change At

When the price last changed, at any time.

Any of:
string format: date-time
specs
Specs

Specification groups (Motor, Dimenzije, Zmogljivosti, …). Values are text with units and a decimal comma, e.g. 2157 ccm, 11,3 sek..

object
key
additional properties
object
key
additional properties
string
summary
Summary

Headline features (Povzetek).

Array<string>
equipment
Equipment

Standard equipment by category (Varnost, Komfort / notranjost & zunanjost, …), each a list of items in Slovene. Null when the variant’s equipment has not been read yet; {} when it lists none.

Any of:
object
key
additional properties
Array<string>
dimensions
Dimensions

From the Dimenzije specification group. Null when the source does not say.

object
length_mm
Length Mm
Any of:
integer
width_mm
Width Mm
Any of:
integer
height_mm
Height Mm
Any of:
integer
trunk_l
Trunk L

Boot volume in litres.

Any of:
integer

Example generated

{
"available": true,
"first_seen_at": "2026-04-15T12:00:00Z",
"last_seen_at": "2026-04-15T12:00:00Z",
"discontinued_at": "2026-04-15T12:00:00Z",
"id": 1,
"model_id": 1,
"source_ref": "example",
"name": "example",
"url": "example",
"price": "example",
"currency": "example",
"fuel_type": "example",
"transmission": "example",
"drive": "example",
"powertrain": "example",
"emission_class": "example",
"site_fuel_type": "example",
"site_transmission": "example",
"site_drive": "example",
"site_powertrain": "example",
"power_kw": 1,
"engine_ccm": 1,
"battery_kwh": "example",
"range_km": 1,
"num_doors": 1,
"num_seats": 1,
"has_full_specs": true,
"brand_id": 1,
"brand_name": "example",
"make": {
"slug": "example",
"name": "example"
},
"model_name": "example",
"body_style": "example",
"site_body_type": "example",
"change_30d": {
"delta": "example",
"pct": "example"
},
"last_change_at": "2026-04-15T12:00:00Z",
"specs": {
"additionalProperty": {
"additionalProperty": "example"
}
},
"summary": [
"example"
],
"equipment": {
"additionalProperty": [
"example"
]
},
"dimensions": {
"length_mm": 1,
"width_mm": 1,
"height_mm": 1,
"trunk_l": 1
}
}

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": {}
}
]
}