Get snap metrics¶
Snap stores collect installation statistics for snaps you authored, and you can retrieve the collected data with Snapcraft.
For a complete list of available snap metrics, see Metrics.
Prerequisites¶
As snap metrics are confidential, only a snap’s author can access them.
Before you begin, log in to your Snapcraft account.
Get all data for a metric¶
The most basic query for a snap metric, which returns all historical data for it, is:
snapcraft metrics <snap-name> --name <metric-name> --format=table
Replace <metric-name> with the statistic you want.
The returned data, if available, consists of the daily value for the metric across snap versions:
Version 2025-03-03 2025-03-04 2025-03-05 2025-03-06 2025-03-07 2025-03-08
V0.27.0 21 20 22 16 0 0
V0.28.2 0 0 0 3 19 20
As the terminal output for most queries will be larg