Pull the data via webrequest, output the result to a stream, read the stream to a string than filter.
I have made a somewhat reliable way of tracking viewers/watchtime.
Unfortunately this only counts for users who are logged into their account.
*Edit: Twitch updates the viewers every 2 mintutes, soif you pull the data every 2 minutes you can track viewer time.
I have coded this library in C# and it will be publicly available on my Github soon
