List of APIs
Search APIs
Recommendations APIs
Popular Metadata
Popular Products
Recent Products
Trending Products
Popular Refinements
Popular Searches
Recent Searches
Trending Searches
Search
Search Navigations
Null Search Terms
Search Term Performance
Search Products
Trending Searches
post

/recommendations/products/_getTrending

Get products that are over-represented in the window specified with comparison to a larger background set.

Authorization

apiKey - Authorization

Request Body

1 Example
Schema
object
window
string

Defines the previous time period, ending now, that the response will include events from. Defaults to different values depending on the endpoint, see the API definition for details.

The windows are day, week, and `month, representing a rolling 24 hour, 7 day and 30 day window respectively.

size
integer

Number of results to return.

1 validation
target
string

Defines whether we aggregate on productId or sku to let you switch aggregation between variants and parents.

This works with product-related requests: order, addToCart, viewCart, removeFromCart, viewProduct.

Possible values: productId or sku.

1 validation
type
string

What event type type to perform the aggregation on. Applies only to product-related requests Possible values: order, addToCart, viewCart, removeFromCart, viewProduct.

1 validation
matchPartial
object

matchPartial will match a subset of a query, after splitting by spaces.

For example, matchPartial: { search: { query: 'coffee' }} will match: black coffee, coffee, coffee grinder.

In all cases the or and not filter objects are identical to the `and filter shown.

matchExact
object

This JSON object that defines the exact full length String or exact value match against target field(s).

Supports and, or, and not options wherever there are arrays in the original event object.

thresholds
object

Object defining the greater than or equal threshold for a result to be returned.

1 validation

Responses

1 Example
Schema
object
serverTimestamp
string
result
array[object]
status
object

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
2 variables not set
customerid
Authorization