Skip to main content

Open Library Plugin

The Open Library metadata plugin fetches book metadata from Open Library, a free and open source library catalog. It provides automatic metadata enrichment for your ebooks and comics using ISBN-based lookup and title search.

Features

  • ISBN lookup - Direct lookup by ISBN-10 or ISBN-13 (fastest, most accurate)
  • Title/author search - Search by book title and author name
  • Cover images - Download cover images in multiple sizes
  • Structured authors - Author names with roles
  • Subject extraction - Categories and subjects from Open Library
  • External links - Links back to Open Library book pages

Installation

  1. Copy the metadata-openlibrary plugin folder to your Codex plugins directory
  2. Restart Codex or reload plugins
  3. The plugin will appear in Settings > Plugins

Plugin Permissions

The Open Library plugin requests the following permissions:

PermissionPurpose
MetadataReadRead existing book metadata to determine search parameters
MetadataWriteTitleUpdate book title
MetadataWriteSummaryUpdate book summary/description
MetadataWritePublisherUpdate publisher name
MetadataWriteYearUpdate publication year
MetadataWriteIsbnUpdate ISBNs
MetadataWriteSubtitleUpdate subtitle
MetadataWriteAuthorsUpdate structured author list
MetadataWriteSubjectsUpdate subject categories
MetadataWriteOriginalTitleUpdate original title
MetadataWriteOriginalYearUpdate original publication year
MetadataWriteEditionUpdate edition information

How It Works

Search Priority

When matching a book, the plugin uses the following priority:

  1. ISBN (if available) - Direct lookup via Open Library's ISBN API. This is the fastest and most accurate method (99% confidence).
  2. Title + Author (fallback) - Text search using the book's title and author names. Results are ranked by title similarity (max 85% confidence).

Metadata Mapping

Open Library FieldCodex FieldNotes
titleTitle
subtitleSubtitle
authors[].nameAuthorsMapped with "author" role
publishers[0]PublisherFirst publisher used
publish_dateYearYear extracted from date string
isbn_13 / isbn_10ISBNsISBN-13 preferred
subjectsSubjects
descriptionSummaryMay be plain text or object with value key
first_publish_dateOriginal YearYear of first publication
languages[0]LanguageConverted from Open Library format
CoversCover ImagesAvailable in small, medium, and large sizes

Cover Images

The plugin provides cover images in three sizes:

SizeApproximate DimensionsUse Case
Small~50x75Thumbnails, lists
Medium~180x270Grid views, cards
Large~300x450+Detail pages

Cover images are sourced from Open Library's cover API using the book's ISBN or cover ID.

Configuration

The plugin supports the following configuration options:

OptionTypeDefaultDescription
maxResultsnumber10Maximum search results to return (1-50)

Configure in Settings > Plugins > Open Library > Configuration.

Usage

Automatic Matching

When a book is scanned and has an ISBN (from EPUB metadata or ComicInfo.xml), the plugin can automatically fetch metadata:

  1. Navigate to a book's detail page
  2. Click Fetch Metadata (or the plugin action button)
  3. The plugin searches Open Library using the book's ISBN
  4. Review the metadata preview
  5. Apply the metadata

For books without ISBNs, you can search manually:

  1. Navigate to a book's detail page
  2. Click Fetch Metadata
  3. Enter a search query (title, author, or ISBN)
  4. Select the correct match from the results
  5. Apply the metadata

Re-fetching Metadata

Once a book has been matched to an Open Library entry, the external ID is stored. Future re-fetches use this stored ID to skip the search step, going directly to the metadata retrieval.

API Rate Limits

Open Library is a free service. The plugin includes built-in caching (15-minute TTL) to minimize API calls and respect the service. No API key is required.

Troubleshooting

No Results Found

  • Verify the ISBN is correct (check for typos)
  • Try searching by title instead of ISBN
  • Some books may not be in Open Library's catalog
  • Check that the plugin has network access to openlibrary.org

Incorrect Metadata

  • Open Library is community-maintained; some entries may have errors
  • Use the metadata lock feature to prevent overwriting manually corrected fields
  • You can edit individual fields after applying plugin metadata

Missing Covers

  • Not all Open Library entries have cover images
  • Try a different edition of the same book (different ISBN)
  • Upload a custom cover image instead

Next Steps