Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get text reviews from goodreads using the API

Tags:

python

I trying to extract the reviews from goodreads using the API.

I'm following this tutorial:
http://www.hongkiat.com/blog/goodreads-ratings-api/
And the API documentation:
https://www.goodreads.com/api/index#review.show

With this url:

https://www.goodreads.com/book/review_counts.json?key={apikey}&isbns=9789082425406

I get the following information:

{"books":[{"id":28349851,"isbn":"9082425408","isbn13":"9789082425406","ratings_count":16,"reviews_count":2481,"text_reviews_count":5,"work_ratings_count":16,"work_reviews_count":2482,"work_text_reviews_count":5,"average_rating":"4.06"}]}

But if I try to use the method "show" instead od "review_counts"

https://www.goodreads.com/book/show.json?key={apikey}&isbns=9789082425406

I get this error: "Could not find this book."

like image 759
Luis Ramon Ramirez Rodriguez Avatar asked Oct 28 '25 19:10

Luis Ramon Ramirez Rodriguez


1 Answers

According to the Goodreads API docs, the /book/show endpoint takes an internal book ID as parameter.

To query by ISBN, hit the /book/isbn (click for docs) endpoint instead.

In the description of the endpoint, this example is provided:

GET https://www.goodreads.com/book/isbn/0441172717
like image 139
slezica Avatar answered Oct 31 '25 10:10

slezica



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!