TagLookup

The TagLookup operation returns entities based on specifying one to five tags. A tag is a descriptive word that a customer uses to label entities on Amazon's retail web site. Entities can be items for sale, Listmania lists, guides, and so forth. For example, a customer might tag a given entity with the phrase, “BestCookbook.” For more information, see Tags.

In the tag-related response groups, Tags and TagSummary specify the amount of informtion returned. The other tag-related response groups, TaggedGuides, TaggedItems, and Tagged listmaniaLists, specify the kind of entity tagged.

US only.

The following table describes the request parameters for TagLookup. Parameter names are case sensitive.

ParameterDefinitionRequired
TagName

Comma separated list of tag names. Up to five tags can be included in a request.

Type: String

Default: None

Yes
Count

Number of tagged entities to return per tag. The default is 5; the maximum is 20.

Type: Integer

Default: None

No
CustomerId

Alphanumeric token that uniquely identifies a customer. This parameter limits the tags returned to those provided by a single customer.

Default: None

Valid Valuex: String

No
TagPage

Specifies the page of results to return. There are twenty results on a page.

Type: Integer

Default: None

NoInteger
TagSort

Specifies the sorting order for the results.

Default: -Usages

Valid Values:

  • FirstUsed-Sort by the date the item was first used.

  • - FirstUsed-Sort by the date the item was last used.

  • LastUsed-Sort by the date the item was last used.

    - LastUsed

  • Name-Alphabetical, A-Z.

  • - Name-Alphabetical, Z-A.

  • Usages-Items least used to most used

To sort items in descending order, prefix the previous values with a negative sign (-).

No 
ResponseGroup

Specifies the types of values to return. You can specify multiple response groups in one request by separating them with commas.

Default: Request | TagsSummary | TaggedItems

Valid Values: Accessories | AlternateVersions | BrowseNodes | Collections | EditorialReview | Images | ItemAttributes | ItemIds | Large | ListmaniaLists | Medium | MerchantItemAttributes | OfferFull | OfferListings | Offers | OfferSummary | PromotionDetails | PromotionSummary | Reviews | SalesRank | Similarities | Small | Subjects | TaggedGuides | TaggedListmaniaLists | Tags | Tracks |

No 

TagLookup also accepts the parameters that all operations can use. For more information, see, Common Request Parameters.

The following table describes the default response tags included in TagLookup responses.

Element TagDefinition
ASINAlphanumeric token that identifies items for sale.
CustomerId Alphanumeric token that uniquely identifies a customer.
DistinctUsersNumber of different users that created tags for entity.
FirstTaggingContainer for information relating to the first time the entity was tagged.
ItemContainer for information about an item.
LastTaggingContainer for information relating to the last time the entity was tagged.
NameTag name.
TagContainer for information related to Tags
TaggedItemsContainer for Tag elements, such as Item and DistinctUsers.
TagNameTAg name.
TagsContainer for all Tag elements.
TagTypeDescribes the entity tagged, for example, Items.
TimeThe time an entity was tagged.
TotalUsagesNumber of times tag was accessed.
UserIdSame as the customer ID.

For more information about the parent elements of these tags, see the appropriate response group in Response Groups.

Use TagLookup in the following ways:

The following XML is a snippet of the full response to the first sample request.

<Tag>
  <Name>tai</Name> 
  <TagType>Items</TagType> 
  <DistinctItems>1</DistinctItems> 
  <DistinctUsers>1</DistinctUsers> 
  <TotalUsages>1</TotalUsages> 
  <FirstTagging>
    <EntityId>B00005A1UV</EntityId> 
    <UserId>A2ELLA3OQ06A6Z</UserId> 
    <Time>2005-12-07 14:41:52</Time> 
  </FirstTagging>
  <LastTagging>
    <EntityId>B00005A1UV</EntityId> 
    <UserId>A2ELLA3OQ06A6Z</UserId> 
    <Time>2005-12-07 14:41:52</Time> 
  </LastTagging>
  <TaggedItems>
    <Item>
      <ASIN>B00005A1UV</ASIN> 
    </Item>
  </TaggedItems>
</Tag>