Resources for Developers Using Amazon's Product Advertising API
· Home  
· Search  
· Browse Nodes  
· Data Feed?  
· FAQs  
· One-Second Rule  
· PHP Examples  
· Tips for Associates  
· Tools  
· Understanding A2S  

Create a custom Amazon Associate Store in minutes with
Associate-O-Matic.

Disappointed by Amazon.com and the Associates program?

Please consider
Shareasale

Shareasale manages affiliate programs for thousands of merchants. The site makes it easier to apply to programs and create links. And simple-to-use datafeeds are offered by most merchants.

A2S Reference

BrowseNodeLookup (operation)

The BrowseNodeLookup operation returns the information about the specified browse node.

A2S Query

http://ecs.amazonaws.com/onca/xml?
   Service=AWSECommerceService
   &AWSAccessKeyId=--
   &AssociateTag=browsenodes-20
   &Operation=BrowseNodeLookup
   &BrowseNodeId=508532
   &ResponseGroup=Request,BrowseNodeInfo,TopSellers,NewReleases,MostWishedFor,MostGifted
   &Version=2009-01-06

The above URL executes an A2S BrowseNodeLookup query. The BrowseNodeLookup operation returns information about the specified browse node as identified by the BrowseNodeId parameter.

The Request response group returns all of the parameters and their values that were submitted in a request. This helps with debugging, but be aware that all parameters, including unrecognized/invalid parameters, are included.

The BrowseNodeInfo response group is the default for the BrowseNodeLookup operation. It returns the name, ancestors, and children of the node specified by the BrowseNodeId parameter.

The MostGifted response group returns the ten "most gifted" products associated with the node specified by the BrowseNodeId parameter.

A2S Response

The following is the XML response returned by A2S for the above query.
<BrowseNodeLookupResponse>
 <OperationRequest>
  <HTTPHeaders>
   <Header Name="UserAgent" Value="Oblio/1.0
(+http://www.rogersmithsoftware.com/)" />
  </HTTPHeaders>
  <RequestId>436f9243-f974-4524-999c-5cac96b5afe3</Requ
estId>
  <Arguments>
   <Argument Name="AWSAccessKeyId" Value="--" />
   <Argument Name="AssociateTag" Value="browsenodes-20"
/>
   <Argument Name="BrowseNodeId" Value="508532" />
   <Argument Name="Condition" Value="New" />
   <Argument Name="Operation" Value="BrowseNodeLookup"
/>
   <Argument Name="ResponseGroup"
Value="Request,BrowseNodeInfo,TopSellers,NewReleases,MostWishedFor,MostGift
ed" />
   <Argument Name="Service" Value="AWSECommerceService"
/>
   <Argument Name="Timestamp"
Value="2017-05-23T12:41:49Z" />
   <Argument Name="Version" Value="2011-08-01" />
   <Argument Name="Signature" Value="--" />
  </Arguments>
  <RequestProcessingTime>0.18080641</RequestProcessingT
ime>
 </OperationRequest>
 <BrowseNodes>
  <Request>
   <IsValid>True</IsValid>
   <BrowseNodeLookupRequest>
    <BrowseNodeId>href="http://www.browsenodes.com/node-508532.html">508532</BrowseNod
eId>
    <ResponseGroup>Request</ResponseGroup>
    <ResponseGroup>BrowseNodeInfo</ResponseGr
oup>
    <ResponseGroup>TopSellers</ResponseGroup&
gt
    <ResponseGroup>NewReleases</ResponseGroup
>
    <ResponseGroup>MostWishedFor</ResponseGro
up>
    <ResponseGroup>MostGifted</ResponseGroup&
gt
   </BrowseNodeLookupRequest>
   <Errors>
    <Error>
     <Code>AWS.InvalidParameterValue</Co
de>
     <Message>508532 is not a valid value
for BrowseNodeId. Please change this value and retry your
request.</Message>
    </Error>
   </Errors>
  </Request>
 </BrowseNodes>
</BrowseNodeLookupResponse>


Copyright © 2017 by Roger Smith