Monday, March 19, 2012

[YouTube-API] Re: Youtube API Not Retrieving All the Songs in a Playlist

Hello Waley,

The default number of entries returned per page in a YouTube API feed
is 25. You need to request subsequent pages of results.

https://developers.google.com/youtube/2.0/reference#Paging_through_Results

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Mar 15, 2:05 pm, Waley Chen <wale...@gmail.com> wrote:
> Here's the playlist, it has 147 songs in it:https://www.youtube.com/view_play_list?p=F22C28C5942AFAD8
>
> Here's the XML for it:https://gdata.youtube.com/feeds/api/playlists/F22C28C5942AFAD8?v=2
>
> If you do a CTRL-F in Chrome in the XML for "<title>", you'll see
> there'll be 26 instances when there should be at least 147.
>
> Anyone know what's up?
>
> Thanks.

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment