# Add a 'Now Live' graphic to a webpage

**URL:** <https://discuss.dev.twitch.com/t/add-a-now-live-graphic-to-a-webpage/821>\
**Category:** API\
**Created:** [May 21, 2014, 2:37am UTC](https://discuss.dev.twitch.com/t/add-a-now-live-graphic-to-a-webpage/821 "2014-05-21T02:37:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baracoot](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@Baracoot](https://discuss.dev.twitch.com/u/Baracoot)\
**Post date:** [May 21, 2014, 2:37am UTC](https://discuss.dev.twitch.com/t/add-a-now-live-graphic-to-a-webpage/821/1 "2014-05-21T02:37:41Z")

</div>

I did some searches for this and was unable to come up with anything.

Does anyone have a way for me to add a ‘Now Live’ graphic to a webpagewhen a channel is currently live?

Thanks

---

<div class="post-metadata">

**Author:** ![Bufutda](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/bufutda/32/109_2.png) [@Bufutda](https://discuss.dev.twitch.com/u/Bufutda)\
**Post date:** [May 21, 2014, 10:00pm UTC](https://discuss.dev.twitch.com/t/add-a-now-live-graphic-to-a-webpage/821/2 "2014-05-21T22:00:02Z")

</div>

The graphic itself could be anything - a picture, an html box, etc. That’s up to you. As for determining whether a channel is live or not, you need to make a request to the twitch API @ `https://api.twitch.tv/kraken/streams/test_channel`, parse the JSON output, and test whether or not the `stream` property is null. I’d recommend making this call via php, either in the page you’re making, or on a separate page so you can make an AJAX call to it so the graphic can update in real time. [Documentation.](https://github.com/justintv/Twitch-API/blob/master/v2_resources/streams.md#get-streamschannel)
