<?php 
$ytno = "videoid";

$feedURL = "http://gdata.youtube.com/feeds/api/videos/$ytno/related?v=2&category=Music&max-results=5"; 


    // read feed into SimpleXML object 
    $sxml = simplexml_load_file($feedURL); 

// iterate over entries in feed 

$teller = 1; 
    foreach ($sxml->entry as $entry) { 
      // get nodes in media: namespace for media information 
      $media = $entry->children('http://search.yahoo.com/mrss/'); 


      // get video content URL 
      $attrs = $media->group->content[0]->attributes(); 
      $content = $attrs['url']; 

      // get video player URL 
      /*$attrs = $media->group->player->attributes(); 
      $watch = $attrs['url']; */ 

      // get video thumbnail 
      $attrs = $media->group->thumbnail[0]->attributes(); 
      $thumbnail = $attrs['url']; 
      $title = $media->group->title; 

      $title = str_replace('"', '', $title); 
		$title = str_replace('/', ' - ', $title);
	// get <yt:duration> node for video length 
      $yt = $media->children('http://gdata.youtube.com/schemas/2007'); 
      $attrs = $yt->duration->attributes(); 
      $length = $attrs['seconds']; 
      $bid = $yt->videoid[0]; 


		echo "<a class='benzerMuzikListimg' href='$bid-dinle' pop='$title'><img src='$thumbnail' alt='$title'></a>";

} 

?>

Yukarıdaki kod ile ihtiyacınız olan tüm bilgileri çekebilirsiniz