Marketplace search options (brands, models, …)
const url = 'https://api.avtopodatki.si/v1/market/search-options?site_id=1&option_type=brand&active_only=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/search-options?site_id=1&option_type=brand&active_only=true' \ --header 'Authorization: Bearer <token>'A marketplace’s own search options, e.g. its brand and model lists.
value is the marketplace’s own code and label how it displays it.
These are not filter values: the listing filters take the values in
GET /v1/market/filter-values (makes and models the same on every
marketplace).
Requires the market.read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Marketplace id.
Marketplace id.
Which option list: brand, model, fuel_type, transmission, or others the marketplace offers.
Which option list: brand, model, fuel_type, transmission, or others the marketplace offers.
Vehicle class: car (the default), lcv (vans), hcv (trucks), bus, moto.
What kind of vehicle a listing is.
Vehicle class: car (the default), lcv (vans), hcv (trucks), bus, moto.
Leave out options the marketplace no longer offers.
Leave out options the marketplace no longer offers.
Responses
Section titled “Responses”Successful Response
object
Example generated
[ { "option_type": "example", "parent_value": "example", "value": "example", "label": "example", "active": true }]Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}