Method description
Returns the top specific products for a specific query. The specific product weights are calculated based on user clicks, add-to-carts and purchases and the values are normalized using a linear function.
With segmentation can sent a user attributes list ("key":"value", ...) and number of tries in the request and the API try to return a segment data using this user attributes. If not have results for this user attributes in this number of tries it return the basic query context.
"topProducts" are sorted by "weight" in descending order.
...
No Format |
---|
/v2/querycontext/products/{client_id}?query={query}&lang={lang}&rows={rows}&userAttributes={userAttributes}&maxTries={maxTries}&events.min={eventsMin} |
URL example
No Format |
---|
/v2/querycontext/products/ebdemo?query=dress&lang=en&rows=2&userAttributes=gender:male,size:M&maxTries=3&events.min=25 |
Path Parameters
Parameter name | Required | Description |
---|---|---|
client_id | Client identifier on the system |
...
Parameter name | Required | Description | Default |
---|---|---|---|
query | Search term that user did | ||
lang | Language of the query | ||
rows | Number of products to return | 5 | |
events.min | Minimum number of events required to return a field or product. | client configuration / 10 | |
userAttributes | User attributes to get segmentation data | - | |
maxTries | Max tries to do segmentation intents | client configuration / 3 |
Responses
200 - successful request
...