Skip to content

v1.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Nov 22:45
· 1 commit to main since this release
5de4583

Added

  • get_work, which returns the full record for an Open Library work — the book as a whole, across all its editions: description, subjects, subject places, people and times, first publication date, cover, excerpts, external links, and authors with their names. Until now search_books, get_book_by_title and get_book_by_id returned an open_library_work_key that no tool accepted. Author names come from one extra search request; if that request fails, the authors are still returned by key rather than the tool failing. No edition count is reported, because the search index's count can disagree with the editions endpoint; get_work_editions' num_found is the authoritative total
  • get_work_editions, which lists a work's editions — its specific printings — each with its edition_key, title, edition name, publishers, publish date, languages (as the 3-letter MARC codes search_books' language takes), first ISBN-13 and ISBN-10 with separators removed, page count, format and cover. It returns at most limit editions (default 20, maximum 100) with num_found, the total, and pages with offset. A page of 50 raw edition records is ~37KB, mostly source records, local IDs and revision stamps; the trimmed page is ~13KB. Editions come in Open Library's order, not by date, and the endpoint offers no filter. Each edition_key can be passed to get_book_by_id as { "idType": "olid" } for that edition's full record
  • Both tools accept the work key bare (OL45804W) or in the /works/OL45804W form the other tools return, and every key they report is bare. A work Open Library has merged into another is followed to the surviving work, whose key is reported as work_key. Merged works answer with a redirect record rather than an HTTP redirect, and the editions endpoint answers 404 for them, so without this they would have been reported as not found
  • The search_books and get_book_by_title descriptions now say that a result's open_library_work_key can be passed to the two new tools