Server

Retrieve statistics about the entire Immich instance such as asset counts.

get/server/statistics

Request

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

Response

photosinteger required

Total number of photos

usageinteger required

Total storage usage in bytes

usagePhotosinteger required

Storage usage for photos in bytes

usageVideosinteger required

Storage usage for videos in bytes

videosinteger required

Total number of videos

Changes

    • info

      the // response's property pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ was added for the status