Full-text search across an EPUB's chapters
GET /assets/{id}/epub/search
Scans every spine chapter for the query (case-insensitive), returning up to 5 hits per chapter and 200 hits total. Each hit carries the chapter idx (jump target), a label (display), a snippet (~60 chars on each side of the match), and the character offset inside the plain-text chapter body (future use when EpubView grows in-page anchor jump).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Query Parameters
Section titled “Query Parameters ”Query string. Case-insensitive substring match against each chapter’s stripped-text body. Queries shorter than two characters return an empty list (avoids degenerate single-character spam).
Responses
Section titled “ Responses ”Search hits (may be empty)
One match returned by the EPUB full-text search endpoint. Multiple hits per chapter are possible (capped at 5).
object
~120 char excerpt centred on the match.
Char offset of the match in the plain-text chapter body.
Authentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Resource not found
object
Human-readable error summary
Example
the request could not be completedUnexpected server error
object
Human-readable error summary
Example
the request could not be completed