简体   繁体   中英

How to get Seller Name from Amazon in ItemSearch using amazon API

Can anybody please tell me how can I get Seller name using Amazon API in ASP.NET. Which response group do I need to use and what kind of parameters are nessesary 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>
       ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM