Kavita Book API

The Book API from Kavita — 4 operation(s) for book.

Operations 4

GET /api/Book/{chapterId}/book-info Retrieves information for the PDF and Epub reader. This will cache the file #
GET /api/Book/{chapterId}/book-resources This is an entry point to fetch resources from within an epub chapter/book #
GET /api/Book/{chapterId}/chapters This will return a list of mappings from ID -> page num. #
GET /api/Book/{chapterId}/book-page This returns a single page within the epub book. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/kavita:kavita-book-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

kavita-book-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kavita Book API
  description: Kavita provides a set of APIs authenticated via an Auth Key passed in the `x-api-key` header. Generate an Auth Key under User Settings → Manage Auth Keys, paste it into the Authorize panel, and all Try It requests will include it. Assume all fields of a payload are required unless marked optional. Built against v0.9.1.15
  license:
    name: GPL-3.0
    url: https://github.com/Kareadita/Kavita/blob/develop/LICENSE
  version: 0.9.1.15
servers:
- url: '{protocol}://{hostpath}'
  variables:
    protocol:
      default: http
      enum:
      - http
      - https
    hostpath:
      default: localhost:5000
security:
- AuthKey: []
tags:
- name: Book
paths:
  /api/Book/{chapterId}/book-info:
    get:
      tags:
      - Book
      summary: Retrieves information for the PDF and Epub reader. This will cache the file
      description: This only applies to Epub or PDF files
      parameters:
      - name: chapterId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/BookInfoDto'
            application/json:
              schema:
                $ref: '#/components/schemas/BookInfoDto'
            text/json:
              schema:
                $ref: '#/components/schemas/BookInfoDto'
      operationId: getApiBookByChapterIdBookInfo
      x-operation-id-source: derived
  /api/Book/{chapterId}/book-resources:
    get:
      tags:
      - Book
      summary: This is an entry point to fetch resources from within an epub chapter/book
      parameters:
      - name: chapterId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: file
        in: query
        description: ''
        schema:
          type: string
      responses:
        '200':
          description: OK
      operationId: getApiBookByChapterIdBookResources
      x-operation-id-source: derived
  /api/Book/{chapterId}/chapters:
    get:
      tags:
      - Book
      summary: This will return a list of mappings from ID -> page num.
      description: This is essentially building the table of contents
      parameters:
      - name: chapterId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BookChapterItem'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BookChapterItem'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BookChapterItem'
      operationId: getApiBookByChapterIdChapters
      x-operation-id-source: derived
  /api/Book/{chapterId}/book-page:
    get:
      tags:
      - Book
      summary: This returns a single page within the epub book.
      parameters:
      - name: chapterId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: page
        in: query
        description: ''
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                type: string
            text/json:
              schema:
                type: string
      operationId: getApiBookByChapterIdBookPage
      x-operation-id-source: derived
components:
  schemas:
    BookChapterItem:
      type: object
      properties:
        title:
          type:
          - string
          - 'null'
        part:
          type:
          - string
          - 'null'
        page:
          type: integer
          format: int32
        children:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/BookChapterItem'
      additionalProperties: false
    MangaFormat:
      enum:
      - 0
      - 1
      - 2
      - 3
      - 4
      type: integer
      description: 'Members:

        - `0` — Image

        - `1` — Archive

        - `2` — Unknown

        - `3` — EPUB (Epub)

        - `4` — PDF (Pdf)'
      format: int32
      x-enum-varnames:
      - Image
      - Archive
      - Unknown
      - Epub
      - Pdf
      x-enum-descriptions:
      - Image
      - Archive
      - Unknown
      - EPUB
      - PDF
    BookInfoDto:
      type: object
      properties:
        bookTitle:
          type:
          - string
          - 'null'
        seriesId:
          type: integer
          format: int32
        volumeId:
          type: integer
          format: int32
        seriesFormat:
          $ref: '#/components/schemas/MangaFormat'
        seriesName:
          type:
          - string
          - 'null'
        chapterNumber:
          type:
          - string
          - 'null'
        volumeNumber:
          type:
          - string
          - 'null'
        libraryId:
          type: integer
          format: int32
        pages:
          type: integer
          format: int32
        isSpecial:
          type: boolean
        chapterTitle:
          type:
          - string
          - 'null'
      additionalProperties: false
  securitySchemes:
    AuthKey:
      type: apiKey
      description: Auth Key authentication. Enter your Auth key from your user settings
      name: x-api-key
      in: header