Collection Trending
POST
https://rebuyengine.com/api/v1/meta/collection/trendingRebuy works with Meta Shops to enable powerful, high converting, product recommendations.
Headers¶
X-Rebuy-Api-Key· string- Private API key for Meta Shops authentication
Body Parameters¶
product_ids· array of integers- Array of product ids
limit· integer · Default:10- Maximum number of products returned
external_merchant_id· string- Accepts the first part of a Shopify domain. For example, if the shop's domain is example-brand.myshopify.com please pass in example-brand
collection_handle· string- The handle of the collection to get trending products from
Code Example¶
fetch("https://rebuyengine.com/api/v1/meta/collection/trending", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Rebuy-Api-Key": "YOUR_API_KEY"
},
body: JSON.stringify({
product_ids: [1058466627620, 562396463140],
limit: 20,
external_merchant_id: "example-brand",
collection_handle: "new-arrivals"
})
})
.then(response => response.json())
.then(data => console.log(data));
Response Examples¶
200 OK¶
400 Bad Request¶
--- title: Collection Trending excerpt: >- Rebuy works with Meta Shops to enable powerful, high converting, product recommendations. api: file: meta-shops.json operationId: meta-collection-trending deprecated: false hidden: false metadata: title: '' description: '' robots: index next: description: '' --- ## POST /api/v1/meta/collection/trending Rebuy works with Meta Shops to enable powerful, high converting, product recommendations. ## Headers `X-Rebuy-Api-Key` · string : Private API key for Meta Shops authentication ## Body Parameters `product_ids` · array of integers : Array of product ids `limit` · integer · Default: `10` : Maximum number of products returned `external_merchant_id` · string : Accepts the first part of a Shopify domain. For example, if the shop's domain is example-brand.myshopify.com please pass in example-brand `collection_handle` · string : The handle of the collection to get trending products from ## Code Example ```javascript fetch("https://rebuyengine.com/api/v1/meta/collection/trending", { method: "POST", headers: { "Content-Type": "application/json", "X-Rebuy-Api-Key": "YOUR_API_KEY" }, body: JSON.stringify({ product_ids: [1058466627620, 562396463140], limit: 20, external_merchant_id: "example-brand", collection_handle: "new-arrivals" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Response Examples ### 200 OK ```json {} ``` ### 400 Bad Request ```json {} ```
See something that needs updating?
Suggest an edit