EPUB Text Extractor: Book Title, Author & Chapter Text avatar

EPUB Text Extractor: Book Title, Author & Chapter Text

Pricing

from $5.00 / 1,000 book extracteds

Go to Apify Store
EPUB Text Extractor: Book Title, Author & Chapter Text

EPUB Text Extractor: Book Title, Author & Chapter Text

Extract the title, authors, language and the text of every chapter, with chapter headings and character counts, from EPUB e-books by URL. Ready for search, summaries, translation and AI agents. No API key. DRM-protected books are refused and not charged. Pay only per book read.

Pricing

from $5.00 / 1,000 book extracteds

Rating

0.0

(0)

Developer

KOTARO project

KOTARO project

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Categories

Features

Limited permissions

Share

Give it links to EPUB e-books. Get back the title, authors, language and publisher, and the text of every chapter with its heading and character count, in reading order. Ready for search, summaries, translation or your AI agent. No API key.

What it does

  • 📖 Chapter by chapter, in reading (spine) order, with each chapter's heading and character count
  • 🧾 Title, authors, language and publisher from the book's own data
  • 🧹 Clean text: tags, scripts and styles removed, the table-of-contents page skipped
  • 📄 Whole book as one text when you turn off includeChapters
  • 🌏 Any language, including English and Japanese; EPUB 2 and EPUB 3
  • 🔐 DRM-protected books are refused and not charged (books that only obfuscate fonts are read normally)
  • 🔒 Safe by design: only public http(s) links, every redirect is checked, private and internal addresses are refused

Input

FieldWhat it is
urlsLinks to EPUB files (http or https)
includeChaptersOn (default): a chapters list. Off: the whole book as one text
{ "urls": ["https://github.com/IDPF/epub3-samples/releases/download/20230704/moby-dick.epub"] }

Output

One row per book:

{
"url": "https://github.com/IDPF/epub3-samples/releases/download/20230704/moby-dick.epub",
"ok": true,
"title": "Moby-Dick",
"authors": ["Herman Melville"],
"language": "en-US",
"publisher": null,
"chapterCount": 141,
"chars": 1210830,
"hasText": true,
"truncated": false,
"headings": ["Brief Contents", "Original Transcriber’s Notes:", "ETYMOLOGY.", "EXTRACTS (Supplied by a Sub-Sub-Librarian).", "Chapter 1. Loomings."],
"chapters": [{ "chapter": 5, "heading": "Chapter 1. Loomings.", "chars": 12192, "text": "Chapter 1. Loomings.\nCall me Ishmael. Some years ago …" }]
}

A link that fails returns ok: false and a short error, for example "This book is protected by DRM and cannot be read."

Pricing

Pay per event: one book-extracted event per book that returned text. Failed links, DRM-protected books, empty books and empty runs are free.

Limits

  • EPUB only. PDF, MOBI and AZW are not supported
  • Up to 100 MB per file and 50 links per run. Very long books return the first 2,000,000 characters and say so (truncated: true)
  • A run stops reading new links after about 4.5 minutes and tells you which links to run again
  • Only use books you are allowed to process, for example public-domain books or your own

Sample input

The sample book is the public-domain Moby-Dick from the official EPUB 3 sample collection (IDPF epub3-samples on GitHub).