Is there an API (or an alternative), to call the same extension overlay information that I would see in my browser?

If it’s your extension you can do what you want to record the events.