Public Domain Books API
EntertainmentMAINTAINED1 token / call

Public Domain Books API

All 78,037 Project Gutenberg ebooks in 56 languages with full-text search and download links

The world's free library, searchable. The complete Project Gutenberg catalog — 78,037 public-domain ebooks in 56 languages — with full-text search over titles, authors AND Library of Congress subjects ('pride and prejudice' → Gutenberg #1342; 'detective fiction' → 1,190 books), author and language filters (Jules Verne in French: 47 works), parsed display authors ('Austen, Jane, 1775-1817' becomes 'Jane Austen'), subjects, LoC classes and curated bookshelves. Every book ships with ready-to-use links: the Gutenberg landing page, plain-text and EPUB downloads, and a cover image — all from Gutenberg's stable cache layout (verified live). A random endpoint (optionally per language) powers book-of-the-day features, and detail responses include more works by the same author (Moby Dick → Typee, and the rest of Melville). Reading apps, e-ink devices, education platforms, language-learning tools, literary games and AI training corpora — the classics, one API call away.

Every call needs an X-Api-Key header. A free key includes 500 tokens a month, no card required. 1 token per call, so the free plan covers about 500 calls a month.

No credit card requiredAccess to 125+ APIsCancel anytime
response.json
{
  "ok": true,
  "book": {
    "id": 2701,
    "title": "Moby Dick; Or, The Whale",
    "authors": "Melville, Herman, 1819-1891",
    "first_author": "Herman Melville",
    "language": "en",
    "issued": "2001-07-01",
    "subjects": "Whaling -- Fiction; Sea stories; Psychological fiction; Ship captains -- Fiction; Adventure stories; Mentally ill -- Fiction; Ahab, Captain (Fictitious character) -- Fiction; Whales -- Fiction; Whaling ships -- Fiction",
    "locc": "PS",
    "bookshelves": "Best Books Ever Listings; Category: Adventure; Category: Novels; Category: Classics of Literature; Category: American Literature",
    "links": {
      "gutenberg_url": "https://www.gutenberg.org/ebooks/2701",
      "text": "https://www.gutenberg.org/cache/epub/2701/pg2701.txt",
      "epub": "https://www.gutenberg.org/cache/epub/2701/pg2701-images.epub",
      "cover": "https://www.gutenberg.org/cache/epub/2701/pg2701.cover.medium.jpg"
    }
  },
  "more_by_author": [
    {
      "id": 15,
      "title": "Moby-Dick; or, The Whale",
      "language": "en"
    },
    {
      "id": 1900,
      "title": "Typee: A Romance of the South Seas",
      "language": "en"
    },
    {
      "id": 2489,
      "title": "Moby Dick; Or, The Whale",
      "language": "en"
    },
    {
      "id": 2694,
      "title": "I and My Chimney",
      "language": "en"
    },
    {
      "id": 4045,
      "title": "Omoo: Adventures in the South Seas",
      "language": "en"
    },
    {
      "id": 8118,
      "title": "Redburn. His First Voyage Being the Sailor Boy Confessions and Reminiscences of the Son-Of-A-Gentleman in the Merchant Navy",
      "language": "en"
    },
    {
      "id": 10712,
      "title": "White Jacket; Or, The World on a Man-of-War",
      "language": "en"
    },
    {
      "id": 11231,
      "title": "Bartleby, the Scrivener: A Story of Wall-Street",
      "language": "en"
    },
    {
      "id": 12384,
      "title": "Battle-Pieces and Aspects of the War",
      "language": "en"
    },
    {
      "id": 12841,
      "title": "John Marr and Other Poems",
      "language": "en"
    }
  ],
  "note": "Download links are constructed from Gutenberg's stable cache layout; a rare title may lack a given format."
}
Production Ready
Battle-tested infrastructure with a 99.9% uptime SLA. Rate limits are generous, responses are consistent.
Simple Integration
Standard REST + JSON. Works with any HTTP client. Copy-ready code snippets in 4 languages.
One Key, 125+ APIs
Your DataAndAPIs subscription unlocks every API on the platform — anime, finance, sports, and more.

Use cases for Public Domain Books API

  • Build a free e-reader catalogue with search by title, author and subject.

  • Offer public-domain reading lists by subject, language or author.

  • Link classroom and library tools to free ebook downloads.

  • Pull a random public-domain book for discovery features.

Public Domain Books API endpoints

Every endpoint with its parameters and a real example response.

GETBook Detail

https://api-books.dataandapis.com/v1/books/{id}

Path parameters

ParameterExample
id2701Required

Example request

curl "https://api-books.dataandapis.com/v1/books/2701" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "book": {
    "id": 2701,
    "title": "Moby Dick; Or, The Whale",
    "authors": "Melville, Herman, 1819-1891",
    "first_author": "Herman Melville",
    "language": "en",
    "issued": "2001-07-01",
    "subjects": "Whaling -- Fiction; Sea stories; Psychological fiction; Ship captains -- Fiction; Adventure stories; Mentally ill -- Fiction; Ahab, Captain (Fictitious character) -- Fiction; Whales -- Fiction; Whaling ships -- Fiction",
    "locc": "PS",
    "bookshelves": "Best Books Ever Listings; Category: Adventure; Category: Novels; Category: Classics of Literature; Category: American Literature",
    "links": {
      "gutenberg_url": "https://www.gutenberg.org/ebooks/2701",
      "text": "https://www.gutenberg.org/cache/epub/2701/pg2701.txt",
      "epub": "https://www.gutenberg.org/cache/epub/2701/pg2701-images.epub",
      "cover": "https://www.gutenberg.org/cache/epub/2701/pg2701.cover.medium.jpg"
    }
  },
  "more_by_author": [
    {
      "id": 15,
      "title": "Moby-Dick; or, The Whale",
      "language": "en"
    },
    {
      "id": 1900,
      "title": "Typee: A Romance of the South Seas",
…
Show full response
{
  "ok": true,
  "book": {
    "id": 2701,
    "title": "Moby Dick; Or, The Whale",
    "authors": "Melville, Herman, 1819-1891",
    "first_author": "Herman Melville",
    "language": "en",
    "issued": "2001-07-01",
    "subjects": "Whaling -- Fiction; Sea stories; Psychological fiction; Ship captains -- Fiction; Adventure stories; Mentally ill -- Fiction; Ahab, Captain (Fictitious character) -- Fiction; Whales -- Fiction; Whaling ships -- Fiction",
    "locc": "PS",
    "bookshelves": "Best Books Ever Listings; Category: Adventure; Category: Novels; Category: Classics of Literature; Category: American Literature",
    "links": {
      "gutenberg_url": "https://www.gutenberg.org/ebooks/2701",
      "text": "https://www.gutenberg.org/cache/epub/2701/pg2701.txt",
      "epub": "https://www.gutenberg.org/cache/epub/2701/pg2701-images.epub",
      "cover": "https://www.gutenberg.org/cache/epub/2701/pg2701.cover.medium.jpg"
    }
  },
  "more_by_author": [
    {
      "id": 15,
      "title": "Moby-Dick; or, The Whale",
      "language": "en"
    },
    {
      "id": 1900,
      "title": "Typee: A Romance of the South Seas",
      "language": "en"
    },
    {
      "id": 2489,
      "title": "Moby Dick; Or, The Whale",
      "language": "en"
    },
    {
      "id": 2694,
      "title": "I and My Chimney",
      "language": "en"
    },
    {
      "id": 4045,
      "title": "Omoo: Adventures in the South Seas",
      "language": "en"
    },
    {
      "id": 8118,
      "title": "Redburn. His First Voyage Being the Sailor Boy Confessions and Reminiscences of the Son-Of-A-Gentleman in the Merchant Navy",
      "language": "en"
    },
    {
      "id": 10712,
      "title": "White Jacket; Or, The World on a Man-of-War",
      "language": "en"
    },
    {
      "id": 11231,
      "title": "Bartleby, the Scrivener: A Story of Wall-Street",
      "language": "en"
    },
    {
      "id": 12384,
      "title": "Battle-Pieces and Aspects of the War",
      "language": "en"
    },
    {
      "id": 12841,
      "title": "John Marr and Other Poems",
      "language": "en"
    }
  ],
  "note": "Download links are constructed from Gutenberg's stable cache layout; a rare title may lack a given format."
}

GETData Sources

https://api-books.dataandapis.com/v1/sources

This endpoint takes no parameters.

Example request

curl "https://api-books.dataandapis.com/v1/sources" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "sources": [
    {
      "slug": "gutenberg",
      "name": "Project Gutenberg catalog",
      "publisher": "Project Gutenberg",
      "licence": "public domain works; metadata feed",
      "source_url": "https://www.gutenberg.org/",
      "file_url": "https://www.gutenberg.org/cache/epub/feeds/pg_catalog.csv.gz",
      "cadence": "catalog feed regenerated daily; occasional re-scrape",
      "record_count": 78037,
      "retrieved_at": "2026-09-06"
    }
  ]
}

GETRandom Book

https://api-books.dataandapis.com/v1/books/random

Query parameters

ParameterExample
languageesOptional

Example request

curl "https://api-books.dataandapis.com/v1/books/random?language=es" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "book": {
    "id": 48946,
    "title": "Gloria (novela completa)",
    "authors": "Pérez Galdós, Benito, 1843-1920",
    "first_author": "Benito Pérez Galdós",
    "language": "es",
    "issued": "2015-05-12",
    "subjects": "Spain -- Fiction; Catholic Church -- Spain -- Clergy -- Fiction",
    "locc": "PQ",
    "bookshelves": "Category: Novels",
    "links": {
      "gutenberg_url": "https://www.gutenberg.org/ebooks/48946",
      "text": "https://www.gutenberg.org/cache/epub/48946/pg48946.txt",
      "epub": "https://www.gutenberg.org/cache/epub/48946/pg48946-images.epub",
      "cover": "https://www.gutenberg.org/cache/epub/48946/pg48946.cover.medium.jpg"
    }
  }
}

GETSearch Books

https://api-books.dataandapis.com/v1/books

Query parameters

ParameterExample
authorOptional
languageOptional
page1Optional
qpride and prejudiceOptional

Example request

curl "https://api-books.dataandapis.com/v1/books?page=1&q=pride%20and%20prejudice" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "page": 1,
  "limit": 5,
  "total": 3,
  "total_pages": 1,
  "books": [
    {
      "id": 1342,
      "title": "Pride and Prejudice",
      "authors": "Austen, Jane, 1775-1817",
      "first_author": "Jane Austen",
      "language": "en",
      "issued": "1998-06-01",
      "subjects": "England -- Fiction; Young women -- Fiction; Love stories; Sisters -- Fiction; Domestic fiction; Courtship -- Fiction; Social classes -- Fiction",
      "locc": "PR",
      "bookshelves": "Best Books Ever Listings; Harvard Classics; Category: Romance; Category: Novels; Category: Classics of Literature; Category: British Literature",
      "links": {
        "gutenberg_url": "https://www.gutenberg.org/ebooks/1342",
        "text": "https://www.gutenberg.org/cache/epub/1342/pg1342.txt",
        "epub": "https://www.gutenberg.org/cache/epub/1342/pg1342-images.epub",
        "cover": "https://www.gutenberg.org/cache/epub/1342/pg1342.cover.medium.jpg"
      }
    },
    {
      "id": 42671,
      "title": "Pride and Prejudice",
      "authors": "Austen, Jane, 1775-1817; Chapman, R. W. (Robert William), 1881-1960 [Editor]",
…
Show full response
{
  "ok": true,
  "page": 1,
  "limit": 5,
  "total": 3,
  "total_pages": 1,
  "books": [
    {
      "id": 1342,
      "title": "Pride and Prejudice",
      "authors": "Austen, Jane, 1775-1817",
      "first_author": "Jane Austen",
      "language": "en",
      "issued": "1998-06-01",
      "subjects": "England -- Fiction; Young women -- Fiction; Love stories; Sisters -- Fiction; Domestic fiction; Courtship -- Fiction; Social classes -- Fiction",
      "locc": "PR",
      "bookshelves": "Best Books Ever Listings; Harvard Classics; Category: Romance; Category: Novels; Category: Classics of Literature; Category: British Literature",
      "links": {
        "gutenberg_url": "https://www.gutenberg.org/ebooks/1342",
        "text": "https://www.gutenberg.org/cache/epub/1342/pg1342.txt",
        "epub": "https://www.gutenberg.org/cache/epub/1342/pg1342-images.epub",
        "cover": "https://www.gutenberg.org/cache/epub/1342/pg1342.cover.medium.jpg"
      }
    },
    {
      "id": 42671,
      "title": "Pride and Prejudice",
      "authors": "Austen, Jane, 1775-1817; Chapman, R. W. (Robert William), 1881-1960 [Editor]",
      "first_author": "Jane Austen",
      "language": "en",
      "issued": "2013-05-09",
      "subjects": "England -- Fiction; Young women -- Fiction; Love stories; Sisters -- Fiction; Domestic fiction; Courtship -- Fiction; Social classes -- Fiction",
      "locc": "PR",
      "bookshelves": "Best Books Ever Listings; Category: Romance; Category: Novels; Category: Classics of Literature; Category: British Literature",
      "links": {
        "gutenberg_url": "https://www.gutenberg.org/ebooks/42671",
        "text": "https://www.gutenberg.org/cache/epub/42671/pg42671.txt",
        "epub": "https://www.gutenberg.org/cache/epub/42671/pg42671-images.epub",
        "cover": "https://www.gutenberg.org/cache/epub/42671/pg42671.cover.medium.jpg"
      }
    },
    {
      "id": 37431,
      "title": "Pride and Prejudice, a play founded on Jane Austen's novel",
      "authors": "MacKaye, Steele, Mrs., 1845-1924; Austen, Jane, 1775-1817",
      "first_author": "Steele MacKaye",
      "language": "en",
      "issued": "2011-09-15",
      "subjects": "England -- Drama; Courtship -- Drama; Young women -- Drama; Social classes -- Drama; Domestic drama; Sisters -- Drama; Bennet, Elizabeth (Fictitious character) -- Drama",
      "locc": "PR",
      "bookshelves": "Category: Plays/Films/Dramas; Category: British Literature",
      "links": {
        "gutenberg_url": "https://www.gutenberg.org/ebooks/37431",
        "text": "https://www.gutenberg.org/cache/epub/37431/pg37431.txt",
        "epub": "https://www.gutenberg.org/cache/epub/37431/pg37431-images.epub",
        "cover": "https://www.gutenberg.org/cache/epub/37431/pg37431.cover.medium.jpg"
      }
    }
  ]
}

Where the data comes from

Source
Project Gutenberg catalogue (public domain).
Freshness
Re-synced from the Gutenberg catalogue feed.

One install. Every endpoint.

No proprietary SDKs needed. Any HTTP client works. Pick your language and paste.

3languages
4endpoints
RESTarchitecture
1key for all APIs
  • Fully typed responses — auto-completion in your IDE
  • Tracks the API in lockstep — new endpoints land same day
  • One key works across 125+ APIs on the platform
import axios from 'axios';

const { data } = await axios.get(
  'https://api-books.dataandapis.com/v1/books/{id}',
  { headers: { 'X-Api-Key': process.env.API_KEY } }
);

Public Domain Books API · X-Api-Key

Explore the endpoints

Browse request parameters and inspect live example responses.

Available Endpoints

Request Parameters

API URL

Headers

X-Api-Key

Path Parameters

id
import axios from 'axios';

const url = 'https://api-books.dataandapis.com/v1/books/{id}';
const { data } = await axios.get(url, {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});

One subscription. Every API.

Tokens unlock this API and 125+ others on DataAndAPIs. Switch APIs any time — we promote.

FREE

$0/mo

500 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Community support
Start free
Most Popular

STARTER

$6.99/mo

25,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Email support
Subscribe

PRO

$24.99/mo

100,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority email support
Subscribe

ULTRA

$99.99/mo

1,000,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority support
Subscribe

Need higher volume, dedicated infra, or a custom contract? Talk to sales →

Questions about Public Domain Books API

Ship Public Domain Books API this afternoon.

500 free tokens. No card. Plus 125+ other APIs on the same key.