Google Books API Authors [closed]

I’m using the Google Books API and I want the api to send me back book info about a specific author (like list some of their books). However my link currently doesn’t seem to be doing that as whenever I use the inauthor parameter, all the books it sends me aren’t written by the author.

For example: ‘https://www.googleapis.com/books/v1/volumes?q=inauthor: emilyhenry & printType=books&langRestrict=en&key=mykey’

none of the books returned with this link are written by emily henry.

Answer

you need to factor in the space(so first name plus last name) in author’s name. so it will be emily+henry

so api call will be:

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