Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the extra large cover image from google book API?

According to Google doc, using this link can get the URL extra large for a book

Google doc

However, when I clicked https://www.googleapis.com/books/v1/volumes/zyTCAlFPjgYC , there are only 2 thumbnails (small and medium). So do I need to obtain a Google API key to get full information about a book ?

like image 462
Harry Avatar asked May 23 '12 14:05

Harry


People also ask

Is the Google Books API free?

Pricing: The API is provided for free. Ease of use: Google is known for having comprehensive documentation and expansive support community, and the Google Books API is no exception.

Can I use a Google image for my book cover?

Longer answer: Yes, you may use images described by Google as being free for "reuse and modification" in your book cover, if... there are no other, non-copyright issues (such as, notably, respecting the personality rights of any people appearing in the image) that might prevent you from using the image.

What is the max number of results returned from a single call to Google Books API to search books?

maxResults - The maximum number of results to return. The default is 10, and the maximum allowable value is 40.

Is Google Books a REST API?

This web rest API was created by Google. The Google Books API endpoint is located at https://www.googleapis.com/books/v1. You can find the Google portal / hompage here. The Google Books API requires API Key, OAuth 2 authentication.


2 Answers

I figured out that you can replace the &zoom=1 part of the URL with &zoom=0 for larger images, but only in some cases.

For an example, this is the Sherlock Holmes small thumbnail:

http://bks5.books.google.com/books?id=buc0AAAAMAAJ&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api

Now, by setting zoom to 0, I get a large thumbnail:

http://bks5.books.google.com/books?id=buc0AAAAMAAJ&printsec=frontcover&img=1&zoom=0&edge=curl&source=gbs_api

like image 61
Mathias Lykkegaard Lorenzen Avatar answered Nov 03 '22 20:11

Mathias Lykkegaard Lorenzen


Actually with some books, google provides large image but some not.

like image 28
Harry Avatar answered Nov 03 '22 21:11

Harry