Google Books Api Isbn Search

1 view
Skip to first unread message

Latrina Mosely

unread,
Aug 5, 2024, 12:46:31 PM8/5/24
to tronowadli
Iam trying to figure out how to search for a book by ISBN using the Google Books API. I need to write a program that searches for an ISBN then prints out the title, author, and edition. I tried using List volumesList = books.volumes.list(""); but that did not allow me to search by ISBN and I did not see a way to get the information I needed(when an ISBN was placed in it had no results) . What I have right now is:

Trying to find books written by Malcolm X but not an autobiography? Try this search:

Put 'Malcolm X' in the 'Author' field and '-autobiography' in the 'Keywords' field. See the results


ISBN is the acronym for International Standard Book Number. This 10 or 13-digit number identifies a specific book, an edition of a book, or a book-like product (such as an audiobook). Since 1970 each published book has been allocated a unique ISBN. In 2007, assigned ISBNs changed from 10 digits to 13. ISBNs are helpful when you want to find and buy an exact copy of a book, and AbeBooks helps you search by ISBN.


On most books, the ISBN number can be found on the back cover, next to the barcode. If a book doesn't show the ISBN on the back cover, look on the page featuring the copyright and publisher information and the ISBN will be found there.


Books will have a different ISBN number for the softcover version than for the hardcover edition. The large print edition will have its own ISBN. The ISBN will also vary depending on the country of publication. A popular book that has been reprinted numerous times over the years will have many different ISBN numbers - one for each publication. If you are looking for a specific edition, binding or even cover art of a certain title, knowing the ISBN will be extremely helpful when searching for the book.


We are working on some big improvements behind the scenes for book handling so books are not treated as second class citizens compared to journal articles. So ISBN search should only get more reliable in the future.


This document is intended for developers who want to write applications thatcan interact with the Books API.Google Books has a mission to digitize theworld's book content and make it more discoverable on the Web. The Books API isa way to search and access that content, as well as to create and viewpersonalization around that content.


Every request your application sends to the Books API needs to identify your application to Google. There are two ways to identify your application: using an OAuth 2.0 token (which also authorizes the request) and/or using the application's API key. Here's how to determine which of those options to use:


Your application must use OAuth 2.0 to authorize requests. No other authorization protocols are supported. If your application uses Sign In With Google, some aspects of authorization are handled for you.


Some flows include additional steps, such as using refresh tokens to acquire new access tokens. For detailed information about flows for various types of applications, see Google's OAuth 2.0 documentation.


To request access using OAuth 2.0, your application needs the scope information, as well asinformation that Google supplies when you register your application (such as the client ID and theclient secret).


OAuth 2.0: Whenever your application requests private user data, it must send an OAuth 2.0 token along with the request. Your application first sends a client ID and, possibly, a client secret to obtain a token. You can generate OAuth 2.0 credentials for web applications, service accounts, or installed applications.


The API supports several types of restrictions on API keys. If the API key that you need doesn't already exist, then create an API key in the Console by clicking Create credentials > API key. You can restrict the key before using it in production by clicking Restrict key and selecting one of the Restrictions.


You need to specify ID fields with certain API method calls. There are threetypes of IDs used within Google Books: Volume IDs - Unique strings given to each volume that Google Books knows about. An example of a volume ID is _LettPDhwR0C. You can use the API to get the volume ID by making a request that returns a Volume resource; you can find the volume ID in its id field. Bookshelf IDs - Numeric values given to a bookshelf in a user's library. Google provides some pre-defined shelves for every user with the following IDs: Favorites: 0 Purchased: 1 To Read: 2 Reading Now: 3 Have Read: 4 Reviewed: 5 Recently Viewed: 6 My eBooks: 7 Books For You: 8 If we have no recommendations for the user, this shelf does not exist. Custom shelves have IDs greater than 1000. A bookshelf ID is unique for a given user, i.e., two users can have a bookshelf with the same ID that refer to different bookshelves. You can use the API to get the bookshelf ID by making a request that returns a Bookshelf resource; you can find the bookshelf ID in its id field. User IDs - Unique numeric values assigned to each user. These values are not necessarily the same ID value used in other Google services. Currently, the only way retrieve the user ID is to extract it from the selfLink in a Bookshelf resource retrieved with an authenticated request. Users can also obtain their own user ID from the Books site. A user cannot obtain the user ID for another user via the API or the Books site; the other user would have to share that information explicitly, by email for example.


Google Books respects copyright, contract, and other legal restrictionsassociated with the end user's location. As a result, some users might not beable to access book content from certain countries. For example, certain booksare "previewable" only in the United States; we omit such preview links forusers in other countries. Therefore, the API results are restricted based onyour server or client application's IP address.


This request has a single required parameter:q - Search for volumes that contain this text string. There arespecial keywords you can specify in the search terms to search in particularfields, such as: intitle: Returns results where the text following this keyword is found in the title. inauthor: Returns results where the text following this keyword is found in the author. inpublisher: Returns results where the text following this keyword is found in the publisher. subject: Returns results where the text following this keyword is listed in the category list of the volume. isbn: Returns results where the text following this keyword is the ISBN number. lccn: Returns results where the text following this keyword is the Library of Congress Control Number. oclc: Returns results where the text following this keyword is the Online Computer Library Center number.


Here is an example of searching for Daniel Keyes' "Flowers for Algernon":GET =flowers+inauthor:keyes&key=yourAPIKeyNote: Performing a search does not require authentication, soyou do not have to provide the Authorization HTTP header with theGET request. However, if the call is made with authentication, eachVolume will include user-specific information, such as purchased status.


You use the download parameter to restrict the returned results to volumes that have an availabledownload format of epub by setting the to the valueepub.The following example searches for books with an epub download available:


The accessInfo section is of particular interest in determiningwhat features are available for an eBook. An epub is a flowing textformat ebook, the epub section will have anisAvailable property indicating if this type of ebook is available.It will have a download link if there is a sample for the book or if the usercan read the book either due to having purchased it or due to it being publicdomain in the user's location. A pdf for Google books indicates ascanned pages version of the ebook with similar details such as if it isavailable and a download link. Google recommends epub files foreReaders and SmartPhones, as scanned pages may be hard to read on these devices.If there is no accessInfo section, the volume is not available as aGoogle eBook.


Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.


2) On items where I had previously added a book listing and it had accepted the ISBN and pulled through all of the item specifics for me, when I now go in to revise the listing say for price, all of the item specifics AND the ISBN has disappeared. Again, is this because the back catalogue of ISBN's has somehow been screwed up?


Sorry to paraphrase from your statement -- but it's been O SO TRUE for O SO LONG: The eBay book catalogue has largely been a disaster for years, and there also seems to be no effort to correct the most glaring problems, such as misspellings, incorrect publishers, incorrect titles, incorrect genres, incorrect page counts, incorrect contents, incorrect summaries, incorrect copyright dates, and so on, and so on, and so on.


Admittedly, it is more labor intensive on the part of the seller to create a book listing entirely from scratch; but the up-side is that you can at least feel secure in knowing that you have personally verified each bit of necessary information on your own (which sellers who use the eBay book catalogue should be doing ANYWAY). Remember -- eBay makes it VERY clear, in each and every listing, that the SELLER is responsible for ALL the information included in a listing: eBay takes NO responsibility for all the errors that it includes in its own book catalog.


I have experienced the exact same problem in the last few weeks and have never experienced this previously. When I search for the ISBN in the catalog, no results can be found, and these are ISBNs that were in their catalog a few months ago. This is an problem that needs to be escalated by enough people to eBay customer service because it appears to be a problem with their database.

3a8082e126
Reply all
Reply to author
Forward
0 new messages