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.
{
"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
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | work_idstring | titlestring | authorsobject[] | first_publish_yearinteger | edition_countinteger | isbnsstring[] | pages_medianinteger | publishersstring[] | languagesstring[] | subjectsstring[] | ratingobject | want_to_readinteger | cover_urlurl | urlurl |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
[
{
"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"
}
]work_id,title,authors,first_publish_year,edition_count,isbns,pages_median,publishers,languages,subjects,rating,want_to_read,cover_url,url
OL893414W,Dune,"[{""name"":""Frank Herbert"",""id"":""OL79034A""}]",1965,155,"[""9780450051722"",""9780801950773"",""9997516788""]",604,"[""DEBOLSILLO"",""Kabalci Yayinevi"",""Ace""]","[""rus"",""eng"",""ukr""]","[""Dune (Imaginary place)"",""Fiction"",""Fiction, science fiction, general""]","{""average"":4.32,""count"":469}",3638,https://covers.openlibrary.org/b/id/11481354-L.jpg,https://openlibrary.org/works/OL893414W
OL893461W,Dune Messiah,"[{""name"":""Frank Herbert"",""id"":""OL79034A""}]",1969,101,"[""5237041485"",""2221255720"",""9780575081536""]",279,"[""Berkley Pub. Corp."",""Plaza & Janés"",""«Книжный Клуб «Клуб Семейного Досуга»""]","[""rus"",""dut"",""tur""]","[""American Science fiction"",""Dune (Imaginary place)"",""Fiction""]","{""average"":3.89,""count"":150}",616,https://covers.openlibrary.org/b/id/980253-L.jpg,https://openlibrary.org/works/OL893461W
OL893516W,Children of Dune,"[{""name"":""Frank Herbert"",""id"":""OL79034A""}]",1976,77,"[""9788381880473"",""2266013033"",""0441104118""]",504,"[""France loisirs"",""Brand: Macmillan Audio"",""Robert Laffont""]","[""fre"",""spa"",""pol""]","[""Dune (Imaginary place)"",""Fiction"",""Fiction in English""]","{""average"":4,""count"":55}",314,https://covers.openlibrary.org/b/id/6976407-L.jpg,https://openlibrary.org/works/OL893516WRecorded 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
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 | 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:
searchtakes at least one ofquery,title,authororsubject, withsort(relevance, new, old, rating or editions),pageandlimit(1 to 100). - Works:
worktakes a workid, for exampleOL45804W. - Editions:
editiontakes anisbn, ISBN-10 or ISBN-13, with or without hyphens. - Authors:
authortakes an authorid, for exampleOL79034A.
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.
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 coverBuild 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 editionsList an author's books, with their dates and biography
Use the Open Library API to list an author's books, with their dates and biographyFill 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 appFAQ
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.