[GH-ISSUE #350] Retrieve user id for editing user playlists. #276

Closed
opened 2026-02-27 22:08:56 +03:00 by kerem · 1 comment
Owner

Originally created by @TychoZaal on GitHub (Feb 13, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/350

Hi, beginner here.

I am working on a script that converts Spotify playlists to Youtube Music. I have gotten everything working by creating a new playlist and filling that one with all of the songs, but I would rather have it update an existing playlist of the user. The get_user_playlists requires a user id. How can the user id of the currently logged-in user be retrieved? I could not find a method for this, nor find it in the headers.

Any help would be appreciated!

Originally created by @TychoZaal on GitHub (Feb 13, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/350 Hi, beginner here. I am working on a script that converts Spotify playlists to Youtube Music. I have gotten everything working by creating a new playlist and filling that one with all of the songs, but I would rather have it update an existing playlist of the user. The get_user_playlists requires a user id. How can the user id of the currently logged-in user be retrieved? I could not find a method for this, nor find it in the headers. Any help would be appreciated!
kerem closed this issue 2026-02-27 22:08:56 +03:00
Author
Owner

@TychoZaal commented on GitHub (Feb 13, 2023):

Oops, I found it. 'Sapisid' did the trick. Learned something about Google's cookies system from this as well ;)

<!-- gh-comment-id:1427797773 --> @TychoZaal commented on GitHub (Feb 13, 2023): Oops, I found it. 'Sapisid' did the trick. Learned something about Google's cookies system from this as well ;)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#276
No description provided.