Skip to content

A model's price range over updates

GET
/v1/catalog/models/{model_id}/price-range
curl --request GET \
--url 'https://api.avtopodatki.si/v1/catalog/models/1/price-range?period=365d' \
--header 'Authorization: Bearer <token>'

The cheapest and dearest of the model’s variants on sale, at each complete update.

Requires the catalog.changes permission.

model_id
required
Model Id

Model id.

integer
>= 1

Model id.

period
Period

How far back, e.g. 365d (default), up to 730d.

string
default: 365d

How far back, e.g. 365d (default), up to 730d.

Successful Response

Media typeapplication/json
PriceRangeOut
object
model_id
required
Model Id
integer
model_name
required
Model Name
string
brand_name
required
Brand Name
string
points
required
Points
Array<object>
PriceRangePoint
object
update_id
required
Update Id
integer
at
required
At
string format: date-time
price_min
Price Min

The cheapest variant on sale.

Any of:
string
price_max
Price Max

The dearest variant on sale.

Any of:
string
variants
required
Variants

Variants on sale with a price.

integer

Example generated

{
"model_id": 1,
"model_name": "example",
"brand_name": "example",
"points": [
{
"update_id": 1,
"at": "2026-04-15T12:00:00Z",
"price_min": "example",
"price_max": "example",
"variants": 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": {}
}
]
}