'Google Books API: Get print books only

For a long time now I've been looking for a suitable API to fetch data data about as many books as possible. My eyes fell on the Google Books API. Unfortunately, there is one problem that I am facing when trying to use the API.

For my application, which is an intermediary platform to sell and buy books online, it's important only to fetch physical books: printed books. I looked all through the documentation but I cannot seem to find a way to filter out only printed books. I already tried filtering by ISBN, but unfortunately there is no way to get books only with an ISBN number. Also I found out that eBooks may also have ISBN numbers.

If anyone has a way to achieve this, please share it with me.

Link to the documentation



Solution 1:[1]

With the API you can fetch a book, its type is Volume. Then you can dig into accessible data like the following example

Volume book = API_FetchByIsbn("9782864973423");
Boolean isEBook = book.getSaleInfo().getIsEbook();

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 C.B.