Assets

Get asset statistics

Retrieve various statistics about the assets owned by the authenticated user.

get/assets/statistics

Request

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

Query parameters

isFavoriteboolean

Filter by favorite status

isTrashedboolean

Filter by trash status

visibility'archive' | 'timeline' | 'hidden' | 'locked'

Asset visibility

Response

imagesinteger required

Number of images

totalinteger required

Total number of assets

videosinteger required

Number of videos

Changes

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