Split EPUB into chapters, or pull a chapter range out as one EPUB

With chapterStart and/or chapterEnd the result is ONE EPUB (contentType application/epub+zip) of exactly those chapters, in order, with the book’s metadata, a table of contents limited to them and the fonts and images they use. Without a range the result is a ZIP (application/zip) holding one EPUB per chapter.

post/split

Request

  • Base URL: https://epublys.com/v1
  • URL: https://epublys.com/v1/split
  • Auth: HTTP bearer

Request body

filestring required

Base64-encoded EPUB

namestring

Original filename — the output is named after its stem (e.g. "Book.epub" gives "Book (compressed).epub"); without it the output keeps a fixed name

chapterStartinteger

First chapter to include (1-indexed). Giving either bound returns one EPUB of the range instead of a ZIP

chapterEndinteger

Last chapter to include (inclusive)

keepMetadataboolean

Preserve the original author, publisher and description in the output

Response

Success — JSON envelope with the base64-encoded output file

successboolean
filestring

Base64-encoded output file

filenamestring
contentTypestring
messagestring
pro_tipstring

Present on free-tier responses only

Changes

No recorded changes to this operation across all 1 revision of this API.