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.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Optional | Up to 200 characters Words to match anywhere. |
title | string | Optional | Up to 200 characters Words to match in the title. |
author | string | Optional | Up to 200 characters Author name. |
subject | string | Optional | Up to 100 characters Subject, for example science fiction. |
sort | string | Optional | relevance, new, old, rating, editions Sort order. Default relevance. |
page | integer | Optional | Any Results page, from 1. |
limit | integer | Optional | Any 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.
| Field | Type |
|---|---|
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 |