Skip to content

Last updated

Changelog

openlibrary.org API

HealthyRead-only

Structured data from openlibrary.org. Generated from openlibrary.org.

Base URL
https://api.maviapi.com/v1/sites/openlibrary
12
Endpoints
21 min ago
Last verified
100%
Uptime / 7d
3851ms
p50 latency
GET/author1 credit per call

Author

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.

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
stringOptionalin query

Open Library author id like 'OL79034A' (a '/authors/...' path or URL also works).

author_idstring
namestring
personal_namestring
fuller_namenull
titlestring
birth_datestring
death_datestring
biostring
photo_urlstring
alternate_namesstring[]
linksobject[]2 fields
titlestring
urlstring
remote_idsobject16 fields
viafstring
wikidatastring
isnistring
amazonstring
bookbrainzstring
goodreadsstring
gndstring
imdbstring
lc_nafstring
librarythingstring
musicbrainzstring
storygraphstring
inventairestring
librivoxstring
project_gutenbergstring
opac_sbnstring
work_countinteger
createdstring
last_modifiedstring
urlstring
paginationobject3 fields
countinteger
has_moreboolean
next_cursornull
fetched_atstring
ageinteger
Try itLive
GET
https://api.maviapi.com/v1/sites/openlibrary/author?author_id=OL79034A
Request
curl "https://api.maviapi.com/v1/sites/openlibrary/author?author_id=OL79034A" \
-H "Authorization: Bearer $MAVI_KEY"
Example988 B
{
  "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.

How to connect
https://mcp.maviapi.com/mcp

Or 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 import

Paste 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 /author

    One author's profile: name, dates, biography, photo, links, alternate names and work count.

    Parameters and response fields for GET /author
    Request parameters
    NameType / locationRequiredDescription
    author_idstring / queryNoOpen Library author id like 'OL79034A' (a '/authors/...' path or URL also works).
    Response fields
    FieldTypeDescription
    author_idstring
    namestring
    personal_namestring
    fuller_namenull
    titlestring
    birth_datestring
    death_datestring
    biostring
    photo_urlstring
    alternate_namesstring[]
    linksobject[]
    links[].titlestring
    links[].urlstring
    remote_idsobject
    remote_ids.viafstring
    remote_ids.wikidatastring
    remote_ids.isnistring
    remote_ids.amazonstring
    remote_ids.bookbrainzstring
    remote_ids.goodreadsstring
    remote_ids.gndstring
    remote_ids.imdbstring
    remote_ids.lc_nafstring
    remote_ids.librarythingstring
    remote_ids.musicbrainzstring
    remote_ids.storygraphstring
    remote_ids.inventairestring
    remote_ids.librivoxstring
    remote_ids.project_gutenbergstring
    remote_ids.opac_sbnstring
    work_countinteger
    createdstring
    last_modifiedstring
    urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • Trending GET /trending

    Today's trending books on Open Library, in Open Library's ranking order, 20 per page.

    Parameters and response fields for GET /trending
    Request parameters
    NameType / locationRequiredDescription
    pageinteger / queryNopage number, starting at 1.
    Response fields
    FieldTypeDescription
    pageinteger
    page_sizeinteger
    has_nextboolean
    next_pageinteger
    booksobject[]
    books[].rankinteger
    books[].titlestring
    books[].authorstring
    books[].authorsstring[]
    books[].first_publish_yearinteger
    books[].cover_urlstring
    books[].work_keystring
    books[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • Search Books GET /search_books

    Books (works) matching a search, with authors, year, edition count, ratings and cover.

    Parameters and response fields for GET /search_books
    Request parameters
    NameType / locationRequiredDescription
    qstring / queryNoany words; Open Library query syntax is allowed. Give at least one of q, title, author or subject.
    titlestring / queryNowords in the title.
    authorstring / queryNoauthor name.
    subjectstring / queryNosubject name, e.g. 'science fiction'.
    sortstring / queryNo'' (relevance), 'new', 'old', 'rating', 'editions', 'title', 'random' or 'readinglog'.
    pageinteger / queryNopage number, starting at 1.
    limitinteger / queryNoresults per page, 1-100.
    Response fields
    FieldTypeDescription
    queryobject
    query.qstring
    query.titlestring
    query.authorstring
    query.subjectstring
    query.sortstring
    totalinteger
    pageinteger
    limitinteger
    has_nextboolean
    resultsobject[]
    results[].titlestring
    results[].subtitlenull
    results[].authorsstring[]
    results[].author_keysstring[]
    results[].first_publish_yearinteger
    results[].edition_countinteger
    results[].languagesstring[]
    results[].subjectsstring[]
    results[].ratings_averagenumber
    results[].ratings_countinteger
    results[].want_to_read_countinteger
    results[].ebook_accessstring
    results[].cover_urlstring
    results[].work_idstring
    results[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • Edition GET /edition

    One 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
    NameType / locationRequiredDescription
    edition_idstring / queryNoOpen Library edition id like 'OL23126473M'; ignored when isbn is given.
    isbnstring / queryNoan ISBN-10 or ISBN-13, e.g. '9780441013593'.
    Response fields
    FieldTypeDescription
    edition_idstring
    titlestring
    subtitlenull
    publishersstring[]
    publish_datestring
    publish_placesstring[]
    edition_namestring
    physical_formatstring
    number_of_pagesinteger
    languagesstring[]
    isbn_10string[]
    isbn_13string[]
    cover_urlstring
    work_idstring
    urlstring
    by_statementnull
    descriptionnull
    seriesstring[]
    contributorsobject[]
    contributors[].rolestring
    contributors[].namestring
    subjectsstring[]
    paginationnull
    physical_dimensionsnull
    weightnull
    lccnstring[]
    oclc_numbersstring[]
    dewey_decimal_classstring[]
    lc_classificationsstring[]
    identifiersobject
    identifiers.goodreadsstring[]
    identifiers.librarythingstring[]
    table_of_contentsstring[]
    notesnull
    ocaidnull
    copyright_datestring
    translation_ofnull
    createdstring
    last_modifiedstring
    authorsobject[]
    authors[].namestring
    authors[].author_idstring
    fetched_atstring
    ageinteger
  • Work GET /work

    One book (work) in full: title, description, authors, subjects, covers, ratings and reading-log counts.

    Parameters and response fields for GET /work
    Request parameters
    NameType / locationRequiredDescription
    work_idstring / queryNoOpen Library work id like 'OL893414W' (a '/works/...' path or URL also works).
    Response fields
    FieldTypeDescription
    work_idstring
    titlestring
    subtitlenull
    descriptionstring
    first_publish_datenull
    authorsobject[]
    authors[].namestring
    authors[].author_idstring
    authors[].rolenull
    subjectsstring[]
    subject_placesstring[]
    subject_peoplestring[]
    subject_timesstring[]
    coversstring[]
    linksobject[]
    links[].titlestring
    links[].urlstring
    excerptsstring[]
    ratingsobject
    ratings.averagenumber
    ratings.countinteger
    ratings.countsobject
    ratings.counts.1integer
    ratings.counts.2integer
    ratings.counts.3integer
    ratings.counts.4integer
    ratings.counts.5integer
    reading_logobject
    reading_log.want_to_readinteger
    reading_log.currently_readinginteger
    reading_log.already_readinteger
    reading_log.stopped_readinginteger
    createdstring
    last_modifiedstring
    urlstring
    fetched_atstring
    ageinteger
  • Work Editions GET /work_editions

    The 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
    NameType / locationRequiredDescription
    work_idstring / queryNoOpen Library work id like 'OL893414W'.
    pageinteger / queryNopage number, starting at 1.
    limitinteger / queryNoeditions per page, 1-100.
    Response fields
    FieldTypeDescription
    work_idstring
    totalinteger
    pageinteger
    limitinteger
    has_nextboolean
    editionsobject[]
    editions[].edition_idstring
    editions[].titlestring
    editions[].subtitlenull
    editions[].publishersstring[]
    editions[].publish_datestring
    editions[].publish_placesstring[]
    editions[].edition_namestring
    editions[].physical_formatstring
    editions[].number_of_pagesinteger
    editions[].languagesstring[]
    editions[].isbn_10string[]
    editions[].isbn_13string[]
    editions[].cover_urlstring
    editions[].work_idstring
    editions[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • Author Works GET /author_works

    The 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
    NameType / locationRequiredDescription
    author_idstring / queryNoOpen Library author id like 'OL79034A'.
    pageinteger / queryNopage number, starting at 1.
    limitinteger / queryNoworks per page, 1-100.
    Response fields
    FieldTypeDescription
    author_idstring
    totalinteger
    pageinteger
    limitinteger
    has_nextboolean
    worksobject[]
    works[].titlestring
    works[].subtitlenull
    works[].authorsstring[]
    works[].author_keysstring[]
    works[].first_publish_yearinteger
    works[].edition_countinteger
    works[].languagesstring[]
    works[].subjectsstring[]
    works[].ratings_averagenumber
    works[].ratings_countinteger
    works[].want_to_read_countinteger
    works[].ebook_accessstring
    works[].cover_urlstring
    works[].work_idstring
    works[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • Reading List GET /reading_list

    One 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
    NameType / locationRequiredDescription
    list_pathstring / queryNothe list's path '/people/<user>/lists/OL...L' as given by /search_lists, or its full URL.
    Response fields
    FieldTypeDescription
    list_pathstring
    namestring
    descriptionstring
    ownerstring
    seed_countinteger
    createdstring
    last_modifiedstring
    items_availableboolean
    urlstring
    itemsobject[]
    items[].typestring
    items[].idstring
    items[].titlestring
    items[].picture_urlstring
    items[].last_updatestring
    items[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • Search Authors GET /search_authors

    Authors matching a name search, with dates, best-known work, top subjects and work count.

    Parameters and response fields for GET /search_authors
    Request parameters
    NameType / locationRequiredDescription
    qstring / queryNoauthor name or words in it.
    pageinteger / queryNopage number, starting at 1.
    limitinteger / queryNoresults per page, 1-100.
    Response fields
    FieldTypeDescription
    querystring
    totalinteger
    pageinteger
    limitinteger
    has_nextboolean
    resultsobject[]
    results[].author_idstring
    results[].namestring
    results[].alternate_namesstring[]
    results[].birth_datestring
    results[].death_datestring
    results[].top_workstring
    results[].top_subjectsstring[]
    results[].work_countinteger
    results[].photo_urlstring
    results[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • Search Lists GET /search_lists

    Reader-made reading lists matching a search, with name, owner, item count and last update.

    Parameters and response fields for GET /search_lists
    Request parameters
    NameType / locationRequiredDescription
    qstring / queryNowords in the list name.
    pageinteger / queryNopage number, starting at 1.
    limitinteger / queryNoresults per page, 1-100.
    Response fields
    FieldTypeDescription
    querystring
    pageinteger
    limitinteger
    has_nextboolean
    resultsobject[]
    results[].list_pathstring
    results[].list_idstring
    results[].ownerstring
    results[].namestring
    results[].seed_countinteger
    results[].last_updatestring
    results[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • Search Subjects GET /search_subjects

    Subjects matching a search, with their type and how many works carry them.

    Parameters and response fields for GET /search_subjects
    Request parameters
    NameType / locationRequiredDescription
    qstring / queryNowords in the subject name.
    pageinteger / queryNopage number, starting at 1.
    limitinteger / queryNoresults per page, 1-100.
    Response fields
    FieldTypeDescription
    querystring
    totalinteger
    pageinteger
    limitinteger
    has_nextboolean
    resultsobject[]
    results[].namestring
    results[].subjectstring
    results[].keystring
    results[].subject_typestring
    results[].work_countinteger
    results[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • Subject GET /subject

    The works filed under one subject, most popular first, with authors, year, edition count and cover.

    Parameters and response fields for GET /subject
    Request parameters
    NameType / locationRequiredDescription
    namestring / queryNosubject name or the subject value from /search_subjects, e.g. 'science fiction', 'love', 'place:paris', 'person:sherlock_holmes', 'time:1900-1999'.
    pageinteger / queryNopage number, starting at 1.
    limitinteger / queryNoworks per page, 1-100.
    ebooks_onlyboolean / queryNoonly works with an ebook.
    Response fields
    FieldTypeDescription
    keystring
    namestring
    subject_typestring
    work_countinteger
    pageinteger
    limitinteger
    has_nextboolean
    worksobject[]
    works[].titlestring
    works[].authorsobject[]
    works[].authors[].namestring
    works[].authors[].author_idstring
    works[].first_publish_yearinteger
    works[].edition_countinteger
    works[].subjectsstring[]
    works[].has_fulltextboolean
    works[].cover_urlstring
    works[].work_idstring
    works[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger

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.

ListCSV columns
TrendingGET /trendingrank, title, author, authors, first_publish_year, cover_url, work_key, url
Search BooksGET /search_bookstitle, 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_editionsedition_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_workstitle, 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_listtype, id, title, picture_url, last_update, url
Search AuthorsGET /search_authorsauthor_id, name, alternate_names, birth_date, death_date, top_work, top_subjects, work_count, photo_url, url
Search ListsGET /search_listslist_path, list_id, owner, name, seed_count, last_update, url
Search SubjectsGET /search_subjectsname, subject, key, subject_type, work_count, url
SubjectGET /subjecttitle, 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
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.

  • 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โ€ฆ