Per-library content counts and a server state snapshot, computed on the server. Not part of the Komga API surface, so the endpoints are absent from the OpenAPI spec. They are the kmrs-native way to feed library overviews and admin dashboards: one call returns everything, instead of querying the actuator metrics one meter at a time.
Library statistics
GET /api/v1/stats/libraries — content counts for every library the caller can see, plus their total:
libraries— one entry per visible library, ordered by name:libraryId,name,series,books,fileSize(bytes),sidecars(administrators only). Libraries without content report zeros.total— the same counts over all visible libraries.
All counts cover only the content the user is allowed to see (library sharing and content restrictions apply), matching what a book search would return. For an administrator this is the full library. Administrators also get a sidecars count in each library entry and in total; sidecars are scan artifacts with no visibility of their own, so the field is omitted for other users.
Server statistics
GET /api/v1/stats/server — a server state snapshot. Administrator only.
tasks— the background task queue and execution metrics, merged by task type:queueSize, and onetypesentry per task type that has queued tasks or recorded executions:type,queued,executions,totalTimeMs,maxTimeMs,failuresprocess—startTime,uptimeSeconds,cpuUsage(percent of total capacity),memoryBytes(resident set size)disk—freeandtotalbytes of the volume holding the configuration directorytotals— global content counts:libraries,series,books,fileSize(bytes),collections,readlists,sidecars
Server state and control
The admin server page is fed by kmrs-native endpoints rather than the Java-parity actuator surface. All are administrator-only except /api/v1/server/info, which any authenticated user can call.
GET /api/v1/server/info— serverversion,gitBranch,gitCommitId, andfeaturesGET /api/v1/server/scheduled-tasks— periodic library scans:libraryId,libraryName,intervalSecondsGET /api/v1/server/logfile— the current log file as plain text
features lists the kmrs-private features the server can serve right now, so a client can tell from one request what to show instead of probing each endpoint group for a 404. serverStats (/api/v1/stats/libraries, /api/v1/stats/server), readingStats, smartLists, and sessions (session management) are always listed. Features that need setup are listed only once set up: komf once the komf integration is connected, trackers while tracker providers are available, and updateCheck while the update check is enabled. Komga answers /api/v1/server/info with 404.
Session listing and revocation live under /api/v2/users/** — see Session management.