APIs / Open Library / Search books

Open Library: Search books

Books on Open Library matching a query, title, author or subject: authors, first publication year, editions, ISBNs, covers and ratings.

GET /v1/openlibrary/search

Parameters

Send parameters in the query string.

Required Send query, title, author or subject.

ParameterTypeRequiredAllowed values
querystringOptionalUp to 200 characters
Words to match anywhere.
titlestringOptionalUp to 200 characters
Words to match in the title.
authorstringOptionalUp to 200 characters
Author name.
subjectstringOptionalUp to 100 characters
Subject, for example science fiction.
sortstringOptionalrelevance, new, old, rating, editions
Sort order. Default relevance.
pageintegerOptionalAny
Results page, from 1.
limitintegerOptionalAny
Results per page, 1 to 100. Default 20.

Example request

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.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.items has these 14 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
work_idstring
titlestring
authorsobject[]
first_publish_yearinteger
edition_countinteger
isbnsstring[]
pages_medianinteger
publishersstring[]
languagesstring[]
subjectsstring[]
ratingobject
want_to_readinteger
cover_urlurl
urlurl