Skip to content

What changed between two moments (Excel)

GET
/v1/catalog/compare.xlsx
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.

from
From

Start update id. Excludes period.

Any of:
integer
>= 1

Start update id. Excludes period.

to
To

End update id; default: now.

Any of:
integer
>= 1

End update id; default: now.

period
Period

Instead of from: how far before the end to start, in days, e.g. 7d, 30d, 90d. Default 30d.

Any of:
string

Instead of from: how far before the end to start, in days, e.g. 7d, 30d, 90d. Default 30d.

brand_id
Brand Id

Repeat to match several.

Any of:
Array<integer>

Repeat to match several.

brand
Brand

Brand name, case-insensitive. Repeat to match several.

Any of:
Array<string>

Brand name, case-insensitive. Repeat to match several.

kind
Kind

added, withdrawn, price_up, price_down. Repeatable.

Any of:
Array<string>

added, withdrawn, price_up, price_down. Repeatable.

body_style
Body Style

Body, the market API’s values (suv, …). Repeatable.

Any of:
Array<string>
Allowed values: sedan hatchback wagon suv coupe convertible van minivan pickup microcar panel_van minibus chassis_cab dropside curtainsider box refrigerated tipper hooklift swap_body tractor_unit car_transporter tow_truck crane platform tanker concrete_mixer refuse timber livestock special city_bus intercity_bus coach scooter maxi_scooter naked touring sport enduro motocross supermoto trial cruiser moped minibike quad utv three_wheeler snowmobile ebike kick_scooter other

Body, the market API’s values (suv, …). Repeatable.

fuel_type
Fuel Type

Fuel, the market API’s values (petrol, …). Repeatable.

Any of:
Array<string>
Allowed values: petrol diesel electric hybrid plugin_hybrid lpg cng hydrogen other

Fuel, the market API’s values (petrol, …). Repeatable.

q
Q

Substring of variant, model or brand.

Any of:
string
>= 1 characters <= 80 characters

Substring of variant, model or brand.

price_min
Price Min

On the end price (the start price if withdrawn).

Any of:
integer

On the end price (the start price if withdrawn).

price_max
Price Max

On the same price as price_min.

Any of:
integer

On the same price as price_min.

min_pct
Min Pct

Only price changes of at least this many percent, either way. Added and withdrawn variants are kept.

Any of:
number

Only price changes of at least this many percent, either way. Added and withdrawn variants are kept.

sort
Sort

change (default: largest % first, either way), or pct, delta, price, name, with - for descending.

string
default: change

change (default: largest % first, either way), or pct, delta, price, name, with - for descending.

An .xlsx workbook.

Media typeapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet

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