Menu
Product Advertising API
Developer Guide (API Version 2013-08-01)

Return Items Similar to Cart Items

The CartSimilarities response group returns items that are similar to items in the cart. Items are returned based on the following:

Similarity

Items are similar to the item purchased.

Items viewed

Customers who viewed the item in the cart also viewed the items returned by the response group.

Similar items

Similar items in other product categories.

Each similarity type has its own element tag: <SimilarProduct>, <SimilarViewedProduct>, and <OtherCategoriesSimilarProduct>.

The following request searches for items similar to the item in the cart, ASIN B000062TU1.

Copy
http://webservices.amazon.com/onca/xml? Service=AWSECommerceService& AWSAccessKeyId=[AWS Access Key ID]& AssociateTag=[Associate Tag]& Operation=CartCreate& Item.1.ASIN=B000062TU1& Item.1.Quantity=2& ResponseGroup=CartSimilarities &Timestamp=[YYYY-MM-DDThh:mm:ssZ] &Signature=[Request Signature]

This request returns the following response snippet.

Copy
<SimilarProducts> <SimilarProduct> <ASIN>B00008DDXC</ASIN> <Title>Harry Potter and the Chamber of Secrets (Widescreen Edition)(Harry Potter 2)</Title> </SimilarProduct> </SimilarProducts> <SimilarViewedProducts> <SimilarViewedProduct> <ASIN>B000E6UZZK</ASIN> <Title>Harry Potter Years 1-4 (Harry Potter and the Sorcerer's Stone /Chamber of Secrets / Prisoner of Azkaban / Goblet of Fire) (Widescreen Edition) </Title> </SimilarViewedProduct> </SimilarViewedProducts> <OtherCategoriesSimilarProducts> <OtherCategoriesSimilarProduct> <ASIN>0590353403</ASIN> <Title>Harry Potter and the Sorcerer's Stone (Book 1)</Title> </OtherCategoriesSimilarProduct> </OtherCategoriesSimilarProducts>

This response shows the Harry Potter and the Sorcerer's Stone DVD in the shopping cart is similar to another Harry Potter DVD, Harry Potter and the Chamber of Secrets. Customers who viewed the DVD in the shopping cart also viewed the DVD, Harry Potter Years.

A related item to the DVD in the cart, but in a different product category, is the book version of the DVD: Harry Potter and the Sorcerer's Stone.

For more information, see CartSimilarities.