I am currently looking for a way to get the the name or ID of a channel being hosted on some other channel.
Since I need this API to work in a browser the unofficial API that I found reference to on the forum:
is not working for me because of CORS.
Is there any other way to do this?
All of the host stuff is basically undocumented so whatever you find that works works and if it doesn’t doesn’t. Hence the no cors
It’s not the API but with IRC you got :
tmi.twitch.tv HOSTTARGET #<channel> :<hosted_channel_name> when you connect on the channel.
That’s for outbound hosts, not inbound hosts
So, there is no way we can access this info using something like:
Documented or not.
The hosts endpoint is sorta duplicated on
is a little more useful
But again, it’s not a documented endpoint. There are no documented/supported endpoints to fetch host data over the API at this time. Which means it can break or change at any time
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.