Live vs online (using javascript)

Yes. The most common way is to make a GET request to https://api.twitch.tv/kraken/channels/test_channel, where test_channel is the channel name you’re wanting the status of. The reply is going to be JSON, and will contain a stream property. If the stream property is null then the stream is not live. If it is an object then the stream is live.

1 Like