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.

Try it
Ready-made, maintained by usRecords, 21 fieldsv1.0

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

Search termsoptional
Book titles, authors or topic words, such as ["the lord of the rings", "dune"]. Each one is searched on its own. One per line, or separated by commas.
Example: the lord of the rings
Authoroptional
Only books by an author whose name matches, such as tolkien. Leave empty for any author.
Example: tolkien
Subjectoptional
Only books with this subject, such as science fiction or cooking. Leave empty for any subject.
Example: fantasy
Maximum resultsoptional
Most books per search term, 1 to 1,000 (100 when empty).
Example: 100

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
Endpoint
POSThttps://pullrow.dev/v1/apis/open-library-search/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

search_termslist
Book titles, authors or topic words, such as ["the lord of the rings", "dune"]. Each one is searched on its own.
example: the lord of the rings
authortext
Only books by an author whose name matches, such as tolkien. Leave empty for any author.
example: tolkien
subjecttext
Only books with this subject, such as science fiction or cooking. Leave empty for any subject.
example: fantasy
max_resultsnumber
Most books per search term, 1 to 1,000 (100 when empty).
default: 100example: 100

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

Pictures and media

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 nameTypeShown on this page asFilled
work_keytextWork key3 of 3
urllinkLink3 of 3
titletextTitle3 of 3
authorslistAuthors3 of 3
author_keyslistAuthor keys3 of 3
first_publish_yearnumberFirst publish year3 of 3
edition_countnumberEdition count3 of 3
isbnslistIsbns3 of 3
publisherslistPublishers3 of 3
languageslistLanguages3 of 3
subjectslistSubjects3 of 3
amazon_idslistAmazon IDs (hidden)3 of 3
median_pagesnumberMedian pages3 of 3
ratings_averagenumberRatings average3 of 3
ratings_countnumberRatings count3 of 3
want_to_read_countnumberWant to read count3 of 3
already_read_countnumberAlready read count3 of 3
ebook_accesstextEbook access3 of 3
cover_idtextCover ID (hidden)3 of 3
cover_urlimage linkCover3 of 3
search_termtextSearch words (hidden)3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordTitleWork keyAuthorsAuthor keysEdition countIsbnsPublishersLanguagesSubjectsMedian pagesRatings averageRatings countWant to read countAlready read countEbook accessFirst publish yearLinkCover
1The Lord of the RingsOL27448WJ.R.R. TolkienOL26320A2538071456063, 0063271265, 0261102346, 8435002780Spectrum, BBC Books, Brand: Mariner Books, WSOYpol, cze, jpn, freThe Lord of the Rings, Fiction, Ficción, English Fantasy fiction1,1934.461262,519250borrowable1954openlibrary.org/works/OL27448Wcovers.openlibrary.org/b/id/14625765-L.jpg
2The Fellowship of the RingOL27513WJ.R.R. TolkienOL26320A3190061917702, 9782070334797, 0007637675, 9789570823363J.G. Cotta'sche, Buchhandlung Nachfolger GmbH, Grafton, Yilin, Mariner Books | Houghton Mifflin Harcourtdut, dan, tur, yidElves, Dwarves, evil, Ficción4924.354131,857636borrowable1954openlibrary.org/works/OL27513Wcovers.openlibrary.org/b/id/14627060-L.jpg
3The Two TowersOL27479WJ.R.R. TolkienOL26320A2919780739301180, 9782070334810, 9584280341, 9789600403671J.G. Cotta'sche, Buchhandlung Nachfolger GmbH, Grafton, George Allen & Unwin Ltd, Mariner Books | Houghton Mifflin Harcourtdut, dan, tur, yidEnts, Orcs, hobbits, Ficción fantástica inglesa4344.362391,016445borrowable1954openlibrary.org/works/OL27479Wcovers.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.
Known limits
  • 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.