Skip to main content
GET
/
api
/
storefront
/
search
/
predictive
Predictive Search
curl --request GET \
  --url https://api.example.com/api/storefront/search/predictive \
  --header 'X-Site-ID: <x-site-id>'
{
  "query": "<string>",
  "hits": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "slug": "<string>",
      "image_url": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.stella-commerce.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

X-Site-ID
string
required
X-Stella-Token
string | null

Query Parameters

q
string
required
Required string length: 1 - 128
limit
integer
default:6
Required range: 1 <= x <= 6

Response

Successful Response

≤6 hits, ranked by trigram + prefix match.

query
string
required
hits
StorefrontPredictiveHit · object[]
required