我试图使用API​​从Goodreads中提取评论。

我正在关注本教程:
http://www.hongkiat.com/blog/goodreads-ratings-api/
和API文档:
https://www.goodreads.com/api/index#review.show

使用此网址:

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


我得到以下信息:

{"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"}]}


但是,如果我尝试使用方法“ show”代替od“ review_counts”

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

我收到此错误:
“找不到这本书。”

最佳答案

根据Goodreads API文档,/book/show终结点采用内部书本ID作为参数。

要通过ISBN查询,请改为点击/book/isbn(单击获取文档)端点。

在端点的描述中,提供了以下示例:

GET https://www.goodreads.com/book/isbn/0441172717

10-05 20:43