O'Reilly logo

Amazon Hacks by Paul Bausch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sort Books by Average Customer Rating

Use customer ratings as a guide to which books you should be looking at.

Average customer ratings are one of those aggregate features where it’s not the voice of a single Amazon user giving advice, but rather it’s the collective advice of everyone who has written a review. Each review includes a 1-5 star rating, and the average review reflects the group opinion of a book.

Sorting Search Results

You can sort any search results by choosing Avg. Customer Review from the “Sort by:” drop-down menu on any results page (see Figure 3-3). Make the selection and click Go! to reorder the results.

Sorting by Average Customer Review

Figure 3-3. Sorting by Average Customer Review

If you’re performing power searches via a URL [Hack #9], you can sort by review with the rank variable set to reviewrank:

http://www.amazon.com/exec/obidos/search-handle-url/[RETURN]
ix=books&fqp=power%01publisher%3AO%27Reilly%20and%20keywords%3AHacks[RETURN]
&sz=100&rank=reviewrank

If you have a specific set of books that you’d like to sort by review rank, you can use a power search and include each ASIN:

http://www.amazon.com/exec/obidos/search-handle-url/ix=books&fqp=[RETURN]
power%01isbn%3A0596004478%7C0596004605%7C0596004613&sz=10&rank=reviewrank

This query looks for the products 0596004478, 0596004605, and 0596004613 and sorts the results by average customer rating.

Tip

As with most sorting-related values, you can specify ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required