# Stream notifications via pubsub pls

**URL:** <https://staging-discuss.dev.twitch.com/t/stream-notifications-via-pubsub-pls/10910>\
**Category:** API\
**Created:** [July 5, 2017, 12:21am UTC](https://staging-discuss.dev.twitch.com/t/stream-notifications-via-pubsub-pls/10910 "2017-07-05T00:21:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakslice](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/rakslice/32/1662_2.png) [@rakslice](https://staging-discuss.dev.twitch.com/u/rakslice)\
**Post date:** [July 5, 2017, 12:21am UTC](https://staging-discuss.dev.twitch.com/t/stream-notifications-via-pubsub-pls/10910/1 "2017-07-05T00:21:44Z")

</div>

Hiya. That’s a nice pubsub API you have there… [https://dev.twitch.tv/docs/v5/guides/PubSub/](https://dev.twitch.tv/docs/v5/guides/PubSub/) How about providing stream online notifications through it or something similar? It would reduce the load on your API from polling by apps that need to know when streams go live, as well as potentially providing those apps with the information faster!

---

<div class="post-metadata">

**Author:** ![ScaniaTV](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/scaniatv/32/2185_2.png) [@ScaniaTV](https://staging-discuss.dev.twitch.com/u/ScaniaTV)\
**Post date:** [July 10, 2017, 9:16pm UTC](https://staging-discuss.dev.twitch.com/t/stream-notifications-via-pubsub-pls/10910/2 "2017-07-10T21:16:31Z")

</div>

You can listen to the `video-playback.CHANNEL_NAME` topic to receive this information. Just keep in mind that it is not supported, as far as I can tell anyway.

```
{
	"type": "LISTEN",
	"data": { 
	 	"topics": ["video-playback.CHANNEL_NAME"], 
	 	"auth_token": ".."
	}
}

```

You’ll receive a message similar to this once the channel goes online. When the channel is offline no information is sent.

```
{
  	"type": "MESSAGE",
  	"data": {
    	"topic": "video-playback.lirik",
    	"message": "{\"type\":\"viewcount\",\"server_time\":1499721302.779628,\"viewers\":31846}"
  	}
}

```

Hope this helps!

---

<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:** [August 9, 2017, 9:16pm UTC](https://staging-discuss.dev.twitch.com/t/stream-notifications-via-pubsub-pls/10910/3 "2017-08-09T21:16:43Z")

</div>

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