Calculating feed and package storage sizes

Does anyone know of a way to calculate:
• total size of each feed
• total size of each package with all versions in the feed
We have seen our packages storage size go from 4 - 6 GB to over 45 in a month.

I have a script for onpremise. Not cloud.sorry.

Though the API seems not that hard to enumerate.

Could you share and I can convert it to the web API if possible ?

Nah. The the code I have is a SQL query.

https://jessehouwing.net/azure-devops-server-package-feeds-data-consumption/|https://jessehouwing.net/azure-devops-server-package-feeds-data-consumption/

What I wouldn’t give to be able to do SQL in ADO Services.