check_epub
Check an EPUB file with EPUBCheck
Check an EPUB file (EPUB 2 or 3) against the EPUB specifications with EPUBCheck, the W3C's conformance checker. Input: `epub_base64` is the base64 of the EPUB, at most 4 MB decoded, or pass the file as a download link in `file`. Returns `summary` (`valid`, and the `fatal`, `error` and `warning` counts; `valid` is true when there is no FATAL and no ERROR message), `messages` (the 20 most severe, FATAL first, each with `severity`, `id`, `message`, up to three `locations` as `path:line:column`, and a `suggestion` when EPUBCheck has one), `messages_total` and `epubcheck_version`. For the full report, or files up to 25 MB, use the REST API (`POST /v1/epubcheck/check`). Credits: 2 per call.
fileepub_base64