2

I want to get all videos in a YouTube channel. Is there any way to do that? Can be with pagination, but I can't see any pagination (can't use ajax). I can get urls with PHP.

Abdullah
  • 968
  • 12
  • 17

1 Answers1

1

See the Developers Guide | Videos uploaded by a specific user.

For example the following code retrieves the list of videos uploaded by $userName. You have to page through the results.

function getAndPrintUserUploads($userName)                    
{     
  $yt = new Zend_Gdata_YouTube();
  $yt->setMajorProtocolVersion(2);
  printVideoFeed($yt->getuserUploads($userName));
}  
dogbane
  • 266,786
  • 75
  • 396
  • 414
  • This will return only 20 results by default. To return different number of results use [this](http://stackoverflow.com/a/2453808). – machineaddict Jan 16 '14 at 23:48