APIs / Apps and media / Open Library

1 credit per call4 endpoints14 datapointsChecked working 6 Dec 2026

Open Library API

Open Library API for book search by title, author or subject, works, editions by ISBN and author details as JSON. 1 credit per successful call.

Open Library
GET/v1/openlibrary/search?query=dune&limit=10
{
  "success": true,
  "data": {
    "total": 48286,
    "page": 1,
    "has_more": true,
    "count": 10,
    "items": [
      {
        "work_id": "OL893414W",
        "title": "Dune",
        "authors": [
          {
            "name": "Frank Herbert",
            "id": "OL79034A"
          }
        ],
        "first_publish_year": 1965,
        "edition_count": 155,
        "isbns": [
          "9780450051722",
          "9780801950773",
          "9997516788"
        ],
        "pages_median": 604,
        "publishers": [
          "DEBOLSILLO",
          "Kabalci Yayinevi",
          "Ace"
        ],
        "languages": [
          "rus",
          "eng",
          "ukr"
        ],
        "subjects": [
          "Dune (Imaginary place)",
          "Fiction",
          "Fiction, science fiction, general"
        ],
        "rating": {
          "average": 4.32,
          "count": 469
        },
        "want_to_read": 3638,
        "cover_url": "https://covers.openlibrary.org/b/id/11481354-L.jpg",
        "url": "https://openlibrary.org/works/OL893414W"
      },
      {
        "work_id": "OL893461W",
        "title": "Dune Messiah",
        "authors": [
          {
            "name": "Frank Herbert",
            "id": "OL79034A"
          }
        ],
        "first_publish_year": 1969,
        "edition_count": 101,
        "isbns": [
          "5237041485",
          "2221255720",
          "9780575081536"
        ],
        "pages_median": 279,
        "publishers": [
          "Berkley Pub. Corp.",
          "Plaza & Janés",
          "«Книжный Клуб «Клуб Семейного Досуга»"
        ],
        "languages": [
          "rus",
          "dut",
          "tur"
        ],
        "subjects": [
          "American Science fiction",
          "Dune (Imaginary place)",
          "Fiction"
        ],
        "rating": {
          "average": 3.89,
          "count": 150
        },
        "want_to_read": 616,
        "cover_url": "https://covers.openlibrary.org/b/id/980253-L.jpg",
        "url": "https://openlibrary.org/works/OL893461W"
      },
      {
        "work_id": "OL893516W",
        "title": "Children of Dune",
        "authors": [
          {
            "name": "Frank Herbert",
            "id": "OL79034A"
          }
        ],
        "first_publish_year": 1976,
        "edition_count": 77,
        "isbns": [
          "9788381880473",
          "2266013033",
          "0441104118"
        ],
        "pages_median": 504,
        "publishers": [
          "France loisirs",
          "Brand: Macmillan Audio",
          "Robert Laffont"
        ],
        "languages": [
          "fre",
          "spa",
          "pol"
        ],
        "subjects": [
          "Dune (Imaginary place)",
          "Fiction",
          "Fiction in English"
        ],
        "rating": {
          "average": 4,
          "count": 55
        },
        "want_to_read": 314,
        "cover_url": "https://covers.openlibrary.org/b/id/6976407-L.jpg",
        "url": "https://openlibrary.org/works/OL893516W"
      }
    ]
  },
  "meta": {
    "request_id": "req_ecd8db94fbfa43e592c8f87ce11efc14",
    "credits_charged": 1,
    "credits_remaining": 1994
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#work_idstringtitlestringauthorsobject[]first_publish_yearintegeredition_countintegerisbnsstring[]pages_medianintegerpublishersstring[]languagesstring[]subjectsstring[]ratingobjectwant_to_readintegercover_urlurlurlurl
1OL893414WDune[1 item]1965155[3 items]604[3 items][3 items][3 items]{2 fields}3638https://covers.openlibrary.org/b/id/11481354-L.jpghttps://openlibrary.org/works/OL893414W
2OL893461WDune Messiah[1 item]1969101[3 items]279[3 items][3 items][3 items]{2 fields}616https://covers.openlibrary.org/b/id/980253-L.jpghttps://openlibrary.org/works/OL893461W
3OL893516WChildren of Dune[1 item]197677[3 items]504[3 items][3 items][3 items]{2 fields}314https://covers.openlibrary.org/b/id/6976407-L.jpghttps://openlibrary.org/works/OL893516W

Recorded from our API · 3 items shown · 14 datapoints per itemGET /v1/openlibrary/search?query=dune&limit=10

14 datapoints

Identity

  • work_idstring
  • titlestring

Contact

  • cover_urlurl
  • urlurl

Reputation

  • ratingobject

Other

  • authorsobject[]
  • first_publish_yearinteger
  • edition_countinteger
  • isbnsstring[]
  • pages_medianinteger
  • publishersstring[]
  • languagesstring[]
  • subjectsstring[]
  • want_to_readinteger

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/openlibrary/search?query=dune&limit=10" \
  -H "X-API-Key: $API_KEY"

Open Library · 4 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/openlibrary/author
id
author_idnamepersonal_namebirth_datedeath_datebio+6 more
1 credit
GET/v1/openlibrary/edition
isbn
edition_idtitlepublisherspublish_datepagesisbn_10+5 more
1 credit
GET/v1/openlibrary/search
none+7 optional
work_idtitleauthorsfirst_publish_yearedition_countisbns+8 more
1 credit
GET/v1/openlibrary/work
id
work_idtitledescriptionauthorssubjectssubject_places+5 more
1 credit

Overview

About the Open Library API

What you can get

The Open Library API returns book, edition and author data from Open Library as JSON through 4 endpoints. A work is a book across all its editions; an edition is one printing with its own ISBN.

  • Search: search takes at least one of query, title, author or subject, with sort (relevance, new, old, rating or editions), page and limit (1 to 100).
  • Works: work takes a work id, for example OL45804W.
  • Editions: edition takes an isbn, ISBN-10 or ISBN-13, with or without hyphens.
  • Authors: author takes an author id, for example OL79034A.

The recorded search for "dune" returns items, each with work_id, title, authors (name and id), first_publish_year, edition_count, isbns, pages_median, publishers, languages, subjects, rating (average and count), want_to_read, cover_url and url, plus total (48,286 in that recording), page and has_more. The first result, Frank Herbert's Dune (OL893414W, first published 1965), had 155 editions and an average rating of 4.32 from 469 ratings.

How a call works

Search, then look up: GET /v1/openlibrary/search?query=dune&limit=10 with your key in the X-API-Key header returns each book's work_id and its authors' ids; work takes the work_id and author takes an author id. If you start from an ISBN, GET /v1/openlibrary/edition?isbn=9780441172719 returns the edition's works and authors ids to pass on the same way. Check has_more before asking for the next page. Answers come from a cache for up to 24 hours, so ratings and reading counts can be up to a day old. Every successful call costs 1 credit; failed calls cost nothing.

Apps and mediaJSONRESTMCP

More apps and media APIs

Use cases

Turn an ISBN into title, publisher, publish date, page count and cover

Use the Open Library API to turn an ISBN into title, publisher, publish date, page count and cover

Build a reading list on a subject, sorted by rating or number of editions

Use the Open Library API to build a reading list on a subject, sorted by rating or number of editions

List an author's books, with their dates and biography

Use the Open Library API to list an author's books, with their dates and biography

Fill in book covers and subjects for a catalogue or library app

Use the Open Library API to fill in book covers and subjects for a catalogue or library app

FAQ

Questions

How much does the Open Library API cost?

Each successful call costs one credit, and each search page is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

What does `author` return?

The author's `name`, `personal_name`, `birth_date`, `death_date`, `bio`, `alternate_names`, `links`, `photo_url`, `works_count` and `remote_ids`, which link the author to other catalogues such as Wikidata and VIAF. In the recording, Frank Herbert (`OL79034A`) had a `works_count` of 146. It does not list the works themselves; use `search` with `author` for those.

What does `edition` return for an ISBN?

`edition_id`, `title`, `publishers`, `publish_date`, `pages`, ISBNs, `languages`, the `works` and `authors` ids, `cover_url` and `url`. Fields the record lacks are left out: the recorded lookup of `9780441172719` (Dune, Ace Books, 1987, 535 pages) returned `isbn_10` values only.

Do I need an Open Library account?

No. You call this Open Library API with your Perceptlayer key in the `X-API-Key` header, with no Open Library login.

Is this the official Open Library API?

No. Perceptlayer is an independent service and is not affiliated with Open Library. It returns Open Library data as JSON with a Perceptlayer key, so there is no Open Library developer account, app review or partner approval to get first. It only reads data: if Open Library has an official API and you need to act on your own Open Library account, such as posting, managing orders or reading private data, use that one.

Should I build an Open Library scraper instead?

You can, but an Open Library scraper is code you maintain: page changes break it, requests get blocked, and Open Library's terms govern how you collect data. The Open Library API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Open Library API with 100 free credits

No credit card. Failed calls are never billed.