Skip to content

Search suggestions for dropdown

GET
/store/products/suggest

Lightweight FTS endpoint for search input autocomplete.
Returns minimal fields (id, title, price, thumbnail) in a single SQL query.
No pagination, no search logging. Designed for keystroke-debounced requests.

Parameters

Query Parameters

q

Search query (returns empty array if missing or blank)

Type
string
limit

Max number of suggestions

Type
integer
Default
6
Maximum
10

Responses

Search suggestions

application/json
JSON
{
  
"data": [
  
  
{
  
  
  
"id": 0,
  
  
  
"title": "string",
  
  
  
"price": 3500,
  
  
  
"thumbnail": "string"
  
  
}
  
]
}

Playground

Server
Variables
Key
Value

Samples

Powered by VitePress OpenAPI