Search (v3)
Get Results
Returns products and content that matches a given query, optionally filtered. This is the main search endpoint.
Example response:
<pre>
{
"n_hits": 2,
"sorts": [
{
"field": "_relevance",
"order": "desc",
"meta": {
"title": "Recommended",
"values": [
"desc"
],
"names": [
"Recommended"
]
}
},
{
"field": "title",
"order": "asc",
"meta": {
"title": "Alphabetical, A-Z",
"values": [
"asc"
],
"names": [
"Alphabetical, A-Z"
]
}
},
{
"field": "title",
"order": "desc",
"meta": {
"title": "Alphabetical, Z-A",
"values": [
"desc"
],
"names": [
"Alphabetical, Z-A"
]
}
],
"filters": [
{
"field": "sale_price",
"op": "inrange",
"data": [
1200,
1999
],
"meta": {
"group_title": "Price",
"type": "range",
"min": 1200,
"max": 1999,
"currency": "SEK"
},
"id": "price0"
}
],
"search_request_id": "4b4bf597-42ee-41e0-92ea-e9db36c00749",
"cursor": "eyJjIjogMjAsICJyIjogMH0=",
"content_search_links": [
{
"type": "content_link",
"title": "Returns",
"description": "",
"page_url": "https://example.shop.com/en_GB/returns",
"highlights": [
{
"field": "title",
"snippet": "<mark>Re</mark>turns",
"matched_tokens": [
"Re"
]
}
]
}
],
"displays": [
{
"variant_index": 1,
"variant_displays": [
{
"in_stock": true,
"original_price": 1999,
"sale_price": 1999,
"title": "Recycled Polo Shirt",
"size": "210",
"product_id": "1500-10-210",
"image_urls": [
"https://example.cdn.com/1.jpg",
"https://example.cdn.com/2.jpg",
]
},
{
"in_stock": true,
"original_price": 1999,
"sale_price": 1999,
"title": "Recycled Polo Shirt",
"size": "200",
"product_id": "1500-10-200",
"image_urls": [
"https://example.cdn.com/1.jpg",
"https://example.cdn.com/2.jpg",
]
}
],
"product_listing_result_id": "50877e3b-26a4-4ea7-a6e1-1a7696f76f66"
},
{
"variant_index": 0,
"variant_displays": [
{
"in_stock": false,
"original_price": 1400,
"sale_price": 1200,
"title": "Collar Polo Shirt",
"size": "210",
"product_id": "1600-10-210",
"image_urls": [
"https://example.cdn.com/10.jpg",
"https://example.cdn.com/11.jpg",
]
}
],
"product_listing_result_id": "671740b5-6828-41fc-8a3f-2869993d000c"
}
]
}
</pre>
POST
Authorizations
Headers
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.