A model's price range over updates
GET
/v1/catalog/models/{model_id}/price-range
const url = 'https://api.avtopodatki.si/v1/catalog/models/1/price-range?period=365d';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”model_id
required
Model Id
Model id.
integer
Model id.
Query Parameters
Section titled “Query Parameters”period
Period
How far back, e.g. 365d (default), up to 730d.
string
How far back, e.g. 365d (default), up to 730d.
Responses
Section titled “Responses”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>
PriceRangePointExample 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>
ValidationErrorobject
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": {} } ]}