20

What is the best way to generate youtube playlist rss feeds for an iOS app?

At the moment I am using the following format:

http://gdata.youtube.com/feeds/api/playlists/YOUR_YOUTUBE_PLAYLIST_NUMBER

But doesn't seem to be as widely compatible as other feed data urls I have used.

Adreno
  • 3,263
  • 4
  • 15
  • 7

1 Answers1

36

Just used the following format:

https://www.youtube.com/feeds/videos.xml?playlist_id=YOUR_YOUTUBE_PLAYLIST_NUMBER

Make sure YOUR_YOUTUBE_PLAYLIST_NUMBER starts with 'PL'.

https://www.youtube.com/view_play_list?p=apIoMHXBxJ_KAfZL7re4ARls6wOC756q

or

https://www.youtube.com/playlist?list=PLapIoMHXBxJ_KAfZL7re4ARls6wOC756q

becomes

https://www.youtube.com/feeds/videos.xml?playlist_id=PLapIoMHXBxJ_KAfZL7re4ARls6wOC756q
Matt B
  • 518
  • 4
  • 11
  • Make sure the playlist is not private though :) – Ali Jul 15 '15 at 11:44
  • 5
    Does YouTube always limit the entry count to 15? Is there a way to retrieve the "next page" of videos? – Jim Buck Nov 10 '16 at 14:11
  • The "PL" requirement now returns a 404. – JeremyKun Dec 11 '17 at 19:11
  • 1
    It works, but you only seem to get 15 items and what's worse, if the playlist is sorted with newer video's at the bottom (which I see very often), you'll never see them in the feed. This totally defeats the concept of a 'feed'. – vicmortelmans Mar 30 '21 at 09:04