简体   繁体   中英

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:

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'

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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