---
title: "Open Library API: book search as JSON | Perceptlayer"
description: "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."
url: https://perceptlayer.com/apis/openlibrary
---

[APIs](https://perceptlayer.com/apis) / [Apps and media](https://perceptlayer.com/verticals/apps) / Open Library

1 credit per call 4 endpoints 14 datapoints 

# 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.

[Get a free API key](https://perceptlayer.com/signup) Run it below

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 OK JSON X-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\_id string | title string | authors object\[\] | first\_publish\_year integer | edition\_count integer | isbns string\[\] | pages\_median integer | publishers string\[\] | languages string\[\] | subjects string\[\] | rating object | want\_to\_read integer | cover\_url url | url url |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | OL893414W | Dune | \[1 item\] | 1965 | 155 | \[3 items\] | 604 | \[3 items\] | \[3 items\] | \[3 items\] | {2 fields} | 3638 | https://covers.openlibrary.org/b/id/11481354-L.jpg | https://openlibrary.org/works/OL893414W |
| 2 | OL893461W | Dune Messiah | \[1 item\] | 1969 | 101 | \[3 items\] | 279 | \[3 items\] | \[3 items\] | \[3 items\] | {2 fields} | 616 | https://covers.openlibrary.org/b/id/980253-L.jpg | https://openlibrary.org/works/OL893461W |
| 3 | OL893516W | Children of Dune | \[1 item\] | 1976 | 77 | \[3 items\] | 504 | \[3 items\] | \[3 items\] | \[3 items\] | {2 fields} | 314 | https://covers.openlibrary.org/b/id/6976407-L.jpg | https://openlibrary.org/works/OL893516W |

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

14 datapoints

### Identity

-   work\_id string
-   title string

### Contact

-   cover\_url url
-   url url

### Reputation

-   rating object

### Other

-   authors object\[\]
-   first\_publish\_year integer
-   edition\_count integer
-   isbns string\[\]
-   pages\_median integer
-   publishers string\[\]
-   languages string\[\]
-   subjects string\[\]
-   want\_to\_read integer

Playground

## Run this API

cURL shell 

```
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.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/openlibrary/author`](https://perceptlayer.com/apis/openlibrary/author) | `id` | `author_id` `name` `personal_name` `birth_date` `death_date` `bio` +6 more | 1 credit |
| [GET `/v1/openlibrary/edition`](https://perceptlayer.com/apis/openlibrary/edition) | `isbn` | `edition_id` `title` `publishers` `publish_date` `pages` `isbn_10` +5 more | 1 credit |
| [GET `/v1/openlibrary/search`](https://perceptlayer.com/apis/openlibrary/search) | none +7 optional | `work_id` `title` `authors` `first_publish_year` `edition_count` `isbns` +8 more | 1 credit |
| [GET `/v1/openlibrary/work`](https://perceptlayer.com/apis/openlibrary/work) | `id` | `work_id` `title` `description` `authors` `subjects` `subject_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' `id`s; `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 media JSON REST MCP

### More apps and media APIs

[Apple App Store](https://perceptlayer.com/apis/apple-app-store) [Apple Podcasts](https://perceptlayer.com/apis/apple-podcasts) [arXiv](https://perceptlayer.com/apis/arxiv) [Audible](https://perceptlayer.com/apis/audible) [Bandcamp](https://perceptlayer.com/apis/bandcamp) [Chrome Web Store](https://perceptlayer.com/apis/chrome-web-store) [CISA KEV](https://perceptlayer.com/apis/cisa-kev) [ClinicalTrials.gov](https://perceptlayer.com/apis/clinicaltrials) [Coursera](https://perceptlayer.com/apis/coursera) [crates.io](https://perceptlayer.com/apis/crates-io) [Crossref](https://perceptlayer.com/apis/crossref) [Discogs](https://perceptlayer.com/apis/discogs)

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.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
