Custom Connector

OpenLibrary Connector

Global

The OpenLibrary Connector provides a robust interface to a wide range of OpenLibrary services, enabling retrieval of data about books, authors, subjects, and book cover images. It supports book metadata, author profiles, subject-based collections, and high-quality cover images.

Type
Virtual machines, Single VM, BYOL
Runs on
Google Compute Engine
Last update
24 Oct 2024
Category
Integration
Overview

Integration Overview

This document provides a comprehensive guide for each endpoint, its purpose, configuration, and workflow support using the OpenLibrary Connector. The connector forwards HTTP GET requests to OpenLibrary, handling query parameters and headers for reliable retrieval.

  • get_books / get_volumes_brief. Retrieve book details by bibkeys, or brief volume info by key type and value.
  • get_authors / get_authors_works. Retrieve an author’s details, or a list of their works, by OLID.
  • get_book_by_olid / get_book_by_isbn. Retrieve book details by OLID or ISBN.
  • get_covers. Retrieve book cover images by key type, value, and size.
  • get_search / get_search_authors. Search for books or authors by a query string.
  • get_subjects / get_works. Retrieve books for a subject, or details for a specific work by OLID.
Documentation

Detailed Integration Documentation

Books & Volumes

Actionsget_books / get_volumes_brief
EndpointsGET /api/books · GET /api/volumes/brief/{key_type}/{value}.json
PurposeRetrieves detailed book information by bibkeys (ISBN, OCLC), or concise volume info for a key type and value.
ConfigurationConfigure the base URL via CONNECTOR_ENV_OPENLIBRARY_BASE_URL.
Parametersget_books required:
bibkeys (e.g. ISBN:9780140328721). Optional: format (json/javascript); callback; jscmd (viewapi/data). get_volumes_brief required:
key_type (isbn/oclc); value. Optional: callback.
OutputSuccessful: JSON with book/volume details (title, authors, availability). Failure: 400 / 404 / 500.
Workflow exampleGET /api/books with bibkeys=ISBN:9780140328721, or /api/volumes/brief/isbn/9780140328721.json.

Authors & Works

Actionsget_authors / get_authors_works
EndpointsGET /authors/{olid}.json · GET /authors/{olid}/works.json
PurposeRetrieves an author’s details (name, bio, birth date) or a list of their works, by OpenLibrary ID.
ConfigurationConfigure the base URL via CONNECTOR_ENV_OPENLIBRARY_BASE_URL.
ParametersRequired:
olid (e.g. OL123A). Optional (works):
limit (e.g. 10).
OutputSuccessful: JSON with author details or a list of works (titles, publication details). Failure: 400 / 404 / 500.
Workflow exampleGET /authors/OL123A.json, then /authors/OL123A/works.json with limit=10.

Book by OLID / ISBN

Actionsget_book_by_olid / get_book_by_isbn
EndpointsGET /books/{olid} · GET /isbn/{isbn}
PurposeRetrieves detailed book information by OpenLibrary ID or ISBN.
ConfigurationConfigure the base URL via CONNECTOR_ENV_OPENLIBRARY_BASE_URL.
ParametersRequired:
olid (e.g. OL123M) or isbn (e.g. 9780140328721).
OutputSuccessful: JSON with title, authors, and publication information. Failure: 400 / 404 / 500.
Workflow exampleGET /books/OL123M or GET /isbn/9780140328721.

Covers

Actionget_covers
EndpointGET /covers/{key_type}/{value}-{size}.jpg
PurposeRetrieves book cover images by key type, value, and size.
ConfigurationConfigure the base URL via CONNECTOR_ENV_OPENLIBRARY_BASE_URL.
ParametersRequired:
key_type (isbn/oclc); value; size (S/M/L).
OutputSuccessful: a JPEG image of the book cover. Failure: 400 / 404 / 500.
Workflow exampleGET /covers/isbn/9780140328721-M.jpg to display a cover image.

Search (books / authors)

Actionsget_search / get_search_authors
EndpointsGET /search.json · GET /search/authors.json
PurposeSearches for books (with pagination) or authors by a query string.
ConfigurationConfigure the base URL via CONNECTOR_ENV_OPENLIBRARY_BASE_URL.
ParametersRequired:
q (e.g. lord of the rings / J.R.R. Tolkien). Optional (books):
page.
OutputSuccessful: JSON with search results (titles, identifiers, or author names + OLIDs). Failure: 400 / 404 / 500.
Workflow exampleGET /search.json?q=lord of the rings, or /search/authors.json?q=J.R.R. Tolkien.

Subjects & Works

Actionsget_subjects / get_works
EndpointsGET /subjects/{subject}.json · GET /works/{olid}
PurposeRetrieves books associated with a subject (optionally detailed), or details for a specific work by OLID.
ConfigurationConfigure the base URL via CONNECTOR_ENV_OPENLIBRARY_BASE_URL.
ParametersRequired:
subject (e.g. fantasy) or olid (e.g. OL123W). Optional (subjects):
details (true/false).
OutputSuccessful: JSON with a list of books for the subject, or work details (title, authors, editions). Failure: 400 / 404 / 500.
Workflow exampleGET /subjects/fantasy.json?details=true, or /works/OL123W.

Example Workflow: Book Search & Details

Searchget_search with q=lord of the rings and page=1 to populate results.
Detailsget_book_by_olid with olid=OL123M for title, authors, and publication details.
Coverget_covers with key_type=isbn, value=9780140328721, size=M.
Authorget_authors with olid=OL123A to display the author’s name and bio.
Support

For technical support, contact custom-connectors-support@isolutions.sa.

free consultation

Schedule a Free Consultation With Our Specialists

Book a free demo
request

Begin Your Adventure With Experienced Professionals

Send request
help desk

Do You Have Questions or Want More Information? Call Now.

Contact support