Skip to content

Project Gutenberg API: Get book text

Gets the plain text of a public-domain Project Gutenberg book by title, optionally matching its author and language. Chooses the most downloaded matching edition with a plain-text file, removes the Gutenberg header and license, and can cut the text after a chosen number of words.

gutenberg.org (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by Project Gutenberg.

Inputs

Values from the run on Oct 31, 2026, shown under Output.

Title, requiredtitle

Book title, for example Pride and Prejudice.

War and Peace

Author optionalauthor

Author name to distinguish books, for example Jane Austen.

Leo Tolstoy

Language optionallanguage

Book language, for example English or French.

English (default)

Max Words optionalmax_words

Maximum number of words to include in the returned text, for example 200000.

600000

Whole number from 1 to 600000. Default 200000.

Output

From a run on Oct 31, 2026, shortened for this page.
{  "title": "War and Peace",  "author": "Leo Tolstoy",  "language": "English",  "book_text": "WAR AND PEACE\r\n\r\n\r\nBy Leo Tolstoy/Tolstoi\r\n\r\n\r\n    Contents\r\n\r\n    BOOK ONE: 1805\r\n\r\n    CHAPTER I\r\n\r\n    CHAPTER II\r\n\r\n    CHAPTER III\r\n\r\n    CHAPTER IV\r\n\r\n    CHAPTER V\r\n\r\n    CHAPTER VI\r\n\r\n    CHAPTER VII\r\n\r\n    CHAPTER VIII\r\n\r\n    CHAPTER IX\r\n\r\n    CHAPTER X\r\n\r\n    CHAPTER XI\r\n\r\n    CHAPTER XII\r…",  "ebook_number": 2600,  "release_date": "2001-04-01",  "text_was_cut": false,  "book_page_link": "https://www.gutenberg.org/ebooks/2600",  "total_word_count": 563286}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
gutenberg.org/get_book_text
Returns
title, author, language, release date, word count, book text, book page link, ebook number

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method gutenberg.org/get_book_text with the inputs above.

Ask your agent

  • Grab me the full plain text of Moby-Dick by Herman Melville from Project Gutenberg, without the license boilerplate at the top and bottom.
  • I need the first 5,000 words of Les Misérables in the original French, by Victor Hugo.
  • Pull the text of Frankenstein by Mary Shelley so I can run some word-frequency analysis on it. Also give me the ebook number and release date.
  • Can you fetch the opening 2000 words of 'The Adventures of Sherlock Holmes' from gutenberg.org? I want to read a bit before committing.
  • Get me the German text of Die Verwandlung by Franz Kafka, capped at 30000 words, plus a link to its book page.
  • Finds free public-domain Project Gutenberg books by title, author or topic, with authors, languages, subjects, recent downloads, and reading and download links. Public-domain status is based on the United States.

    gutenberg.org/search_free_books
  • Gets a book's catalog details from Open Library by its title, with an optional author or ISBN to identify the right book. Reading availability reflects listed editions; details may be missing when the catalog has none.

    openlibrary.org/get_book
  • Gets one Goodreads book's details, reader ratings and edition information. The book can be a title, an ISBN or a book link; a title uses the best search match.

    goodreads.com/get_book
  • Looks up a Google Books book by title or ISBN. Returns its details, reader ratings and the Google Play ebook offer in a chosen country.

    books.google.com/get_book
  • Finds a poem on Poetry Foundation by title (optionally by poet) and returns its full public text, poet, printed source, publication year and subject tags.

    poetryfoundation.org/get_poem
  • Searches Google Books by words, author, subject or ISBN, with language, free-ebook and newest-first options. Ratings counts are not shown by the public book feed; newest sorts the available matches by publication date.

    books.google.com/search_books
  • Returns the full text of a Wikipedia article in ordered sections, with its last edit time, reference count and visible categories, in any language edition. Footnotes, tables and navigation material are excluded; a topic that is not an exact title uses the best search match.

    wikipedia.org/get_full_article
  • Looks up an audiobook in an Audible store by title (optionally narrowed by author) or by Audible book link, and returns its details, narrators, length, rating, visitor price, series, publisher summary and whether that store's Plus Catalog includes it.

    audible.com/get_audiobook