Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

spinov001-art/openlibrary-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

openlibrary-python 📚

Lightweight Python client for Open Library API. Search 20M+ books, get covers, author info, and reading lists. No API key needed.

Quick Start

from openlibrary import OpenLibraryClient
client = OpenLibraryClient()
# Search books
results = client.search("python programming")
for book in results[:5]:
 print(f"{book['title']} by {book['author']} ({book['year']})")
# Get book by ISBN
book = client.by_isbn("9780134685991")
print(f"{book['title']}{book['pages']} pages")
# Get author
author = client.author("OL34184A") # Guido van Rossum
print(f"{author['name']}{author['bio'][:100]}")
# Get cover image URL
cover = client.cover_url("9780134685991")
print(f"Cover: {cover}")

Features

  • 20M+ books — comprehensive catalog from Internet Archive
  • Search — by title, author, subject, ISBN
  • Book details — pages, publishers, subjects, description
  • Cover images — S/M/L sizes for any book
  • Author profiles — bio, works, photos
  • No API key — completely free and open

API Reference

Method Description
search(query, limit=10) Search books by keyword
by_isbn(isbn) Get book by ISBN-10 or ISBN-13
book(olid) Get book by Open Library ID
author(olid) Get author details
author_works(olid, limit=10) Get author's works
cover_url(isbn, size="M") Get cover image URL (S/M/L)
subject(name, limit=10) Browse books by subject

Use Cases

  • Book recommendation engine
  • Reading list tracker
  • Library catalog app
  • Book cover gallery
  • ISBN lookup service

Related Projects

License

MIT


Need a Custom Tool Built?

I build production-ready scrapers, APIs, and data tools — 78+ deployed on Apify, 270+ open-source repos.

📧 spinov001@gmail.com 250ドル flat rate, 48h delivery. Describe your project, get a free estimate in 2 hours.

🔧 Browse 78+ ready-made tools on Apify →

About

Python client for Open Library API — search 20M+ books, covers, authors. No API key needed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /