Open Library APIunofficial
Open Library (the Internet Archive's book catalog): book search from the site's search page, and a work's or an author's record from the site's own JSON. Public, logged out.
- openlibrary.org
all live 7 operations, checked by the installs that call them.
Seeded by the maintainers.
Try it
Set up API Anything for your agents:
npx -y api-anything setupThen ask your agent, which finds this site by itself, or call it from a shell:
api-anything pull openlibrary
api-anything call openlibrary getAuthor authorId=OL31353ARun it here, no install
Run one of these from the catalog's server, with no install: one live read, sent once without cookies, limited per network and cached for 10 minutes. Your agent calls the site from your own machine instead.
getWork One work (a book across all its editions): workId, title, description, authorIds ("/authors/OL31353A" keys), subjects, subjectPlaces and coverId.
curl -s 'https://api-anything-registry.forth-site.workers.dev/v1/try/openlibrary/getWork?workId=OL59800W'getAuthor One author: authorId, name, birthDate, deathDate, bio and alternateNames.
curl -s 'https://api-anything-registry.forth-site.workers.dev/v1/try/openlibrary/getAuthor?authorId=OL31353A'Operations
| Operation | Method | Login | Writes | Status |
|---|---|---|---|---|
getAuthor(authorId) -> authorId, name, birthDate, deathDate, bio, alternateNamesOne author: authorId, name, birthDate, deathDate, bio and alternateNames. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getAuthorWorks(authorId) -> workId, title, firstPublishedList the first page of an author’s works and their first publication dates when recorded. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getByIsbn(isbn) -> editionId, title, publishers, publishDate, pages, works, authorsLook up a book edition by ISBN. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getEditions(workId) -> editionId, title, publishers, publishDate, isbn10, isbn13, pages, languagesList the first page of a work’s editions, including ISBNs and publication details. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getSubject(subject) -> workId, title, authors, firstPublishedList the first page of works for a subject, with authors and first publication year when available. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getWork(workId) -> workId, title, description, authorIds, subjects, subjectPlaces, coverIdOne work (a book across all its editions): workId, title, description, authorIds ("/authors/OL31353A" keys), subjects, subjectPlaces and coverId. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
searchBooks(q) -> workId, title, author, authorId, firstPublished, editionsSearch books by title, author or subject, from the site's search page (page 1, up to 20 works): workId, title, author (list), authorId (the first author), firstPublished ("First published in 1969") and editions ("92 editions"). |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
Notes
No account is needed.
- A work is a book across all its editions. Ids look like
OL59800W(work) andOL31353A(author). searchBooksreturns page 1 only (20 works), ranked by the site. Several works can share a title (study guides, other editions catalogued apart): pick by author and byeditions, the largest usually being the main one.authorIdis the first author only;authorlists them all.getWorkdescriptionis sometimes plain text and sometimes an object whose text is invalue. It,subjects,subjectPlacesandcoverIdare missing when the catalog has none.authorIdsare keys like/authors/OL31353A: the last part is thegetAuthorarg.getAuthor:biofollows the same text-or-object rule.birthDateanddeathDateare free text in whatever format the record has (21 October 1929,January 4, 1976), and each can be missing.getEditionsreturns the first 50 editions, not all editions. Edition ids are keys like/books/OL7353617M; language values are keys like/languages/eng. ISBNs, publisher, publication date, pages and languages may be missing.getByIsbnaccepts an ISBN-10 or ISBN-13 without hyphens. Work and author values are keys such as/works/OL45804Wand/authors/OL34184A, and may be absent.getAuthorWorksreturns the first 50 works. Its work ids are/works/keys, and first publication dates are free text and often missing.getSubjecttakes a subject slug such asscience_fictionand returns the first 12 works. It does not return the subject's total work count. Authors and first publication year may be missing.- A cover image is
https://covers.openlibrary.org/b/id/<coverId>-M.jpg(-S,-Mor-L).
About these operations
Each operation is a request learned from Open Library's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.