Amazon Product Advertising API has stopped returning AverageRating and TotalReviews in its Reviews Response Group Since November 8, and I do think that’s a foolish decision. Earlier in October, they had stopped returning the actual review contents which I do agree with since it was being copied all over the web. But, why remove AverageRating and TotalReviews from the API at all? These 2 values are great selling point for affiliates and especially important to attract buyer’s attention.
Luckily, if you know some programming, these 2 values can be easily obtained. If the API doesn’t return it, we scrap it, easy.
If you use PHP, all you need to know is:
1. from the api response, get iframeurl (which is what amazon is forcing user to use if they want to show reviews, average ratings and total reviews)
2. curl (or file_get_contents) and preg_match
It can be done and here are just 2 examples which i’ve made for this site:
1. top 20 best selling dslr cameras
2. top 20 best selling video games (october 2010)
Need this in your script? I’m available for custom web development work and you can contact me here.
KUMA says
I use cURL to get IFrame by PHP.
But there is “Moved Permanently ” and change IFrame URL at random.
Woud you mind tell me how to get IFrame using cURL?
KUMA says
I solved this probrem by set CURLOPT_FOLLOWLOCATION option!
Thank you
cooltrick says
I’m searching with key “how to get rating from amazon” and I decided click to your site first and I get cool idea for make my php script to show Rating
many thank for a good sharing, COol!