Get the fewest Viewer count of an game & stream?

 $count = 0;

 $channelsApi2 = 'https://api.twitch.tv/helix/streams?first=100&language=de&game_id=';
 $ch2 = curl_init();
 
 curl_setopt_array($ch2, array(
    CURLOPT_HTTPHEADER => array(
       'Client-ID: ' . $clientId
    ),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_URL => $channelsApi2 . $gameID
 ));

 $response2 = curl_exec($ch2);

 $resp2 = json_decode($response2);
 foreach ($resp2->data as $strim) {
   $count += $strim->viewer_count;
 }

 // get next page
1 Like