Skip to main content

Get inventory metrics (library/book counts)

GET 

/api/v1/metrics/inventory

Returns counts and sizes for libraries, series, and books in the system. This endpoint provides an inventory overview of your digital library.

The page count is an estimate by default. Pass exact=true for an exact count; on PostgreSQL that scans the whole pages table, so it is limited to admins.

Permission Required

  • libraries:read or admin status
  • admin status for exact=true

Request​

Responses​

Inventory metrics retrieved successfully