I there a way to connect to the game and display stats on a livestream?

I’m creating an overlay for an esports live stream for a college.
So I want to know if there is any way to connect the in game stats and events to an api of sorts to trigger some animations.

example: when someone swaps heroes. Play an animation that shows the player name and the hero being swapped to.

AFAIK there is no API for add-on or overlay support, which would likely trigger the anti-cheat stuff built into the client.