How to get Raid and Host info via API?

Raids are sent to everyone in the chat, whether logged in anonomously or as a real user

See USERNOTICE

Incoming Hosts are very up to speculation, they are only shown to the broadcaster (assuming they are working, often mixed reports), so you need to login to Chat as the broadcaster, but I’m not sure of the event for an incoming host, only an outgoing host. So you can try setting up an IRC reader and logging incoming messages and see what you get