Open Library Book Search API
Books from Open Library for any title, author or topic words, best match first: work id, title, authors, first publication year, edition count, every ISBN, publishers, languages, subjects, Amazon ids, reader ratings and reading counts, page count and cover image.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from openlibrary.org/dev/docs/api/search
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/open-library-search/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"search_terms":["the lord of the rings"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
21 fields: 18 here, 3 technical ones under Technical details.
Basics
- Work key
Open Library's id of the work, such as OL27448W.
Example OL27448W
- Title
Title of the book.
Example The Lord of the Rings
- Authors
Author names, in the order Open Library lists them.
Example J.R.R. Tolkien
- Author keys
Open Library ids of those authors, such as OL26320A, in the same order.
Example OL26320A
- Edition count
Number of editions Open Library holds for this book.
Example 253
- Isbns
Every ISBN-10 and ISBN-13 of every edition, as one flat list.
Example 8071456063, 0063271265
- Publishers
Publishers of the editions.
Example Spectrum, BBC Books
- Languages
Languages of the editions, as three-letter MARC codes such as eng, fre or ger.
Example pol, cze
- Subjects
Subjects and genres the catalog lists for the book.
Example The Lord of the Rings, Fiction
- Median pages
Median page count across the editions.
Example 1,193
- Ratings average
Average rating from Open Library readers, out of 5.
Example 4.46
- Ratings count
Number of ratings from Open Library readers.
Example 126
- Want to read count
Open Library readers who marked the book as want to read.
Example 2,519
- Already read count
Open Library readers who marked the book as already read.
Example 250
- Ebook access
Ebook access on Open Library: public, borrowable, printdisabled or no_ebook.
Example borrowable
Dates
- First publish year
Year of the oldest edition Open Library holds.
Example 1954
Links
- Link
The book's page on Open Library.
Example openlibrary.org/works/OL27448W
Pictures and media
- Cover
Large cover image of the book.
Example Open the image
Technical detailsField names and types for developers, and the 3 fields hidden above
Hidden by default
These 3 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- Amazon IDs
amazon_idsAmazon product codes (ASINs or ISBN-10s) linked to the editions. - Cover ID
cover_idOpen Library's id of the cover image. - Search words
search_termThe search term that found the book; empty for a search by author or subject alone.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
work_key | text | Work key | 3 of 3 |
url | link | Link | 3 of 3 |
title | text | Title | 3 of 3 |
authors | list | Authors | 3 of 3 |
author_keys | list | Author keys | 3 of 3 |
first_publish_year | number | First publish year | 3 of 3 |
edition_count | number | Edition count | 3 of 3 |
isbns | list | Isbns | 3 of 3 |
publishers | list | Publishers | 3 of 3 |
languages | list | Languages | 3 of 3 |
subjects | list | Subjects | 3 of 3 |
amazon_ids | list | Amazon IDs (hidden) | 3 of 3 |
median_pages | number | Median pages | 3 of 3 |
ratings_average | number | Ratings average | 3 of 3 |
ratings_count | number | Ratings count | 3 of 3 |
want_to_read_count | number | Want to read count | 3 of 3 |
already_read_count | number | Already read count | 3 of 3 |
ebook_access | text | Ebook access | 3 of 3 |
cover_id | text | Cover ID (hidden) | 3 of 3 |
cover_url | image link | Cover | 3 of 3 |
search_term | text | Search words (hidden) | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Title | Work key | Authors | Author keys | Edition count | Isbns | Publishers | Languages | Subjects | Median pages | Ratings average | Ratings count | Want to read count | Already read count | Ebook access | First publish year | Link | Cover |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | The Lord of the Rings | OL27448W | J.R.R. Tolkien | OL26320A | 253 | 8071456063, 0063271265, 0261102346, 8435002780 | Spectrum, BBC Books, Brand: Mariner Books, WSOY | pol, cze, jpn, fre | The Lord of the Rings, Fiction, Ficción, English Fantasy fiction | 1,193 | 4.46 | 126 | 2,519 | 250 | borrowable | 1954 | openlibrary.org/works/OL27448W | covers.openlibrary.org/b/id/14625765-L.jpg |
| 2 | The Fellowship of the Ring | OL27513W | J.R.R. Tolkien | OL26320A | 319 | 0061917702, 9782070334797, 0007637675, 9789570823363 | J.G. Cotta'sche, Buchhandlung Nachfolger GmbH, Grafton, Yilin, Mariner Books | Houghton Mifflin Harcourt | dut, dan, tur, yid | Elves, Dwarves, evil, Ficción | 492 | 4.35 | 413 | 1,857 | 636 | borrowable | 1954 | openlibrary.org/works/OL27513W | covers.openlibrary.org/b/id/14627060-L.jpg |
| 3 | The Two Towers | OL27479W | J.R.R. Tolkien | OL26320A | 291 | 9780739301180, 9782070334810, 9584280341, 9789600403671 | J.G. Cotta'sche, Buchhandlung Nachfolger GmbH, Grafton, George Allen & Unwin Ltd, Mariner Books | Houghton Mifflin Harcourt | dut, dan, tur, yid | Ents, Orcs, hobbits, Ficción fantástica inglesa | 434 | 4.36 | 239 | 1,016 | 445 | borrowable | 1954 | openlibrary.org/works/OL27479W | covers.openlibrary.org/b/id/14627564-L.jpg |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Up to 1,000 books per search term (max_results) and 2,000 per run, best match first. Each record is a work: one book across all its editions, so its ISBN, publisher and language lists cover every edition Open Library holds.
- A book found by two search terms appears once, under the first term. The author and subject filters apply to every term; with no search terms they run as one search on their own.
- Values are Open Library's community-edited catalog: first_publish_year comes from the oldest edition it holds and is sometimes wrong or missing, and subjects mix several languages and wordings.
- ISBN, publisher, subject and Amazon id lists can run to hundreds of entries for popular books and are not cut. amazon_ids mixes Amazon product codes (ASINs) with ISBN-10s, as Open Library records them.
- Ratings and reading counts come from Open Library's own readers, so they are far smaller than Goodreads or Amazon counts; many books have none.
- Open Library asks for about one request per second, so each page of 100 books takes one to three seconds; a very large run ends early if the site asks to slow down.
- Catalog data is open data (mostly CC0 or public domain); cover images may carry the publisher's rights. Credit Open Library (openlibrary.org) when you publish the data.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.