A few suggestions from the Amazon Product API

I recently worked with the Amazon API, and I had a question about who is there, with experience of use. Can I use one of the response groups to get a complete list of all the offers on the Amazon market?

For example, a single product may have 37 offers on the market, but in every API call that I executed, I can never get anything but the price of Amazon.com and the price of the cheapest market item.

Is there a way to get all 37 offers?

+4
source share
1 answer

Yes it is possible. I use the ItemLookup operation, and with that I use the ResponseGroup "OfferFull". This will return up to 10 sentences. You will need to go in cycles to receive the following set of offers, until you receive all of them.

In the Offers object (inside the ItemLookupResponse that you will return) you will see the property "TotalOfferPages", which will tell you how many pages out of 10 sentences. Just put a check inside the loop for this value and copy the offers into the collection.

Amazon Documentation:

http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/

If you are using C # and want to use WCF, read the following:

http://flyingpies.wordpress.com/2009/08/01/17/

Hope this helps, Scott

+1
source

Source: https://habr.com/ru/post/1343832/


All Articles