Search code examples
videoyoutubeyoutube-apiplaylist

How do I create a playlist from multiple video IDs on youtube?


I have a multitude of video IDs (200+) and I would like to create a youtube playlist using all of the video IDs. I tried solutions from here: https://webapps.stackexchange.com/questions/120451/how-to-create-a-playlist-form-a-list-of-links-not-from-bookmarks

None of those solutions worked, and most of them had a 50 video limit. The python code given only had the first video in it, and none of the other videos. The first method didn't work either, and the excel sheet, when copied, completely broke for me.

Is there any way for me to add these videos to a playlist, which is not manual? EG. Using a playlist creator or a program / api? Thanks.


Solution

  • Source / Credits: Create a YouTube Playlist Without an Account With This URL Trick


    By following this structure, you can create an untitled playlist:

    http://www.youtube.com/watch_videos?video_ids=ID1,ID2,ID3,ID4

    This is an example I created:

    http://www.youtube.com/watch_videos?video_ids=nWyetldx4PU,gvubjVKOMuc,M3emJNkMmnA,QL2ohdMRck0,irTjCnHmU-E

    After pasting the previous URL in the browser, the URL changed to: https://www.youtube.com/watch?v=nWyetldx4PU&list=TLGGyc5oTGfqXdswNjEwMjAyMA