How to get Twitch watchtime (like streamelements)

I am currently on developing a little twitch.tv chatbot. I know, there are like a thousand of them but I would like to create my own, just to have a project – so this is not the point.

I was wondering, how the watchtime of a user could be calculated. Just as streamelements.com does it with their !watchtime chat command. I did not find any API endpoint to get the users, which are currently viewing the stream. The only thing found is the current viewcount in https://dev.twitch.tv/docs/api/reference#get-streams but there is no way to link to a specific user.

Anyone has any idea?

Leave a Comment