How to get Raid and Host info via API?

Wait so how does Steamlabs do incoming raid alerts?