# How to get real-time notification for channel hosts?

**URL:** <https://staging-discuss.dev.twitch.com/t/how-to-get-real-time-notification-for-channel-hosts/18322>\
**Category:** API\
**Created:** [October 20, 2018, 1:12pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-get-real-time-notification-for-channel-hosts/18322 "2018-10-20T13:12:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tma](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/tma/32/6627_2.png) [@tma](https://staging-discuss.dev.twitch.com/u/tma)\
**Post date:** [October 20, 2018, 1:12pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-get-real-time-notification-for-channel-hosts/18322/1 "2018-10-20T13:12:25Z")

</div>

Hi,

I want my code to be notified when someone hosts a specific channel. Does someone know how to do that?

There is no websocket for that in PubSub [https://dev.twitch.tv/docs/pubsub/#subscribing-to-topics](https://dev.twitch.tv/docs/pubsub/#subscribing-to-topics)

and no webhook on that topic [https://dev.twitch.tv/docs/api/webhooks-reference/](https://dev.twitch.tv/docs/api/webhooks-reference/)

The only way I see is to connect to the chat with the broadcaster account. Isn’t there any other way? How does streamlabs do it?

Thanks

---

<div class="post-metadata">

**Author:** ![tma](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/tma/32/6627_2.png) [@tma](https://staging-discuss.dev.twitch.com/u/tma)\
**Post date:** [October 20, 2018, 1:19pm UTC](https://staging-discuss.dev.twitch.com/t/how-to-get-real-time-notification-for-channel-hosts/18322/2 "2018-10-20T13:19:34Z")

</div>

Ok nevermind I found this similar question here [Hosted notification](https://staging-discuss.dev.twitch.com/t/hosted-notification/16939/8)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [October 21, 2018, 9:19am UTC](https://staging-discuss.dev.twitch.com/t/how-to-get-real-time-notification-for-channel-hosts/18322/3 "2018-10-21T09:19:48Z")

</div>

TLDR:

There are no official end points

There are a couple of unofficially bits

And the main way it’s currently done is to login to chat as the broadcaster, and read the relevant (user)notice over IRC

Edit: which is a log easier now we have a `chat read only` scope to play with…

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [November 20, 2018, 9:19am UTC](https://staging-discuss.dev.twitch.com/t/how-to-get-real-time-notification-for-channel-hosts/18322/4 "2018-11-20T09:19:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
