Skip to content
Deprecated

Search products​

GET
/search

Full-text product search scoped to the resolved marketplace. Supports filtering by brand, category, vendor, price range, in-stock and on-sale, plus sorting and facet distribution.

Out-of-stock products of vendors that hide them (« masquer les produits en rupture ») are excluded before pagination, so total and facets match the results.

Use /public/search; this path stays until the storefront and the mobile app have moved.

Auth: Public (no authentication).

Parameters​

Header Parameters

X-Channel

Distribution channel selecting per-channel storefront display config (independent toggles per marketplace tenant). Display config, not authentication. Absent header defaults to web.

Type
string
Valid values
"web""mobile"
Default
"web"

Query Parameters

q

Search query (max 200 chars)

Type
string
Default
""
limit

1-100

Type
integer
Default
10
offset

min 0

Type
integer
Default
0
brand_id

Exact brand id. An id only (letters, digits, _, -, ., :); anything else, including filter syntax, is refused with a 400. Empty = no filter.

Type
string
Max Length
64
Pattern
"^[A-Za-z0-9_.:-]{1,64}$"
category_id

Exact category id. An id only (letters, digits, _, -, ., :); anything else, including filter syntax, is refused with a 400. Empty = no filter.

Type
string
Max Length
64
Pattern
"^[A-Za-z0-9_.:-]{1,64}$"
vendor_id

Exact vendor id. An id only (letters, digits, _, -, ., :); anything else, including filter syntax, is refused with a 400. Empty = no filter.

Type
string
Max Length
64
Pattern
"^[A-Za-z0-9_.:-]{1,64}$"
min_price
Type
number
max_price
Type
number
in_stock
Type
boolean
on_sale
Type
boolean
sort
Type
string
Valid values
"price:asc""price:desc""title:asc""newest"
Default
"newest"

Responses​

Search results with facet distribution

application/json
JSON
{
  
"ok": true,
  
"data": {
  
  
"query": "string",
  
  
"results": [
  
  
  
{
  
  
  
  
"id": "string",
  
  
  
  
"type": "product",
  
  
  
  
"title": "string",
  
  
  
  
"slug": "string",
  
  
  
  
"price": 0,
  
  
  
  
"salePrice": 0,
  
  
  
  
"onSale": true,
  
  
  
  
"compareAtPrice": 0,
  
  
  
  
"imageUrl": "https://example.com",
  
  
  
  
"inStock": true,
  
  
  
  
"vendorId": "string",
  
  
  
  
"vendorName": "string",
  
  
  
  
"brandId": "string",
  
  
  
  
"categoryIds": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"acceptsOnlineOrders": true,
  
  
  
  
"regularPrice": 0
  
  
  
}
  
  
],
  
  
"total": 0,
  
  
"facetDistribution": "string"
  
}
}

Playground​

Headers
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai