One catalogue update
GET
/v1/catalog/updates/{update_id}
const url = 'https://api.avtopodatki.si/v1/catalog/updates/1';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/1 \ --header 'Authorization: Bearer <token>'One update, its neighbours, and its counts per brand.
Requires the catalog.changes permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”update_id
required
Update Id
Update id.
integer
Update id.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
UpdateDetail
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
trigger
required
JobTrigger
string
queued_at
required
Queued At
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
withdrawn
Withdrawn
Variants no longer on sale.
integer
price_up
Price Up
Price rises.
integer
price_down
Price Down
Price reductions.
integer
brands
Brands
Counts per brand, the brand with most changes first.
Array<object>
BrandCountsobject
added
Added
Variants that went on sale: new ones and ones back on sale.
integer
withdrawn
Withdrawn
Variants no longer on sale.
integer
price_up
Price Up
Price rises.
integer
price_down
Price Down
Price reductions.
integer
brand_id
required
Brand Id
integer
brand_name
required
Brand Name
string
Example
{ "status": "queued", "trigger": "scheduled", "counts": { "added": 0, "withdrawn": 0, "price_up": 0, "price_down": 0 }, "brands": [ { "added": 0, "withdrawn": 0, "price_up": 0, "price_down": 0 } ]}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": {} } ]}