As there is no public API available, I had to come up with a script to collect this information from a browser session.
Yes, I know @Lijia
Decided to put the workaround in case somebody needs it too.
Ok. Yup, we do have other clients asked this question before. This workaround could be helpful.