Geek406
Geek406

Reputation: 31

Google Books API Authors

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.

Upvotes: -1

Views: 668

Answers (2)

simpleApp
simpleApp

Reputation: 3158

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

Upvotes: 0

Kailash E
Kailash E

Reputation: 161

When running the same request with the given url, I am also getting back books not written by the given author. However, if I remove the spaces in the url that shouldn't be there, I get back 0 books. I think your search of "emilyhenry" isn't yielding results.

Upvotes: 0

Related Questions