Depending on what you’re trying to do, the store does expose that information (and snapd does use it, but does not expose it) via the snap-yaml
field. It has some caveats but, for example, you can do
http https://api.snapcraft.io/v2/snaps/info/emoj \
Snap-Device-Series:16 architecture==amd64 fields==snap-yaml |
jq -r '."channel-map"[0]."snap-yaml"'
which produces
name: emoj
version: v2.0.0
summary: emoj
description: 'Find relevant emoji from text on the command-line.
'
architectures:
- amd64
confinement: strict
grade: stable
apps:
emoj:
command: command-emoj.wrapper
plugs:
- network
- x11