Libraries

Retrieve library statistics

Retrieve statistics for a specific external library, including number of videos, images, and storage usage.

get/libraries/{id}/statistics

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/libraries/{id}/statistics
  • Auth: one of:
    • HTTP bearer
    • API key in cookie immich_access_token
    • API key in header x-api-key

Path parameters

idstring uuid required

Response

photosinteger required

Number of photos

totalinteger required

Total number of assets

usageinteger required

Storage usage in bytes

videosinteger required

Number of videos

Changes

No recorded changes to this operation across all 50 revisions of this API.