Daily view counts
GET
/v1/market/listings/{listing_id}/stats
const url = 'https://api.avtopodatki.si/v1/market/listings/1/stats?days=90';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”listing_id
required
Listing Id
Listing id.
integer
Listing id.
Query Parameters
Section titled “Query Parameters”days
Days
How many recent days to return.
integer
How many recent days to return.
Responses
Section titled “Responses”Successful Response
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": {} } ]}