Skip to content

Catalogue updates

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

Every pass over the catalogue, newest first, with what it changed.

status is the pass’s own. A pass that did not finish (failed, cancelled) retires nothing, so its withdrawn stays 0 while the prices it did read still count. brands_done of brands_total shows how far it got. next_run_at is when the next scheduled pass starts.

Requires the catalog.changes permission.

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
UpdatesPage
object
items
required
Items
Array<object>
UpdateOut

One catalogue pass over avto.net.

object
id
required
Id
integer
status
required
ScrapeJobStatus

The pass’s own status: queued, running, succeeded, failed or cancelled. Only a succeeded pass retires what it did not see.

string
Allowed values: queued running succeeded partial failed cancelled
trigger
required
JobTrigger
string
Allowed values: scheduled manual retry
queued_at
required
Queued At
string format: date-time
started_at
Started At
Any of:
string format: date-time
finished_at
Finished At
Any of:
string format: date-time
brands_done
required
Brands Done

Brands whose model list was read.

integer
brands_total
required
Brands Total

Brands the pass set out to read.

integer
counts
UpdateCounts

What one update changed, counted from the change log.

object
added
Added

Variants that went on sale: new ones and ones back on sale.

integer
0
withdrawn
Withdrawn

Variants no longer on sale.

integer
0
price_up
Price Up

Price rises.

integer
0
price_down
Price Down

Price reductions.

integer
0
total
Total

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

Any of:
integer
limit
required
Limit
integer
offset
required
Offset
integer
next_run_at
Next Run At

When the next scheduled pass starts; null if none is.

Any of:
string format: date-time

Example

{
"items": [
{
"status": "queued",
"trigger": "scheduled",
"counts": {
"added": 0,
"withdrawn": 0,
"price_up": 0,
"price_down": 0
}
}
]
}

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