Search sellers
GET
/v1/market/sellers
const url = 'https://api.avtopodatki.si/v1/market/sellers?offset=0&with_total=true';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/sellers?offset=0&with_total=true' \ --header 'Authorization: Bearer <token>'Search dealers and private sellers.
Use a seller’s id with GET /v1/market/listings?seller_id=… to see all
their listings. Private sellers’ ids are less stable than dealers’ and may
change if their details change.
Requires the market.read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”name
offset
Offset
Results to skip.
integer
Results to skip.
with_total
With Total
Include the total count. Set false for faster responses.
boolean
Include the total count. Set false for faster responses.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Page[SellerOut]
object
items
required
Items
Array<object>
SellerOutobject
id
required
Id
integer
site_id
required
Site Id
integer
seller_type
required
SellerType
Who placed a listing: a business or a private person.
UNKNOWN is the source not saying, an exception to the module’s rule
that “not stated” is no value: a seller is always stored with a type, so
the column is never NULL.
string
first_seen_at
required
First Seen At
string format: date-time
last_seen_at
required
Last Seen At
string format: date-time
phones
opening_hours
Opening Hours
Array<object>
SellerOpeningHourOutobject
day
required
Day
string
open_from
required
Open From
Minutes after midnight; 0/0 means closed.
integer
open_to
required
Open To
integer
limit
required
Limit
integer
offset
required
Offset
integer
Example
{ "items": [ { "seller_type": "company" } ]}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": {} } ]}