

When optional callback parameter is passed, the response is wrapped in a Javascript function call. The contents of the JSON object are decided by the jscmd parameter.īy default, the API returns the response as Javascript. The response of the API contains a JSON object for each matched bib_key. Optional parameter to decide what information to provide for each matched bib_key. This is considered only when the format is javascript. Optional parameter which specifies the name of the JavaScript function to call with the result. Optional parameter which specifies the response format. &bibkeys=ISBN:0451526538 (The API supports both ISBN 10 and 13.) The API supports ISBNs, LCCNs, OCLC numbers and OLIDs (Open Library IDs).Įx. The API supports the following query parameters. It is inspired by the Google Books Dynamic links API and is compatible with it.Īt the core of the API is a URL format that allows developers to construct URLs requesting information on one or more books and send the requests to the Open Library using the tag. The Book API is a generic, flexible, configurable endpoint which allows requesting information on one or more books using ISBNs, OCLC Numbers, LCCNs and OLIDs (Open Library IDs). Just like an Edition or Work page, we may add ".json" to the end of the URL to request the response in json instead of as HTML, e.g.: In this example, entering this URL will result in a redirect to the appropriate Editions page: Instead of "/books", a path of "/isbn" is used, followed by a valid ISBN 10 or 13. The ISBN API is a special case and alternative approach to arriving at an Editions page. You can fetch a work's editions by adding /editions.json after the work ID:Įdition pages on Open Library begin with the prefix "/books". ) and then add a suffix of ".json" or ".yml" to the end, the page will return a data representation instead of HTML, e.g.: In this example, if we remove the /Title from the URL (e.g. Work pages on Open Library begin with the URL prefix "/works". the pages you navigate to) may also be returned as json or yml (in addition to HTML) by modifying the page URL. Work metadata will include general umbrella information about a book, whereas an Edition will have a publisher, an ISBN, a book-jacket, and other specific information.īoth Work and Edition pages on Open Library (i.e. Fox" could be a Work which contains a Spanish translation edition, or perhaps a 2nd edition which has an additional chapter or corrections. The Open Library Books API provides a programmatic client-side method for querying information of books using Javascript.Ī Work is a logical collection of similar Editions.
