- type: custom-api
title: Immich stats
cache: 1d
url: ${IMMICH_URL}/api/server/statistics
headers:
x-api-key: ${IMMICH_API_KEY}
Accept: application/json
template: |
<div class="flex justify-between text-center">
<div>
<div class="color-highlight size-h3">{{ .JSON.Int "photos" | formatNumber }}</div>
<div class="size-h6">PHOTOS</div>
</div>
<div>
<div class="color-highlight size-h3">{{ .JSON.Int "videos" | formatNumber }}</div>
<div class="size-h6">VIDEOS</div>
</div>
<div>
<div class="color-highlight size-h3">{{ div (.JSON.Int "usage" | toFloat) 1073741824 | toInt | formatNumber }}GB</div>
<div class="size-h6">USAGE</div>
</div>
</div>IMMICH_URL- The URL for your immich server, including port but without trailing slash, e.g.: 'http://192.168.1.2:2283', or 'https://immich.example.com'IMMICH_API_KEY- the API key of the server which can be found inAccount settings -> API keys. Permissions required:server.statistics
