Google 本书 API 作者

Google Books API Authors

我正在使用 Google 图书 API,我希望 api 将有关特定作者的图书信息发回给我(例如列出他们的一些图书)。然而,我的 link 目前似乎没有这样做,因为每当我使用 inauthor 参数时,它发送给我的所有书籍都不是作者所写。

例如: 'https://www.googleapis.com/books/v1/volumes?q=inauthor: emilyhenry & printType=books&langRestrict=en&key=mykey'

none 随此 link 退回的书籍是艾米丽·亨利 (emily henry) 的作品。

当 运行 与给定 url 相同的请求时,我也会取回不是给定作者写的书。但是,如果我删除 url 中不应该存在的空格,我会取回 0 本书。我认为您搜索“emilyhenry”没有找到结果。

您需要考虑作者姓名中的 space(即名字和姓氏)。所以它将是 emily+henry

所以 api 调用将是:

https://www.googleapis.com/books/v1/volumes?q=inauthor:emily+henry&printType=books&langRestrict=en&key=mykey