[GH-ISSUE #879] Making playlists private does not work #540

Closed
opened 2026-02-27 23:23:13 +03:00 by kerem · 3 comments
Owner

Originally created by @vulewuxe86 on GitHub (Nov 4, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/879

Hello,

I'm trying to make all my playlists private, but it doesn't work.

I'm using the following scopes:

  • user-library-read
  • user-library-modify
  • playlist-read-private
  • playlist-modify-private
  • playlist-modify-public

and I'm using this code to call the api:

def make_playlists_private():
    playlists = get_user_playlists()
    for playlist in playlists:
        sp.playlist_change_details(playlist['id'], public=False)
        print(playlist['id'], playlist['name'], sep=",")

get_user_playlists() returns valid playlists. I confirmed that in another use case.
When I'm using sp.user_playlist_create(sp.current_user()['id'], artist_name, public=False, collaborative=False) a playlist gets created but it's public not private. So there seems to be an issue too.

If you need further information please tell me.

I hope you can help me.

Kind regards

Originally created by @vulewuxe86 on GitHub (Nov 4, 2022). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/879 Hello, I'm trying to make all my playlists private, but it doesn't work. I'm using the following scopes: * user-library-read * user-library-modify * playlist-read-private * playlist-modify-private * playlist-modify-public and I'm using this code to call the api: ``` def make_playlists_private(): playlists = get_user_playlists() for playlist in playlists: sp.playlist_change_details(playlist['id'], public=False) print(playlist['id'], playlist['name'], sep=",") ``` `get_user_playlists()` returns valid playlists. I confirmed that in another use case. When I'm using `sp.user_playlist_create(sp.current_user()['id'], artist_name, public=False, collaborative=False)` a playlist gets created but it's public not private. So there seems to be an issue too. If you need further information please tell me. I hope you can help me. Kind regards
kerem 2026-02-27 23:23:13 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@dieser-niko commented on GitHub (Nov 4, 2022):

It may be confusing, but setting the playlist to private cannot be done with public=False. It is still possible to access the playlist via a direct link. Setting this option to True or False just means that your playlist will be displayed in your profile or not.

Setting your playlist to private might not even work. It isn't mentioned in the References or when using open.spotify.com.

I don't think it is possible to set a playlist to private. At least not with the api.spotify.com endpoint.

<!-- gh-comment-id:1303627162 --> @dieser-niko commented on GitHub (Nov 4, 2022): It may be confusing, but setting the playlist to private cannot be done with public=False. It is still possible to access the playlist via a direct link. Setting this option to True or False just means that your playlist will be displayed in your profile or not. Setting your playlist to private might not even work. It isn't mentioned in the [References](https://developer.spotify.com/documentation/web-api/reference/#/operations/change-playlist-details) or when using [open.spotify.com](https://open.spotify.com). I don't think it is possible to set a playlist to private. At least not with the [api.spotify.com](https://api.spotify.com) endpoint.
Author
Owner

@Peter-Schorn commented on GitHub (Nov 4, 2022):

I had the same issue raised in my library. It's a bug with the Spotify Web API itself. Talk about it here.

<!-- gh-comment-id:1303649704 --> @Peter-Schorn commented on GitHub (Nov 4, 2022): I had the same issue raised in my library. It's a bug with the Spotify Web API itself. Talk about it [here](https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer).
Author
Owner

@vulewuxe86 commented on GitHub (Nov 5, 2022):

Thanks for your replies.

<!-- gh-comment-id:1304438364 --> @vulewuxe86 commented on GitHub (Nov 5, 2022): Thanks for your replies.
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/spotipy#540
No description provided.