Skip to content

Storefront Trending

POSThttps://rebuyengine.com/api/v1/meta/storefront/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

Code Example

fetch("https://rebuyengine.com/api/v1/meta/storefront/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"
  })
})
  .then(response => response.json())
  .then(data => console.log(data));

Response Examples

200 OK

{}

400 Bad Request

{}
See something that needs updating? Suggest an edit