title: [PHP][Youtube api v3] retrieving the informations for a single video
body: <p>I'm getting some trouble with the youtube api. I would like to retrieve the informations from a single video.</p>
  
  <p>What I already got :</p>
  
  <p>i can get videos from a specified playlist with all their informations (like the title, the description etc)</p>
  
  <p>i get the id playlist from the Url : </p>
  
  <pre><code>$playlist = $_GET['pl'];
  </code></pre>
  
  <p>then i get the videos informations from the playlist : </p>
  
  <pre><code>$response = $youtube-&gt;playlistItems-&gt;listPlaylistItems('id,snippet,contentDetails', ['playlistId' =&gt; $playlist, 'maxResults' =&gt; '10']);
  </code></pre>
  
  <p>then i can easily get and show informations from those videos thanks to a foreach :</p>
  
  <pre><code>foreach($response['items'] as $video){
  echo $video['contentDetails']['videoId']; 
  echo $video['snippet']['title'];
  echo substr($video['snippet']['description'], 0, 430);}
  </code></pre>
  
  <p>What I want :</p>
  
  <p>now i just put the videoId into a link : </p>
  
  <p><code>href="index.php?requ=video&amp;v=&lt;?= $video['contentDetails']['videoId']; ?&gt;&amp;pl=&lt;?= $playlist ?&gt;"</code></p>
  
  <p>this way i can get the videoId into the other page in which i embed the video :</p>
  
  <pre><code>$vid = $_GET['v'];
  &lt;iframe height ="432" width="760"  src="https://www.youtube.com/embed/&lt;?= $vid; ?&gt;"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>but here comes the problem, i can't get any informations from this video, when i try like that :</p>
  
  <pre><code>$viewing = $youtube-&gt;videos-&gt;listVideos("snippet", ['id' =&gt; $vid]);
  echo $viewing['snippet']['title'];
  </code></pre>
  
  <p>it returns me NULL</p>
  
  <p>If someone can help me a bit, it would be awesome</p>