Menu

I built an API that searches 3 free libraries at once
📰

I built an API that searches 3 free libraries at once

DEV Community: python·Dani·about 12 hours ago
#nNaOytg2
#devtopython#devto#dev#book#gutenberg
Reading 0:00
15s threshold

I wanted to read more classics, and the hardest part was finding them. Free, legal copies are spread across Project Gutenberg, Open Library / Internet Archive and LibriVox. Each has its own search, its own formats, and the same book shows up several times.

So I built Public Domain Book Finder : one API that searches all 3 at once and hands back one tidy list. It's the first of 3 reading APIs I'm building.

What it does

Endpoint What you get

GET /search One search across 78,000+ Gutenberg ebooks, Open Library's fully open scans and LibriVox audiobooks. Duplicates are merged.

GET /book/{id} Every free format for one book: EPUB, Kindle, HTML, plain text, or MP3 chapters for audiobooks.

GET /read/{id} The book as clean text: license pages removed, broken line wraps fixed, chapters listed, served page by page.

One search, 3 libraries

import os import requests

HEADERS = { "X-RapidAPI-Key" : os .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.