Variant by avto.net id
const url = 'https://api.avtopodatki.si/v1/catalog/variants/by-source-ref/example';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The variant’s id on avto.net (source_ref).
The variant’s id on avto.net (source_ref).
Responses
Section titled “Responses”Successful Response
One variant with its full specification.
object
Whether it is currently on sale.
The variant’s id on avto.net. Doesn’t change; use it to reference a variant.
False for the ~4% of variants without full specifications yet: no specs, fuel_type or power_kw.
The canonical make, as on market listings (GET /v1/market/filter-values); make= takes its slug. name is the catalogue’s own spelling (KIA).
A canonical make: the same for every marketplace.
object
What make= takes: mercedes-benz.
How to show it: Mercedes-Benz.
Net price change over the last 30 days. Null when the price did not change.
Specification groups (Motor, Dimenzije, Zmogljivosti, …). Values are text with units and a decimal comma, e.g. 2157 ccm, 11,3 sek..
object
object
Headline features (Povzetek).
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
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}