Open Library
v1.3.0Search books and authors on the Internet Archive's Open Library
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_books Search books
Search Open Library across titles, authors, subjects, places, people, publishers and ISBNs. Provide at least one search criterion: q, title, author, subject, place, person, publisher, isbn; combining several narrows the search. Returns at most `limit` results (default 10) together with `num_found`, the total number of matches; page through them with `offset`. Each result carries `best_edition` — one edition of the work, with its `isbn_13`/`isbn_10` where Open Library has them, and its `edition_key`, which can be passed to `get_book_by_id` as `{ idType: "olid" }` for that edition's full recor…
| Parameter | Type | Description |
|---|---|---|
author | string | Search by author name. |
isbn | string | Search by ISBN-10 or ISBN-13. |
language | string | Restrict results to a language, as a 3-letter MARC code (e.g. eng, fre, spa). |
limit | integer | Maximum number of results to return (1-50, default 10). |
offset | integer | Number of results to skip, for paging through the total reported as num_found (0-1000, default 0). |
person | string | Search by a person the book is about. |
place | string | Search by a place the book is about. |
publisher | string | Search by publisher. |
q | string | Free-form query searched across all fields. Supports Solr syntax, e.g. `subject:cyberpunk AND first_publish_year:[1980 TO 1990]`. |
sort | string | Result ordering. Omit for relevance. `new`/`old` order by first publication date, `rating` by average rating. |
subject | string | Search by subject. |
title | string | Search by book title. |
get_book_by_title Find books by title
Search for a book by its title on Open Library. Returns at most `limit` results (default 10) together with `num_found`, the total number of matches; page through them with `offset`. Each result carries `best_edition` — one edition of the work, with its `isbn_13`/`isbn_10` where Open Library has them, and its `edition_key`, which can be passed to `get_book_by_id` as `{ idType: "olid" }` for that edition's full record. Each result's `open_library_work_key` can be passed to `get_work` for the work's description, subjects and authors, or to `get_work_editions` to list its editions.
| Parameter | Type | Description |
|---|---|---|
title * | string | The title of the book to search for. |
limit | integer | Maximum number of results to return (1-50, default 10). |
offset | integer | Number of results to skip, for paging through the total reported as num_found (0-1000, default 0). |
get_book_by_id Get book by identifier
Get detailed information about a book using its identifier (ISBN, LCCN, OCLC, OLID).
| Parameter | Type | Description |
|---|---|---|
idType * | string | The type of identifier used (isbn, lccn, oclc, olid). Case-insensitive. |
idValue * | string | The value of the identifier. |
get_work Get work details
Get the full record for an Open Library work — the book as a whole, across all its editions: description, subjects, authors, first publication date, cover and external links. Takes the `open_library_work_key` returned by `search_books`, `get_book_by_title` or `get_book_by_id`. Use `get_work_editions` to list the work's editions.
| Parameter | Type | Description |
|---|---|---|
work_key * | string | The Open Library work key, e.g. OL45804W. The /works/OL45804W form returned by search_books, get_book_by_title and get_book_by_id is also accepted. |
get_work_editions List editions of a work
List the editions of an Open Library work — its specific printings, each with publisher, date, language, ISBNs, page count and format. Takes the `open_library_work_key` returned by `search_books`, `get_book_by_title` or `get_book_by_id`. Returns at most `limit` editions (default 20, maximum 100) with `num_found`, the total; page through them with `offset`. Editions are in Open Library's order, not by date, and cannot be filtered. Pass an edition's `edition_key` to `get_book_by_id` as `{ idType: "olid" }` for its full record.
| Parameter | Type | Description |
|---|---|---|
work_key * | string | The Open Library work key, e.g. OL45804W. The /works/OL45804W form returned by search_books, get_book_by_title and get_book_by_id is also accepted. |
limit | integer | Maximum number of editions to return (1-100, default 20). |
offset | integer | Number of editions to skip, for paging through the total reported as num_found (default 0). |
get_authors_by_name Find authors by name
Search for author information on Open Library. Returns at most `limit` authors (default 10) together with `num_found`, the total number of matches; page through them with `offset`. Each result's `key` can be passed to `get_author_info` for that author's full record.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the author to search for. |
limit | integer | Maximum number of results to return (1-50, default 10). |
offset | integer | Number of results to skip, for paging through the total reported as num_found (0-1000, default 0). |
get_author_info Get author details
Get detailed information for a specific author using their Open Library Author Key (e.g. OL23919A).
| Parameter | Type | Description |
|---|---|---|
author_key * | string | The Open Library key for the author (e.g., OL23919A). |
get_author_photo Get author photo URL
Get the URL for an author's photo using their Open Library Author ID (OLID e.g. OL23919A). Reports when no photo exists rather than returning a URL to a blank placeholder.
| Parameter | Type | Description |
|---|---|---|
olid * | string | The Open Library Author ID (OLID) for the author (e.g. OL23919A). |
get_book_cover Get book cover URL
Get the URL for a book's cover image using a key (ISBN, OCLC, LCCN, OLID, ID) and value. Reports when no cover exists rather than returning a URL to a blank placeholder.
| Parameter | Type | Description |
|---|---|---|
key * | string | The type of identifier used (ISBN, OCLC, LCCN, OLID, ID). ID is Open Library's internal cover ID. |
value * | string | The value of the identifier. |
size | string | The desired size of the cover (S, M, or L). Defaults to L. |