Skip to content

Marketplace search options (brands, models, …)

GET
/v1/market/search-options
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.

site_id
required
Site Id

Marketplace id.

integer

Marketplace id.

option_type
Option Type

Which option list: brand, model, fuel_type, transmission, or others the marketplace offers.

string
default: brand

Which option list: brand, model, fuel_type, transmission, or others the marketplace offers.

category
Category

Vehicle class: car (the default), lcv (vans), hcv (trucks), bus, moto.

Any of:
VehicleCategory

What kind of vehicle a listing is.

string
Allowed values: car lcv hcv bus moto other

Vehicle class: car (the default), lcv (vans), hcv (trucks), bus, moto.

parent_value
Parent Value

The brand, when option_type=model.

Any of:
string

The brand, when option_type=model.

active_only
Active Only

Leave out options the marketplace no longer offers.

boolean
default: true

Leave out options the marketplace no longer offers.

Successful Response

Media typeapplication/json
Response Market List Search Options
Array<object>
SearchOptionOut
object
option_type
required
Option Type
string
parent_value
required
Parent Value
string
value
required
Value
string
label
required
Label
Any of:
string
active
required
Active
boolean

Example generated

[
{
"option_type": "example",
"parent_value": "example",
"value": "example",
"label": "example",
"active": true
}
]

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