DEV Community

Roshan Jaiswal
Roshan Jaiswal

Posted on

I found a way to create saveable YouTube playlist from list of video IDs,this is not temporary untitled list—no OAuth,no login

I was building an AI music app and needed a way to export playlists to YouTube Music without making users log in.

I asked Claude, Gemini, and other AIs — they all said the same thing: "It's impossible without OAuth login.
You must add a login system."

Then I accidentally found this trick.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━

STEPS (anyone can try this right now)

Step 1 — Get the YouTube video IDs of the songs you want.

A video ID looks like this: dQw4w9WgXcQ
It is the part after ?v= in any YouTube URL:
youtube.com/watch?v=dQw4w9WgXcQ
↑ this part

Step 2 — Put them together in this URL and open it:
youtube.com/watch_videos?video_ids=ID1,ID2,ID3,ID4

Real example:
youtube.com/watch_videos?video_ids=dQw4w9WgXcQ,JGwWNGJdvx8

Step 3 — YouTube opens and plays those songs as a queue.
Now look at the URL bar — it changed to something like:
m.youtube.com/watch?v=dQw4w9WgXcQ&list=TLGGxxxxxxxx


this is the magic part

Step 4 — Copy the entire URL from your browser address bar.

Step 5 — Change only one word in that URL.
Change "youtube.com" to "music.youtube.com"

Before: m.youtube.com/watch?

 v=ID&list=TLGGxxxxxxxx
After: music.youtube.com/watch?v=ID&list=TLGGxxxxxxxx

Step 6 — Open that new URL.
All your songs appear in YouTube Music as a playlist.

Step 7 — Tap the Save button inside YouTube Music.
Give it any name. It saves to your account permanently.

Done. No third party login. No developer setup. Just URLs.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━

WHY IT WORKS

When you open multiple videos using the watch_videos URL,
YouTube creates a temporary playlist on its servers and
gives it an ID that starts with TLGG.

This TLGG playlist ID is not locked to youtube.com —
music.youtube.com accepts it too and shows the full
playlist with a Save button.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━

WHO THIS HELPS

Developers — no more OAuth just to export playlists
to YouTube Music from your app.

Regular users — build a playlist from any YouTube
videos and save it to YouTube Music in seconds.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━

I searched everywhere after finding this — Reddit,
Stack Overflow, GitHub, dev blogs — nobody has
documented this combination before.

Posting here before it potentially gets patched.

Confirmed working: March 2026

Top comments (0)