title: How to fetch total game viewers for the new Twitch API using react?
body: <p>Due to the new twitch API, there is no specified api response that returns the number of viewers per game. The only viewer_count option the documentation gives is the amount of viewers per stream. </p>
  
  <p>Top Games: <a href="https://dev.twitch.tv/docs/api/reference/#get-top-games" rel="nofollow noreferrer">https://dev.twitch.tv/docs/api/reference/#get-top-games</a></p>
  
  <p>Get Streams: <a href="https://dev.twitch.tv/docs/api/reference/#get-streams" rel="nofollow noreferrer">https://dev.twitch.tv/docs/api/reference/#get-streams</a></p>
  
  <p>I am guessing that I need to group all active streams by game, then find the sum of viewers from each group.</p>
  
  <p>Any ideas on how this would look in code? I am using reactjs.</p>