Is there any way to get the Network information via code?

I want to check the ssl certification of my sites and get alert for the expiring cert. But I cannot find out how to pull the information in the network popup above into code. Is there any way that I can get them?

Iā€™m moving this post to Help to increase visibility :slight_smile:

There is a open feature request for this , as if now I am not sure if this is possible