Twitch channel status - Need to show as online when in host mode


I am using the Twitch API to get the status of the channel, however it shows as offline, when the channel in hosting another channel. The code is below.

Is there away to get the script to display as Online, whne it being used to hosted another channel or streaming

<script src=""></script>
var twitchUserName = 'TWITCH_CHANNEL'
$(document).ready(function() {    
$.getJSON(""+twitchUserName+"?callback=?",function(streamData) {
console.log('Stream Data:', streamData)
if (streamData && {
} else {

<div id='streamWidget' style="text-align:center;">querying twitch</div>


There’s an undocumented endpoint (subject to change or disappear at any time without warning) that can be used to check what channel a channel is hosting, if any: (esl_csgob, currently hosting esl_csgo), where the host parameter is the hosting channel’s ID from the /users endpoint.

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