Find all shared folders and its sizes

I hope this is the right forum - as I do not have any problems with nextcloud, just a challenge/question:

How can I find all shared folders (and files) from a nextcloud instances? I would like to create a report with information about each shared folder, like owner, people it is shared with, and its size.

My nextcloud version is 15.0.2 on mysql.