[GH-ISSUE #211] *unauthenticated* access to public playlists? #165

Closed
opened 2026-02-27 22:08:23 +03:00 by kerem · 4 comments
Owner

Originally created by @natumbri on GitHub (Jul 2, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/211

Hi,

Is it possible to use ytmusicapi to get access to public playlists without authentication?

For example, this channel https://music.youtube.com/channel/UCZtGOj7FTHPd2txgnbJS2kQ has 3 public playlists:

  • PLJD13y84Bd029ENixIHEpDqeWcjiogsFi
  • PLJD13y84Bd01Q8b8ONfwNMLD3pVBcqwMq
  • PLJD13y84Bd032qVrq7CHBLEfKZZtp-u1j

Is it possible to retrieve a list of those public playlists (perhaps by using YTMusic.get_user_playlists), without being authenticated?

Originally created by @natumbri on GitHub (Jul 2, 2021). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/211 Hi, Is it possible to use ytmusicapi to get access to public playlists *without* authentication? For example, this channel `https://music.youtube.com/channel/UCZtGOj7FTHPd2txgnbJS2kQ` has 3 public playlists: - `PLJD13y84Bd029ENixIHEpDqeWcjiogsFi` - `PLJD13y84Bd01Q8b8ONfwNMLD3pVBcqwMq` - `PLJD13y84Bd032qVrq7CHBLEfKZZtp-u1j` Is it possible to retrieve a list of those *public* playlists (perhaps by using `YTMusic.get_user_playlists`), without being authenticated?
kerem closed this issue 2026-02-27 22:08:23 +03:00
Author
Owner

@sigma67 commented on GitHub (Jul 2, 2021):

Yes, of course. Anything you can open in your web browser without logging in works in ytmusicapi as well. You have the right approach with YTMusic.get_user_playlists for this channel, then just use get_playlist on each of the IDs.

<!-- gh-comment-id:872851340 --> @sigma67 commented on GitHub (Jul 2, 2021): Yes, of course. Anything you can open in your web browser without logging in works in ytmusicapi as well. You have the right approach with `YTMusic.get_user_playlists` for this channel, then just use `get_playlist` on each of the IDs.
Author
Owner

@natumbri commented on GitHub (Jul 2, 2021):

Thanks - I keep getting an error telling me I need to authenticate. I'll keep trying.

<!-- gh-comment-id:872910157 --> @natumbri commented on GitHub (Jul 2, 2021): Thanks - I keep getting an error telling me I need to authenticate. I'll keep trying.
Author
Owner

@sigma67 commented on GitHub (Jul 2, 2021):

That seems strange, can you comment the relevant parts of your code here and the error message? I just tried with your channel id and it works fine.

Might be related to an outdated ytmusicapi version or bad headers you're providing.

<!-- gh-comment-id:872963738 --> @sigma67 commented on GitHub (Jul 2, 2021): That seems strange, can you comment the relevant parts of your code here and the error message? I just tried with your channel id and it works fine. Might be related to an outdated ytmusicapi version or bad headers you're providing.
Author
Owner

@sigma67 commented on GitHub (Jul 2, 2021):

Also small correction to my prior comment, you first need to call YTMusic.get_user. YTMusic.get_user_playlists only applies afterwards when a user has many playlists and you need all of them

<!-- gh-comment-id:872996556 --> @sigma67 commented on GitHub (Jul 2, 2021): Also small correction to my prior comment, you first need to call `YTMusic.get_user`. `YTMusic.get_user_playlists` only applies afterwards when a user has many playlists and you need all of them
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#165
No description provided.