Product Advertising API
Developer Guide (API Version 2011-08-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

RelatedItems Response Group

The RelatedItems response group returns items related to an item specified in an ItemLookup request. .Related items could be, for example, all of the Unbox episodes in a TV season that are sold separately, or, for example, all of the MP3Download tracks on a MP3 album.

The data returned for RelatedItems is limited to ASINs and ItemAttributes. This remains true even if you add additional response groups, such as Large, that would otherwise return additional data.

The relationship between items is unidirectional. One item is the parent and one item is the child. Items, however, can have multiple children or multiple parents for a given relationship type.

The way in which the items are related is specified by the RelationshipType parameter. This parameter is required when you use the RelatedItems response group. Some values include Episode, Season, Tracks, and Variation. For a list of all relationship types, go to the ItemLookup page.

The relationship type is usually named after the child item in the relationship. For example, an MP3 Track is related to an MP3 album and the type of relationship is Tracks. In this relationship, the album is the parent. If you did an ItemLookup for an MP3 Track and requested RelatedItems using Tracks as the RelationshipType, you would receive the parent album (or albums) for that Track. Conversely, looking up an album using Tracks as the RelationshipType returns the list of Tracks on that album.

Each ItemLookup request can return, at most, ten related items. To return additional items, use the RelateditemsPage parameter. A value of 2, for example, returns the second set of ten related items.

Relevant Operations

Operations that can use this response group include:

Response Elements

The following elements are returned by RelatedItems:

RelatedItems also returns the elements that all response groups return. For more information, go to Elements Common to All Response Groups.

Parent Response Group

The following response groups are parent response groups of RelatedItems.

  • None

Child Response Group

The following response groups are child response groups of RelatedItems.

  • None

Sample REST Use Case

The following request illustrates the XML response elements returned by RelatedItems.

http://webservices.amazon.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=[AWS Access Key ID]&
Operation=ItemLookup&
RelationshipType=Tracks&
ItemId=B0013D8EQK&
ItemType=ASIN&
ResponseGroup=RelatedItems,Small&
Version=2011-08-01
&Timestamp=[YYYY-MM-DDThh:mm:ssZ]
&Signature=[Request Signature]

Sample Response Snippet

The following response snippet shows the elements returned by RelatedItems.

<Item>
  <ASIN>B0013D8EQK</ASIN>
  <ItemAttributes>
    <Creator Role="Primary Contributor">Johnny Cash</Creator>
    <Manufacturer>Columbia/Legacy</Manufacturer>
    <ProductGroup>Digital Music Album</ProductGroup>
    <Title>At San Quentin</Title>
  </ItemAttributes>
  <RelatedItems>
    <Relationship>Children</Relationship>
    <RelationshipType>Tracks</RelationshipType>
    <RelatedItemCount>31</RelatedItemCount>
    <RelatedItemPageCount>4</RelatedItemPageCount>
    <RelatedItemPage>1</RelatedItemPage>
    <RelatedItem>
      <Item>
        <ASIN>B0013D4KJK</ASIN>
        <ItemAttributes>
          <Creator Role="Primary Contributor">Johnny Cash</Creator>
          <Manufacturer>Columbia/Legacy</Manufacturer>
          <ProductGroup>Digital Music Track</ProductGroup>
          <Title>The Long Black Veil/Give My Love To Rose (Live)</Title>
        </ItemAttributes>
      </Item>
    </RelatedItem>
    <RelatedItem>
      <Item>
        <ASIN>B0013D7VG4</ASIN>
        <ItemAttributes>
          <Creator Role="Primary Contributor">Johnny Cash</Creator>
          <Manufacturer>Columbia/Legacy</Manufacturer>
          <ProductGroup>Digital Music Track</ProductGroup>
          <Title>Folsom Prison Blues (Live)</Title>
        </ItemAttributes>
      </Item>
    </RelatedItem>
    ...
  </RelatedItems>
</Item>