What changed between two moments (Excel)
const url = 'https://api.avtopodatki.si/v1/catalog/compare.xlsx?sort=change';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/compare.xlsx?sort=change' \ --header 'Authorization: Bearer <token>'Every row of GET /v1/catalog/compare for the same parameters, as .xlsx.
A selection over the row limit is refused (422 export_too_large).
Requires the catalog.changes permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Repeat to match several.
Repeat to match several.
Brand name, case-insensitive. Repeat to match several.
Brand name, case-insensitive. Repeat to match several.
added, withdrawn, price_up, price_down. Repeatable.
added, withdrawn, price_up, price_down. Repeatable.
Body, the market API’s values (suv, …). Repeatable.
Body, the market API’s values (suv, …). Repeatable.
Fuel, the market API’s values (petrol, …). Repeatable.
Fuel, the market API’s values (petrol, …). Repeatable.
change (default: largest % first, either way), or pct, delta, price, name, with - for descending.
change (default: largest % first, either way), or pct, delta, price, name, with - for descending.
Responses
Section titled “Responses”An .xlsx workbook.
Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}