How to get package registry file metadata (checksum)

I would like to get the checksum (and possibly other related metadata) of a file I have uploaded to a project’s generic package registry without actually downloading the file as they are large. This would allow me to check the file for changes before downloading. I don’t see any reference to getting this information using the web API, but thought I’d ask here if this can be done, thanks!

answering my own question, I found that you can get a list of package files along with their checksum using the API command

GET /projects/:id/packages/:package_id/package_files

For more details, see Packages API | GitLab

However, there is apparently a bug where the checksums are null for generic packages: