Last updated
Changelogopenlibrary.org API
HealthyRead-onlyStructured data from openlibrary.org. Generated from openlibrary.org.
/author1 credit per callAuthor
One author's profile: name, dates, biography, photo, links, alternate names and work count.
Details
Gives author_id, name, personal_name, fuller_name, title, birth_date, death_date, bio, photo_url, alternate_names, links, remote_ids (wikidata, viaf, ...), work_count, created, last_modified and url. Use /author_works for the works.
Authorization: Bearer <key> on every request.Parameters
Open Library author id like 'OL79034A' (a '/authors/...' path or URL also works).
Response fields
author_idnamepersonal_namefuller_nametitlebirth_datedeath_datebiophoto_urlalternate_nameslinks
titleurlremote_ids
viafwikidataisniamazonbookbrainzgoodreadsgndimdblc_naflibrarythingmusicbrainzstorygraphinventairelibrivoxproject_gutenbergopac_sbnwork_countcreatedlast_modifiedurlpagination
counthas_morenext_cursorfetched_atagecurl "https://api.maviapi.com/v1/sites/openlibrary/author?author_id=OL79034A" \-H "Authorization: Bearer $MAVI_KEY"
{
"author_id": "string",
"name": "string",
"personal_name": "string",
"fuller_name": null,
"title": "string",
"birth_date": "string",
"death_date": "string",
"bio": "string",
"photo_url": "string",
"alternate_names": [
"string"
],
"links": [
{
"title": "string",
"url": "string"
}
],
"remote_ids": {
"viaf": "string",
"wikidata": "string",
"isni": "string",
"amazon": "string",
"bookbrainz": "string",
"goodreads": "string",
"gnd": "string",
"imdb": "string",
"lc_naf": "string",
"librarything": "string",
"musicbrainz": "string",
"storygraph": "string",
"inventaire": "string",
"librivox": "string",
"project_gutenberg": "string",
"opac_sbn": "string"
},
"work_count": 0,
"created": "string",
"last_modified": "string",
"url": "string",
"pagination": {
"count": 0,
"has_more": false,
"next_cursor": null
},
"fetched_at": "string",
"age": 0
}Get all the data, no code
Collect every page of GET /author into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use openlibrary.org API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of openlibrary.org API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=openlibrary -- npx -y '@maviapi/mcp'Import openlibrary.org API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/openlibrary/openapi.json - Postman
https://api.maviapi.com/v1/apis/openlibrary/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
Build with the openlibrary.org API
Choose a starting endpoint
- Author
GET /authorOne author's profile: name, dates, biography, photo, links, alternate names and work count.
Parameters and response fields for GET /author
Request parameters Name Type / location Required Description author_id string / query No Open Library author id like 'OL79034A' (a '/authors/...' path or URL also works). Response fields Field Type Description author_id string name string personal_name string fuller_name null title string birth_date string death_date string bio string photo_url string alternate_names string[] links object[] links[].title string links[].url string remote_ids object remote_ids.viaf string remote_ids.wikidata string remote_ids.isni string remote_ids.amazon string remote_ids.bookbrainz string remote_ids.goodreads string remote_ids.gnd string remote_ids.imdb string remote_ids.lc_naf string remote_ids.librarything string remote_ids.musicbrainz string remote_ids.storygraph string remote_ids.inventaire string remote_ids.librivox string remote_ids.project_gutenberg string remote_ids.opac_sbn string work_count integer created string last_modified string url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - Trending
GET /trendingToday's trending books on Open Library, in Open Library's ranking order, 20 per page.
Parameters and response fields for GET /trending
Request parameters Name Type / location Required Description page integer / query No page number, starting at 1. Response fields Field Type Description page integer page_size integer has_next boolean next_page integer books object[] books[].rank integer books[].title string books[].author string books[].authors string[] books[].first_publish_year integer books[].cover_url string books[].work_key string books[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - Search Books
GET /search_booksBooks (works) matching a search, with authors, year, edition count, ratings and cover.
Parameters and response fields for GET /search_books
Request parameters Name Type / location Required Description q string / query No any words; Open Library query syntax is allowed. Give at least one of q, title, author or subject. title string / query No words in the title. author string / query No author name. subject string / query No subject name, e.g. 'science fiction'. sort string / query No '' (relevance), 'new', 'old', 'rating', 'editions', 'title', 'random' or 'readinglog'. page integer / query No page number, starting at 1. limit integer / query No results per page, 1-100. Response fields Field Type Description query object query.q string query.title string query.author string query.subject string query.sort string total integer page integer limit integer has_next boolean results object[] results[].title string results[].subtitle null results[].authors string[] results[].author_keys string[] results[].first_publish_year integer results[].edition_count integer results[].languages string[] results[].subjects string[] results[].ratings_average number results[].ratings_count integer results[].want_to_read_count integer results[].ebook_access string results[].cover_url string results[].work_id string results[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - Edition
GET /editionOne edition in full, looked up by its Open Library edition id or by ISBN: publisher, identifiers, pages, contents.
Parameters and response fields for GET /edition
Request parameters Name Type / location Required Description edition_id string / query No Open Library edition id like 'OL23126473M'; ignored when isbn is given. isbn string / query No an ISBN-10 or ISBN-13, e.g. '9780441013593'. Response fields Field Type Description edition_id string title string subtitle null publishers string[] publish_date string publish_places string[] edition_name string physical_format string number_of_pages integer languages string[] isbn_10 string[] isbn_13 string[] cover_url string work_id string url string by_statement null description null series string[] contributors object[] contributors[].role string contributors[].name string subjects string[] pagination null physical_dimensions null weight null lccn string[] oclc_numbers string[] dewey_decimal_class string[] lc_classifications string[] identifiers object identifiers.goodreads string[] identifiers.librarything string[] table_of_contents string[] notes null ocaid null copyright_date string translation_of null created string last_modified string authors object[] authors[].name string authors[].author_id string fetched_at string age integer - Work
GET /workOne book (work) in full: title, description, authors, subjects, covers, ratings and reading-log counts.
Parameters and response fields for GET /work
Request parameters Name Type / location Required Description work_id string / query No Open Library work id like 'OL893414W' (a '/works/...' path or URL also works). Response fields Field Type Description work_id string title string subtitle null description string first_publish_date null authors object[] authors[].name string authors[].author_id string authors[].role null subjects string[] subject_places string[] subject_people string[] subject_times string[] covers string[] links object[] links[].title string links[].url string excerpts string[] ratings object ratings.average number ratings.count integer ratings.counts object ratings.counts.1 integer ratings.counts.2 integer ratings.counts.3 integer ratings.counts.4 integer ratings.counts.5 integer reading_log object reading_log.want_to_read integer reading_log.currently_reading integer reading_log.already_read integer reading_log.stopped_reading integer created string last_modified string url string fetched_at string age integer - Work Editions
GET /work_editionsThe editions (published versions) of one work, with publisher, date, format, pages, languages, ISBNs and cover.
Parameters and response fields for GET /work_editions
Request parameters Name Type / location Required Description work_id string / query No Open Library work id like 'OL893414W'. page integer / query No page number, starting at 1. limit integer / query No editions per page, 1-100. Response fields Field Type Description work_id string total integer page integer limit integer has_next boolean editions object[] editions[].edition_id string editions[].title string editions[].subtitle null editions[].publishers string[] editions[].publish_date string editions[].publish_places string[] editions[].edition_name string editions[].physical_format string editions[].number_of_pages integer editions[].languages string[] editions[].isbn_10 string[] editions[].isbn_13 string[] editions[].cover_url string editions[].work_id string editions[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - Author Works
GET /author_worksThe works written by one author, most popular first, with year, edition count, ratings and cover.
Parameters and response fields for GET /author_works
Request parameters Name Type / location Required Description author_id string / query No Open Library author id like 'OL79034A'. page integer / query No page number, starting at 1. limit integer / query No works per page, 1-100. Response fields Field Type Description author_id string total integer page integer limit integer has_next boolean works object[] works[].title string works[].subtitle null works[].authors string[] works[].author_keys string[] works[].first_publish_year integer works[].edition_count integer works[].languages string[] works[].subjects string[] works[].ratings_average number works[].ratings_count integer works[].want_to_read_count integer works[].ebook_access string works[].cover_url string works[].work_id string works[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - Reading List
GET /reading_listOne reader-made list with its items (books, works, authors or subjects), each with title, type and picture.
Parameters and response fields for GET /reading_list
Request parameters Name Type / location Required Description list_path string / query No the list's path '/people/<user>/lists/OL...L' as given by /search_lists, or its full URL. Response fields Field Type Description list_path string name string description string owner string seed_count integer created string last_modified string items_available boolean url string items object[] items[].type string items[].id string items[].title string items[].picture_url string items[].last_update string items[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - Search Authors
GET /search_authorsAuthors matching a name search, with dates, best-known work, top subjects and work count.
Parameters and response fields for GET /search_authors
Request parameters Name Type / location Required Description q string / query No author name or words in it. page integer / query No page number, starting at 1. limit integer / query No results per page, 1-100. Response fields Field Type Description query string total integer page integer limit integer has_next boolean results object[] results[].author_id string results[].name string results[].alternate_names string[] results[].birth_date string results[].death_date string results[].top_work string results[].top_subjects string[] results[].work_count integer results[].photo_url string results[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - Search Lists
GET /search_listsReader-made reading lists matching a search, with name, owner, item count and last update.
Parameters and response fields for GET /search_lists
Request parameters Name Type / location Required Description q string / query No words in the list name. page integer / query No page number, starting at 1. limit integer / query No results per page, 1-100. Response fields Field Type Description query string page integer limit integer has_next boolean results object[] results[].list_path string results[].list_id string results[].owner string results[].name string results[].seed_count integer results[].last_update string results[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - Search Subjects
GET /search_subjectsSubjects matching a search, with their type and how many works carry them.
Parameters and response fields for GET /search_subjects
Request parameters Name Type / location Required Description q string / query No words in the subject name. page integer / query No page number, starting at 1. limit integer / query No results per page, 1-100. Response fields Field Type Description query string total integer page integer limit integer has_next boolean results object[] results[].name string results[].subject string results[].key string results[].subject_type string results[].work_count integer results[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - Subject
GET /subjectThe works filed under one subject, most popular first, with authors, year, edition count and cover.
Parameters and response fields for GET /subject
Request parameters Name Type / location Required Description name string / query No subject name or the subject value from /search_subjects, e.g. 'science fiction', 'love', 'place:paris', 'person:sherlock_holmes', 'time:1900-1999'. page integer / query No page number, starting at 1. limit integer / query No works per page, 1-100. ebooks_only boolean / query No only works with an ebook. Response fields Field Type Description key string name string subject_type string work_count integer page integer limit integer has_next boolean works object[] works[].title string works[].authors object[] works[].authors[].name string works[].authors[].author_id string works[].first_publish_year integer works[].edition_count integer works[].subjects string[] works[].has_fulltext boolean works[].cover_url string works[].work_id string works[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer
Export openlibrary.org data to CSV
Each list below downloads as a CSV file with one row per record. Collect it into a dataset with "Get all the data, no code" under the console above. The dataset reads the list page by page, and you download it as CSV, JSON or JSONL.
| List | CSV columns |
|---|---|
TrendingGET /trending | rank, title, author, authors, first_publish_year, cover_url, work_key, url |
Search BooksGET /search_books | title, subtitle, authors, author_keys, first_publish_year, edition_count, languages, subjects, ratings_average, ratings_count, want_to_read_count, ebook_access, cover_url, work_id, url |
Work EditionsGET /work_editions | edition_id, title, subtitle, publishers, publish_date, publish_places, edition_name, physical_format, number_of_pages, languages, isbn_10, isbn_13, cover_url, work_id, url |
Author WorksGET /author_works | title, subtitle, authors, author_keys, first_publish_year, edition_count, languages, subjects, ratings_average, ratings_count, want_to_read_count, ebook_access, cover_url, work_id, url |
Reading ListGET /reading_list | type, id, title, picture_url, last_update, url |
Search AuthorsGET /search_authors | author_id, name, alternate_names, birth_date, death_date, top_work, top_subjects, work_count, photo_url, url |
Search ListsGET /search_lists | list_path, list_id, owner, name, seed_count, last_update, url |
Search SubjectsGET /search_subjects | name, subject, key, subject_type, work_count, url |
SubjectGET /subject | title, authors, first_publish_year, edition_count, subjects, has_fulltext, cover_url, work_id, url |
A nested value (a list or an object) is written as JSON in one cell. How datasets and exports work
openlibrary.org API questions
What you get, what it costs and how to call it.
Is there an official openlibrary.org API?
This openlibrary.org API is not official. It is an independent, hosted API from maviapi for the public data on openlibrary.org, and it is not made, endorsed or supported by openlibrary.org. Whether openlibrary.org offers a developer API of its own is a question for openlibrary.org. This one is ready to call with a maviapi key, and every endpoint and field it returns is documented on this page.
What data can I get from the openlibrary.org API?
The openlibrary.org API has 12 endpoints. Each returns JSON with the parameters and fields documented above:
- GET
/author: One author's profile: name, dates, biography, photo, links, alternate names and work count. - GET
/trending: Today's trending books on Open Library, in Open Library's ranking order, 20 per page. - GET
/search_books: Books (works) matching a search, with authors, year, edition count, ratings and cover. - GET
/edition: One edition in full, looked up by its Open Library edition id or by ISBN: publisher, identifiers, pages, contents. - GET
/work: One book (work) in full: title, description, authors, subjects, covers, ratings and reading-log counts. - GET
/work_editions: The editions (published versions) of one work, with publisher, date, format, pages, languages, ISBNs and cover. - GET
/author_works: The works written by one author, most popular first, with year, edition count, ratings and cover. - GET
/reading_list: One reader-made list with its items (books, works, authors or subjects), each with title, type and picture. - GET
/search_authors: Authors matching a name search, with dates, best-known work, top subjects and work count. - GET
/search_lists: Reader-made reading lists matching a search, with name, owner, item count and last update. - GET
/search_subjects: Subjects matching a search, with their type and how many works carry them. - GET
/subject: The works filed under one subject, most popular first, with authors, year, edition count and cover.
How much does the openlibrary.org API cost?
Calls are paid in credits from your maviapi plan, and only successful calls are charged. Every endpoint of this API costs 1 credit per call. On the Basic plan ($19 a month for 25,000 credits), 1,000 calls cost about $0.76. Failed calls are free. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the openlibrary.org API?
Send an HTTPS request to the endpoint with your API key in the Authorization header. For example, GET /author:
curl 'https://api.maviapi.com/v1/sites/openlibrary/author' \
-H "Authorization: Bearer $MAVI_KEY"Create a key on your API keys page, or try any endpoint first in the console above with the free test key.
What are the ways to get openlibrary.org data as JSON?
Each way to get openlibrary.org data as JSON fits a different need:
- Your own scraper: Full control and no vendor, but the parsing, the blocked requests and the repairs after every change on openlibrary.org are yours. Better for a one-off pull from a page that rarely changes.
- Apify: A marketplace of Actors you run, where input, output and price are set by each Actor. Better when an Actor already returns what you need, or you want to host your own code. See maviapi vs Apify.
- RapidAPI: A hub of APIs added by many providers, called with one RapidAPI key and priced per API. Better when you already use the hub and one of its APIs covers what you need. Source: RapidAPI docs.
- maviapi: The openlibrary.org API on this page: 12 documented endpoints, a published response schema and one key for the whole catalog. Better when this data is part of your product and you do not want to maintain a scraper.
What happens when openlibrary.org changes its layout?
Your code does not change. maviapi keeps the openlibrary.org API working when openlibrary.org changes its pages, so you keep calling the same endpoints and get JSON in the shape documented here. See its current health on the status page and what changed in its changelog.
Will an update break my openlibrary.org API integration?
No. An endpoint you use never changes shape: new fields, optional parameters and endpoints are added beside it, and a change that would break a call ships as a new endpoint. Ignore response fields you do not know, and follow the changelog for what is new.
Related APIs
- Tripadvisor API
Trip-planning data from Tripadvisor: geo search plus attractions, restaurants and hotels by location (geo_id), withโฆ
- Eventbrite API
Events listed on Eventbrite for a city and date range: dates, venue with address and coordinates, image and summaryโฆ
- Songkick Concerts API
Upcoming concerts and music festivals in any city from Songkick, for a date window, with venues, performers, pricesโฆ