apiurlgoogle-booksisbn

Google Books API static link not working as expected


I am trying to implement a Google Books API request for books front coverages in my website. According to the documentation, all I need is to make a request with a static link: https://books.google.com/books?vid=ISBN{ISBN}&printsec=frontcover

I created a test link: https://books.google.com/books?vid=ISBN0812511816&printsec=frontcover

However, instead of getting the cover, I'm getting the complete page of the book, not just the cover.

I'm not sure what I'm doing wrong here.


Solution

  • They changed the behavior of that call!

    Now to get the cover, you have to use the internal id of the book (not the ISBN), e.g.:

    https://books.google.com/books/content?id=ib7xnQAACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api