Skip to main content
POST
cURL
Each product carries trending_rank and sales_rank — shop-wide ranks refreshed daily; see the field reference.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-shop
string
required

Shopify store URL

Example:

"shop.myshopify.com"

Body

application/json

Request body

product_ids
integer[]
required

List of product IDs to get recommendations for

recommendation_type
enum<string>
required

Type of recommendations to retrieve

Available options:
similar_products
view
enum<string>
required

Context where recommendations will be displayed

Available options:
product_details,
product_ids
filter
object
pagination
object
publication_ids
(string | integer)[]

Optional. Numeric Shopify publication (sales channel) ids. When present, only products published on at least one of these channels are returned and the default "published to the Online Store" gate is replaced by this filter; market and B2B filters still apply. A single id may be sent without the array wrapper. Each id must be one the merchant enabled under Settings → Sales channels; unknown ids return 400. The id is the numeric tail of gid://shopify/Publication/.

Maximum array length: 50
Pattern: ^[0-9]+$
Example:

Response

Recommendations

status
enum<string>

Status of the response

Available options:
ok
serve_id
string

Unique identifier for this recommendation serve

pagination
object
products
object[]