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.