With v3 of the API it was easy to determine if a channel was live with the following code (VB.NET):
Dim stringGetInfo As String = New WebClient().DownloadString(“https://api.twitch.tv/kraken/streams?client_id=MYCLIENTID&channel=” & stringTwitchID)
'Search string to see if it contains '_id' which means there is a live stream. Dim index As Integer = stringGetInfo.IndexOf("_id") 'If index is greater than 0 then pilot is streaming. If index < 1 Then stringTwitchID = "" End If End Using
With the new API, this no longer works. I have looked through all the documentation for the new API and I am unable to get anything to work.
How do I determine if a certain Twitch Channel is live?
Thanks in advance,