Skip to content

Recent catalogue changes

GET
/v1/catalog/changes
curl --request GET \
--url 'https://api.avtopodatki.si/v1/catalog/changes?change_type=price&direction=any&offset=0&with_total=true' \
--header 'Authorization: Bearer <token>'

Price changes and added or withdrawn variants across the catalogue, newest first.

The catalogue is updated monthly, so price changes only appear once a price has differed between two updates. An empty result is normal early on.

Requires the catalog.changes permission.

change_type
CatalogChangeType

price, or availability for added and withdrawn variants.

string
default: price
Allowed values: price availability

price, or availability for added and withdrawn variants.

since
Since

Changes at or after this time (ISO-8601). Default: 90 days ago.

Any of:
string format: date-time

Changes at or after this time (ISO-8601). Default: 90 days ago.

direction
Direction

up, down or any. Price changes only.

string
default: any /^(up|down|any)$/

up, down or any. Price changes only.

brand_id
Brand Id

Repeat to match several.

Any of:
Array<integer>

Repeat to match several.

limit
Limit

Results per page.

Any of:
integer
>= 1

Results per page.

offset
Offset

Results to skip.

integer
0

Results to skip.

with_total
With Total

Include the total count. Set false for faster responses.

boolean
default: true

Include the total count. Set false for faster responses.

Successful Response

Media typeapplication/json
Page[ChangeOut]
object
items
required
Items
Array<object>
ChangeOut

One change, with its brand, model and variant.

object
id
required
Id
integer
variant_id
required
Variant Id
integer
change_type
required
CatalogChangeType

price, or availability for added or withdrawn.

string
Allowed values: price availability
old_price
Old Price
Any of:
string
price
Price
Any of:
string
currency
required
Currency
string
price_delta
Price Delta

Price change in EUR; negative is a reduction.

Any of:
string
old_available
Old Available
Any of:
boolean
available
Available
Any of:
boolean
recorded_at
required
Recorded At
string format: date-time
variant_name
Variant Name
Any of:
string
model_name
Model Name
Any of:
string
brand_name
Brand Name
Any of:
string
total
Total

Total number of results, or null when with_total=false.

Any of:
integer
limit
required
Limit
integer
offset
required
Offset
integer

Example

{
"items": [
{
"change_type": "price"
}
]
}

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