Jump to content

Youtube API retreve users older videos


wee493

Recommended Posts

Currently I'm using the youtube api to display a users videos. By default it only displays 25 of the most recent videos. I'm wanting to diaply all of a users videos, so I'm thinking I will have to fun multiple requests. I think I need to use the "StatIndex" to start at 26, but I'm not sure.

 

I would post the code, but this is pretty much a you know it or you don't type of thing.

 

Any help would be nice.

Link to comment
Share on other sites

 

 

$q = 'community channel';
$q = str_replace(' ','%20',$q);
$src = @file_get_contents("http://gdata.youtube.com/feeds/videos?vq={$q}&start-index=1&max-results=5")

Thanks, but I was hoping to use something a little more like

  $query->setStartIndex('26');

as it states in the api, but this does not work.

 

  $videoFeed = $yt->getVideoFeed($location);
  $query = $yt->newVideoQuery();
  $query->setStartIndex('26');
  $videoFeed = $yt->getVideoFeed($query->getQueryUrl(2));

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.