Skip to content

Price and status history

GET
/v1/market/listings/{listing_id}/history
curl --request GET \
--url 'https://api.avtopodatki.si/v1/market/listings/1/history?chain=false&offset=0&with_total=true' \
--header 'Authorization: Bearer <token>'

Price and status changes for one listing, newest first.

Only actual changes are recorded, not a daily snapshot. change_type says what changed; the old_* fields hold the previous values.

Requires the market.history permission.

listing_id
required
Listing Id

Listing id.

integer
>= 1

Listing id.

chain
Chain

true: the history of every ad in the car’s repost chain, each row with its listing_id. A repost row is where one ad hands over to the next.

boolean

true: the history of every ad in the car’s repost chain, each row with its listing_id. A repost row is where one ad hands over to the next.

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
Page[ListingHistoryOut]
object
items
required
Items
Array<object>
ListingHistoryOut
object
id
required
Id
integer
listing_id
required
Listing Id

The ad the row belongs to; differs within a chain (chain=true).

integer
change_type
required
HistoryChangeType

price (the price moved), discount (only the discount moved), status (listed, removed or back) or repost (this ad replaced an older ad for the same car: old_status and old_price are the older ad’s, status and price this one’s, dated when this ad was first seen). New values may be added: treat one you don’t know as a change to show without detail.

string
Allowed values: price discount status repost
old_price
required
Old Price
Any of:
string
price
required
Price
Any of:
string
old_discount_price
Old Discount Price

The discount before the change. Not recorded before October 2026.

Any of:
string
discount_price
required
Discount Price
Any of:
string
old_status
required
Any of:
ListingStatus
string
Allowed values: active removed unknown
status
required
Any of:
ListingStatus
string
Allowed values: active removed unknown
recorded_at
required
Recorded At
string format: date-time
total
Total

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

Any of:
integer
limit
required
Limit
integer
offset
required
Offset
integer

Example

{
"items": [
{
"change_type": "price",
"old_status": "active",
"status": "active"
}
]
}

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