← Back to CLIs
pyrytakala

OpenLibrary

Manage openlibrary via CLI - search, works, books, authors, subjects, recent. Use when user mentions 'openlibrary' or wants to interact with the openlibrary API.

Install

$ npx api2cli install openlibrary-cli

Details

Auth type: bearer
Version: 0.1.0
Author: pyrytakala
Views: 0

README

openlibrary-cli

CLI for the Open Library API. Made with api2cli.dev.

Install

npx api2cli install pyrytakala/openlibrary-cli

Usage

No API key needed — the Open Library API is public.

openlibrary-cli --help

Resources

search

CommandDescription
openlibrary-cli search books "query"Search for books/works
openlibrary-cli search books "query" --author "name"Search by author
openlibrary-cli search authors "query"Search for authors
openlibrary-cli search lists "query"Search user lists

works

CommandDescription
openlibrary-cli works get <olid>Get a work by OLID
openlibrary-cli works editions <olid>List editions of a work
openlibrary-cli works ratings <olid>Get ratings for a work
openlibrary-cli works bookshelves <olid>Get reading log counts

books

CommandDescription
openlibrary-cli books get <olid>Get an edition by OLID
openlibrary-cli books isbn <isbn>Look up a book by ISBN

authors

CommandDescription
openlibrary-cli authors get <olid>Get author details
openlibrary-cli authors works <olid>List works by an author

subjects

CommandDescription
openlibrary-cli subjects get <subject>Get works for a subject
openlibrary-cli subjects get <subject> --ebooksFilter to e-books only

recent

CommandDescription
openlibrary-cli recent listList recent changes
openlibrary-cli recent list --kind add-bookFilter by change kind

Global Flags

All commands support: --json, --format <text|json|csv|yaml>, --verbose, --no-color, --no-header

OpenLibrary - api2cli | api2cli