Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon Product Advertising API - get review-rank

Using the Amazon API it seems that it's not possible anymore to get the review rank information of a product. Checking this link the note says:

As of November 8, 2010, only the iframe URL is returned in the request content.

However, testing with the params they suggest to get the Iframe, but it seems that now even the Iframe doesn't work anymore. Thus, even in the latest API Reference in the chapter "Motivating Customers to Buy" the part "reviews" is completely missing.

However: Since I'm also very interested if it's still possible somehow to get the review rank information - maybe even not using the Amazon API but a competitor's API to get review rank information - I hope someone can provide something helpful on this topic.

like image 681
omni Avatar asked Jan 02 '12 12:01

omni


People also ask

Does Amazon have API for reviews?

You can use Amazon Product Advertising API. It has a Response Group 'Reviews' which you can use with operation 'ItemLookup'. You need to know ASIN i.e. unique item id of the product.

How do I get a product API from Amazon?

If you have not already registered, sign up for the Associate program and Product Advertising API. After you have your Partner Tag (Store/Tracking ID) and Credentials (Access Key and Secret Key), choose an operation from the left panel. Type the request parameters and choose Run request.

How do you scrape an Amazon review?

Go to Amazon website, Go to any product page. Then right click on page and click "Scrape Reviews from this product" option. It will extract all reviews and ratings of the product and save it as a CSV excel file.

Does Amazon have a rating system?

Amazon calculates a product's star rating using machine-learned models instead of a simple average. These models take into account factors such as how recent the rating or review is and verified purchase status. They use multiple criteria that establish the authenticity of the feedback.


3 Answers

Preamble: I'm not sure that I understand exactly what you are looking for here but I'll share my findings anyways.

I was able to retrieve the iframe URL for the reviews and was able to see the reviews iframe after embedding it into an .html page. I used the following attributes to retrieve the iframe URL:

Operation=ItemLookup&
ItemId=1451648537&
ResponseGroup=Reviews&
TruncateReviewsAt="256"&
IncludeReviewsSummary="False"&
Version=2011-08-01                 <= important: can't be less than this version
AssociateTag=<YourAssociateTag>    <= required when using this version, can be anything (not verified by Amazon)

The relevant part of the response:

<Item>
    <ASIN>1451648537</ASIN>
    <CustomerReviews>
        <IFrameURL>http://www.amazon.com/reviews/iframe?akid=<YourAmazonKey>&amp;alinkCode=xm2&amp;asin=1451648537&amp;atag=<YourAssociateTag>&amp;exp=2012-01-06T02%3A10%3A38Z&amp;summary=0&amp;truncate=256&amp;v=2&amp;sig=kjWPue1N75%2FiI1hW67XYApWxnKeT2tlT%2FJ1rw4WLlUo%3D</IFrameURL>
        <HasReviews>true</HasReviews>
    </CustomerReviews>
</Item>

Note that you will not be able to use this iframe URL due to the fact that (1) I've removed my Amazon Key and the Associate Tag that was used to create the signature and (2) it expires 24 hours after the call.

If you use the same attributes that I've used, paying close attention to the Version and AssociateTag fields, you will get a result with an iframe URL included.

I then embedded the url in an iframe:

<html>
    <body>
        <iframe src="http://www.amazon.com/reviews/iframe?akid=<YourAmazonKey>&amp;alinkCode=xm2&amp;asin=1451648537&amp;atag=<YourAssociateTag>&amp;exp=2012-01-06T02%3A10%3A38Z&amp;summary=0&amp;truncate=256&amp;v=2&amp;sig=kjWPue1N75%2FiI1hW67XYApWxnKeT2tlT%2FJ1rw4WLlUo%3D"/>
    </body>
</html>

Which looked like the following:

Amazon Review IFrame

As I said in the preamble, I'm unsure if this is what you are looking for since the requirements for the bounty was:

...to get access to amazons reviewrank informations

This isn't exactly the review rank information but the actual reviews and I take the meaning of review rank info to be more along the lines of the data itself (such as 100 reviews @ 4 stars etc.). However, in your question you stated that the iframe did not work:

However, testing with the params they suggest to get the Iframe, but it seems that now even the Iframe doesn't work anymore.

So I thought that I would at least provide you with the proper method of getting and using the iframe.

like image 149
Jonathan Spooner Avatar answered Oct 03 '22 15:10

Jonathan Spooner


Amazon has completely removed support for accessing rating/review information from their API. The docs mention a Response Element in the form of customer rating, but that doesn't work either.

Google shopping using Viewpoints for some reviews. I came across a good article for this

like image 22
Struggler Avatar answered Oct 03 '22 16:10

Struggler


I know you said you don't want to screen scrape, but as that is the only solution available, I have been using the screen scraping solution for some time and it has not caused me a problem yet, although I agree it is fragile. If my screen scraping code does not get what it expects, it will log an error for me to adjust the code, and it will degrade gracefully to just display a link to open the review information in an iFrame. This error has yet to trigger and the solution has worked great for us.

like image 32
Danger Avatar answered Oct 03 '22 16:10

Danger