Hello,
I am at present making an extension and at the hour current I have succeeds in check if the stream is live (https://api.twitch.tv/kraken/streams/LIVE?client_id=CLIENTID).
But how check if the stream is hosting an other ?
Thank you in advance for your answers
There is an unsupported API you can use for this; Though keep in mind that it’s unsupported, undocumented, and can go away or change at any time.
https://tmi.twitch.tv/hosts?include_logins=1&host=51684790
Hosting example response
{
"hosts": [
{
"host_id": 51684790,
"target_id": 88560344,
"host_login": "modesttim",
"target_login": "weetbot",
"host_display_name": "ModestTim",
"target_display_name": "WeetBot"
}
]
}
51684790
is ModestTim
which is the channel we want to see if is hosting and 88560344
is WeetBot
aka the target which is who we are hosting.
Not hosting example
{
"hosts": [
{
"host_id": 51684790,
"host_login": "modesttim",
"host_display_name": "ModestTim"
}
]
}
1 Like
Thank you very much I go and look at that
system
Closed
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.