Get all viewer of a stream

Hello Guys,
I’m trying to get a list of user, who is watching a streamer.
In the docs I found this:

But if I try a request I get this error:
{“error”:“Bad Request”,“status”:400,“message”:“No client id specified”}

This my python script:
headers = {“Client-ID” : client_id}
user = requests.get(“https://api.twitch.tv/kraken/channels/“+str(channel_id)+”/communities”, json=headers).text
print(user)

Please help me :slight_smile:

You can’t. There is no way to know who is watching a stream. The only exception to this is for Game Developers, who can use VHS endpoints to see who viewers are (but only if both viewer and channel opt-in, and the channel is streaming a game owned by that developer).

The communities endpoint was for communities, it had nothing to do with viewers, and is now deprecated and no longer available.

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