简体   繁体   English

谷歌图书 API 查找确切作者

[英]Google Books API find exact author

Working with the Google Books API, I'd like to be able to display other books by the same author, but the only 'author'-related filter I'm seeing in the docs is inauthor , which is looking for any authors that match the text provided:使用 Google Books API,我希望能够显示同一作者的其他书籍,但我在文档中看到的唯一与“作者”相关的过滤器是inauthor ,它正在寻找任何匹配的作者提供的案文:

https://www.googleapis.com/books/v1/volumes?q=inauthor:Richard+Moreno&key=my_key

Returns several books by authors with the first name 'Richard', not specifically 'Richard Moreno'返回几本作者名字为“Richard”的书籍,而不是具体的“Richard Moreno”

Is there a parameter I can specify that I want only books by the exact same author?是否有一个参数可以指定我只想要完全相同作者的书籍?

Or do I need to filter the results myself to try to find an exact match?还是我需要自己过滤结果以尝试找到完全匹配?

After finding the author on Google Books and clicking his name, Google put together this search:在谷歌图书上找到作者并点击他的名字后,谷歌将这个搜索放在一起:

https://www.google.com/search?tbo=p&tbm=bks&q=inauthor:"Richard+Moreno"

Which clued me in to using quotes to find an exact match.这让我开始使用引号来查找完全匹配的内容。 I should have known this was possible, but the aforementioned docs leave that out.我应该知道这是可能的,但是前面提到的文档将其省略了。

So now my query is:所以现在我的查询是:

https://www.googleapis.com/books/v1/volumes?q=inauthor:"Richard+Moreno"&key=my_key

Which works as I wanted哪个按我的意愿工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM