Catalogue updates
const url = 'https://api.avtopodatki.si/v1/catalog/updates?offset=0&with_total=true';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
object
One catalogue pass over avto.net.
object
The pass’s own status: queued, running, succeeded, failed or cancelled. Only a succeeded pass retires what it did not see.
Brands whose model list was read.
Brands the pass set out to read.
What one update changed, counted from the change log.
object
Variants that went on sale: new ones and ones back on sale.
Variants no longer on sale.
Price rises.
Price reductions.
Example
{ "items": [ { "status": "queued", "trigger": "scheduled", "counts": { "added": 0, "withdrawn": 0, "price_up": 0, "price_down": 0 } } ]}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}