curl -sS 'https://matrix.example.com/_synapse/admin/v1/statistics/users/media?limit=50' -H "Authorization: Bearer $ACCESS_TOKEN"

Category: Matrix & Synapse

curl -sS 'https://matrix.example.com/_synapse/admin/v1/statistics/users/media?limit=50' -H "Authorization: Bearer $ACCESS_TOKEN"

Show per-user media usage statistics

Lists every local user with their media count and total bytes, so you can spot storage hogs at a glance. Filter by time range with from_ts and until_ts, or narrow with search_term. Paginate with from and limit. Pair with the per-user media list to inspect the offending files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.