How can I get multiple product recommendations using Shopify's API?

Topic summary

A developer is trying to retrieve product recommendations for multiple products simultaneously using Shopify’s AJAX Product Recommendations API.

Current Challenge:

  • The standard API endpoint accepts a single product ID
  • Goal is to pass multiple product IDs as query parameters to receive mixed recommendation results in one request

Use Case:

  • Display complementary products based on multiple items currently in the shopping cart

Status:

  • The question remains unanswered
  • A second user has the same requirement, indicating this is a common need
  • No solution or workaround has been shared yet

Reference: The discussion references Shopify’s official Product Recommendations API documentation.

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

Hi There,

I am using Shopify recommendations API and I want to get recommendations about multiple products.
How can i do this in Shopify by using ajax request?

Reference URL:
https://shopify.dev/api/ajax/reference/product-recommendations

What I want to do is to add multiple products id in the query parameter so I can get mixed results of recommended products.

Ajax request URL:
/recommendations/products.json?product_id=7322642284721&749269385335&776253853543&limit=6

Hi! Did you find any solution about this? I need the same thing to show complementary products on cart depending on products in cart.