v1
latestOpenAPI 3.0.22026-08-0426137631.3 KBRecommendation APIs
User to Trending API
The User to Trending API returns the products that are currently trending and are most likely to be of interest to this user. It's different from the User to Products API because it will only recommend trending products. However, each user should still see unique recommendations that are not only trending but also suit their interests.
Applicable scenarios
This API is typically used to make homepage recommendations such as "Trending products for users like you" or "Trending on Youtube".
Filtering "already seen" items
The User to Trending API will not recommend products users have recently interacted with.
post/v1/recommendation/user_to_trending
Request body
Example request
{
"additional_interactions": [
{
"duration": 61.5,
"product_ids": [
"123ABC-BLACK"
],
"product_group_ids": [
"123ABC"
],
"user_id": "user_1234",
"anonymous_id": "86D51273AD8BF84217E1567B6CBE7152D7034404",
"miso_id": "123e4567-e89b-12d3-a456-426614174000",
"context": {
"campaign": {
"name": "spring_sale",
"source": "Google",
"medium": "cpc",
"term": "running+shoes",
"content": "textlink"
},
"truncated_ip": "1.1.1.0",
"locale": "en-US",
"region": "US East",
"page": {
"url": "https://example.com/miso-tshirt-123ABC",
"referrer": "https://example.com/",
"title": "My Product Page"
},
"user_agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0",
"custom_context": {
"session_variable_1": [
"value_1",
"value_2"
]
}
}
}
],
"custom_context": {
"session_variable_1": [
"value_1",
"value_2"
]
},
"boosting_tags": [
"tag-1",
"quetag-2"
]
}Response
Successful Response
Example response
{
"data": {
"miso_id": "123e4567-e89b-12d3-a456-426614174000",
"products": [
{
"product_id": "123ABC-S-Black"
}
]
}
}