Skip to content

Daily view counts

GET
/v1/market/listings/{listing_id}/stats
curl --request GET \
--url 'https://api.avtopodatki.si/v1/market/listings/1/stats?days=90' \
--header 'Authorization: Bearer <token>'

Daily view counts for one listing, newest first.

views is null on days without a figure, and always null for marketplaces that don’t show view counts.

Requires the market.read permission.

listing_id
required
Listing Id

Listing id.

integer
>= 1

Listing id.

days
Days

How many recent days to return.

integer
default: 90 >= 1 <= 365

How many recent days to return.

Successful Response

Media typeapplication/json
Response Market Get Listing Stats
Array<object>
ListingStatsOut
object
day
required
Day
string format: date
views
required
Views
Any of:
integer

Example generated

[
{
"day": "2026-04-15",
"views": 1
}
]

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