title: Grabbing the current viewer count for youtube live streaming
body: <p>I am looking to display the current viewer count for youtube live streams, i can do this for youtube video with this code :  </p>
  
  <pre><code>&lt;?php
  $JSON = file_get_contents("https://www.googleapis.com/youtube/v3/videos?
  part=statistics&amp;id=videiID&amp;key=APIKey");
  $json_data = json_decode($JSON, true);
  echo $json_data['items'][0]['statistics']['viewCount'];
  ?&gt;
  </code></pre>
  
  <p>but this not display the current viewers count !</p>