Add a 'Now Live' graphic to a webpage

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

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.