Get Every Video ID From a Playlist
The command yt-dlp --flat-playlist --print id followed by the playlist's address lists every video ID in a YouTube playlist, one per line, without downloading any video; on Nov 22, 2026 it listed all 668 IDs of a public playlist in about 5 seconds, where the playlist's RSS feed gave 15 and its page 100.
To list every video ID in a YouTube playlist, run yt-dlp --flat-playlist --print id "https://www.youtube.com/playlist?list=PLAYLIST_ID". It prints one 11-character ID per line, in the playlist's order, and downloads no video. On Nov 22, 2026 Vi.ki ran it on Freedom!'s public playlist The George Show, PLxLYo5_7D3SdgAFYzYETPDDVBt6DRqVE0: it printed 668 IDs in 5.2 seconds, the same 668 the playlist's own page counted, while YouTube's RSS feed for the playlist gave the first 15 and the playlist page's code the first 100.
Next: turn the IDs back into a playlist link anyone can open, the uploads playlist to run this on for a whole channel or a title and channel for any one ID.
The command, part by part
| Part | What it does |
|---|---|
yt-dlp |
The free, open source command-line program that reads YouTube pages (version 2026.10.26 in our test) |
--flat-playlist |
Lists the playlist's entries instead of opening each video, so nothing is downloaded and it stays fast |
--print id |
Prints only each entry's ID; --print "%(id)s %(title)s" prints the title beside it |
--playlist-items 1:50 |
Optional: only entries 1 to 50 (the most one watch_videos link keeps) |
"https://www.youtube.com/playlist?list=..." |
The playlist; any link with list= in it works, in quotes so the & and ? reach the program |
To keep the list, add > ids.txt at the end and the IDs go into a file instead of the screen.
Three ways, measured
All three were run on the same 668-video playlist on Nov 22, 2026, signed out.
| Way | IDs it gave | Time | Needs |
|---|---|---|---|
yt-dlp --flat-playlist --print id |
668 of 668 | 5.2 seconds | yt-dlp installed |
The same with --playlist-items 1:50 |
50 | 1.9 seconds | yt-dlp installed |
https://www.youtube.com/feeds/videos.xml?playlist_id=PLAYLIST_ID |
15, the playlist's first 15 in its order | One request | A browser or feed reader (Channel RSS Feed) |
| The playlist page itself | 100 in the page's code; more load only as you scroll | One request | Reading the page source |
| Copying each video's address by hand | As many as you copy | One copy and paste per video | Nothing |
For a short list, the hand method is fine and needs nothing installed.
Hector Mendoza shows it in his Dec 27, 2023 video: right-click a video, copy its address, paste it and delete everything up to and including watch?v=, which leaves the ID. For a playlist of hundreds, the command above is the only way of the five that gets them all.
From IDs to a playlist link
The address has worked for years without signing in: a Mar 8, 2015 TipsForBeginners video, signed out, types youtube.com/watch_videos?video_ids= and then video IDs with a comma between each, presses Enter, and YouTube plays them as a playlist. The usual reason to want the IDs is to rebuild, trim or merge lists, and the watch_videos address takes up to 50 IDs separated by commas. One line makes that link from a playlist's first 50 entries.
On Mac or Linux:
echo "https://www.youtube.com/watch_videos?video_ids=$(yt-dlp --flat-playlist --print id --playlist-items 1:50 "https://www.youtube.com/playlist?list=PLAYLIST_ID" | paste -sd, -)"
In Windows PowerShell:
"https://www.youtube.com/watch_videos?video_ids=" + ((yt-dlp --flat-playlist --print id --playlist-items 1:50 "https://www.youtube.com/playlist?list=PLAYLIST_ID") -join ",")
Both were run on Nov 22, 2026 on The George Show playlist and gave the same 646-character link, and YouTube answered that link with a redirect to the first video and a new TLGG playlist beside it. For entries 51 to 100, change 1:50 to 51:100.
A whole channel
A channel's uploads are a playlist too: change the UC at the start of the channel ID to UU and use https://www.youtube.com/playlist?list=UU... (Play All Videos From a Channel, which also gives the UULF and UUSH lists of long videos and Shorts alone). On Jawed Karim's channel, UU4QobU6STFB0P71PMvOGN5A, the command printed one ID, jNQXAC9IVRw, his only upload ("Me at the zoo").
What it cannot see
Private videos, and videos only members of a channel can watch, need a signed-in account with access; signed out, the command lists what anyone can see. YouTube Help documents no way to export a playlist's IDs: its playlists page covers making, editing and sharing playlists in the app and on the site (Create & manage playlists, read Nov 22, 2026). Listing IDs downloads nothing; downloading videos is a different matter under YouTube's Terms (Downloads).
What we think
We think --flat-playlist --print id will still list a public playlist in full on Nov 22, 2027. Reason: yt-dlp ships fixes within days when YouTube changes its pages, and a playlist's entries are what its own page has to send every viewer.
Confidence: Likely. Check by: Nov 22, 2027.
To settle it: run the command on PLxLYo5_7D3SdgAFYzYETPDDVBt6DRqVE0 and compare the number of lines with the count on the playlist's page.
Sources
- Create & manage playlists, YouTube Help, read Nov 22, 2026
- How To Make a Playlist on YouTube without logging in on YouTube, Hector Mendoza, Dec 27, 2023 (video)
- The George Show, Freedom!, its page's video count read Nov 22, 2026
- Vi.ki's runs of yt-dlp 2026.10.26 on Windows, Nov 22, 2026: the full playlist, entries 1 to 50, the Bash and PowerShell link lines, and Jawed Karim's uploads list; with curl the same day, the playlist's RSS feed, its page and the watch_videos link the lines made
- Make A Playlist on Youtube Without Login, TipsForBeginners, Mar 8, 2015 (video)
Moments
How To Make a Playlist on YouTube without logging in on YouTube
Hector Mendoza
Make A Playlist on Youtube Without Login
TipsForBeginners
See also
-
Make a Playlist From Video IDsThe address youtube.com/watch_videos?video_ids= followed by video IDs separated by commas opens those videos as a temporary unlisted playlist, with no sign-in. In Vi.ki's test on Nov 11, 2026 it kept the first 50 IDs, and one wrong ID dropped the whole list.
-
Play All Videos From a ChannelTo play every video a YouTube channel has uploaded, take its channel ID, change the leading UC to UU and open youtube.com/playlist?list= followed by that code. UULF lists only the long videos, UUSH only the Shorts and UULV only the live streams.
-
Video Title Without an API KeyThe address youtube.com/oembed?url= followed by a video's link and &format=json returns the video's title, channel name, channel address, thumbnail and embed code as JSON, with no API key and no sign-in. It does not return views, likes, the date or the length.
-
Channel RSS FeedEvery YouTube channel has an RSS feed at youtube.com/feeds/videos.xml?channel_id= plus the channel ID. It lists the 15 newest uploads, Shorts included; in Vi.ki's test on Nov 13, 2026, swapping in playlist_id=UULF plus the rest of the ID gave a feed of long videos only.
-
DownloadsYouTube Premium members download videos with the Download button under the video, on phones and in Chrome, Edge, Firefox or Opera on a computer, and watch them offline for up to 29 days before reconnecting. In some countries free downloads last 48 hours.
-
Block a Video by CountryAn ordinary YouTube channel cannot block its own video in chosen countries. The setting exists only in Studio Content Manager, the tool of networks and rights holders, and it is built for licensing, not for hiding from an audience.