How can I get the Seller name using the Amazon API in ASP.NET? Which response group do I need to use, and what kind of parameters are necessary for that?
If I understand you correctly, you want to get the seller name of an offer listing. To do this you need to use the OfferFull
response group as well as the MerchantId
parameter set to All
and the Condition
parameter set to All
. If you don't set the MerchantId
you will only get Amazon listings and if you don't set the Condition
parameter you will only get New listings.
Request:
http://ecs.amazonaws.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=[AWS Access Key ID]&
Operation=ItemLookup&
ItemId=B00008OE6I&
ResponseGroup=OfferFull& <- important
MerchantId=All& <- important
Condition=All& <- important
&Timestamp=[YYYY-MM-DDThh:mm:ssZ]
&Signature=[Request Signature]
In your response you will need to look at the Items > Item > Offers > Offer > Merchant > Name
node.
<Items>
...
<Item>
...
<Offers>
<TotalOffers>148</TotalOffers>
<TotalOfferPages>15</TotalOfferPages>
<Offer>
<Merchant>
<MerchantId>[Merchant Id]</MerchantId>
<Name>[Merchant Name]</Name>
...
</Merchant>
...
</Offer>
...