Skip to content

Price index over updates

GET
/v1/catalog/index
curl --request GET \
--url https://api.avtopodatki.si/v1/catalog/index \
--header 'Authorization: Bearer <token>'

How list prices moved since a starting point, as an index (start = 100).

At every complete update after the start, each variant’s price is divided by its price at the start, and the series is the median of those ratios × 100. Only variants on sale and priced at both points count, so a new or withdrawn model does not move the index; variants says how many did. The first series covers the brand filter (all brands without one); each compared brand gets its own.

Requires the catalog.changes permission.

from
From

The starting update. Excludes period.

Any of:
integer
>= 1

The starting update. Excludes period.

period
Period

Instead of from: how far back to start, e.g. 90d (default).

Any of:
string

Instead of from: how far back to start, e.g. 90d (default).

brand_id
Brand Id

The main series’ brands. Repeatable.

Any of:
Array<integer>

The main series’ brands. Repeatable.

brand
Brand

The main series’ brands by name, case-insensitive. Repeatable.

Any of:
Array<string>

The main series’ brands by name, case-insensitive. Repeatable.

compare_id
Compare Id

A brand to plot beside it, by id. Repeatable.

Any of:
Array<integer>

A brand to plot beside it, by id. Repeatable.

compare
Compare

A brand to plot beside it, by name. Up to 5 in all.

Any of:
Array<string>

A brand to plot beside it, by name. Up to 5 in all.

Successful Response

Media typeapplication/json
IndexOut
object
from_id
From Id
Any of:
integer
from_at
required
From At
string format: date-time
series
required
Series

The brand filter (or all brands) first, then each compared brand.

Array<object>
IndexSeries
object
brand_id
Brand Id

Null for the first series: the brand filter, or all brands.

Any of:
integer
brand_name
Brand Name
Any of:
string
points
required
Points
Array<object>
IndexPoint
object
update_id
Update Id

The update; null for a start given as a period.

Any of:
integer
at
required
At
string format: date-time
value
Value

Median price relative to the start, × 100; null if no variant counts.

Any of:
string
variants
required
Variants

Variants on sale and priced at both the start and here.

integer

Example generated

{
"from_id": 1,
"from_at": "2026-04-15T12:00:00Z",
"series": [
{
"brand_id": 1,
"brand_name": "example",
"points": [
{
"update_id": 1,
"at": "2026-04-15T12:00:00Z",
"value": "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": {}
}
]
}