<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Web API does not create public playlist in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6151803#M14255</link>
    <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;But there is still a issue. I can see the playlist under Pubic Playlists in My Profile page but when I copy the url to an incognito tab spotify cannot find the page. I tried searching the playlist by name but it didn't work either.&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jun 2024 13:49:41 GMT</pubDate>
    <dc:creator>user-removed</dc:creator>
    <dc:date>2024-06-23T13:49:41Z</dc:date>
    <item>
      <title>Web API does not create public playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6151468#M14249</link>
      <description>&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Although public parameter is set to true the created is playlist is not public.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 09:02:28 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6151468#M14249</guid>
      <dc:creator>user-removed</dc:creator>
      <dc:date>2024-06-23T09:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Web API does not create public playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6151566#M14250</link>
      <description>&lt;P&gt;It works on my end. Can you please show me some of your code to see if there is a bug in it?&lt;/P&gt;&lt;P&gt;You can insert a cod block by first clicking on …, and then at &amp;lt;/&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 10:35:57 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6151566#M14250</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-06-23T10:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Web API does not create public playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6151616#M14251</link>
      <description>&lt;P&gt;I use spotipy library in python.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import spotipy
from spotipy.oauth2 import SpotifyOAuth
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id=client_id, client_secret=client_secret, redirect_uri=ruri, scope="playlist-modify-public",username=os.getenv('SPOTIFY_USER_ID'),cache_path=".cache"))
def create_playlist(name,tracks):
    if tracks == []:
        return None
    playlist = sp.user_playlist_create(user=os.getenv('SPOTIFY_USER_ID'), name=name, public=True)
    sp.user_playlist_add_tracks(user=os.getenv('SPOTIFY_USER_ID'), playlist_id=playlist['id'], tracks=tracks)
    return playlist['id']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When this didn't work, I went to &lt;A href="https://developer.spotify.com/documentation/web-api/reference/create-playlist" target="_self"&gt;this&lt;/A&gt; page in Web API docs and called the API from there. And the created playlist was not public either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 11:37:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6151616#M14251</guid>
      <dc:creator>user-removed</dc:creator>
      <dc:date>2024-06-23T11:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Web API does not create public playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6151760#M14253</link>
      <description>&lt;P&gt;Thank you for sharing.&lt;/P&gt;&lt;P&gt;I tested your code, and the created playlists are getting added to my profile ( = public).&lt;/P&gt;&lt;P&gt;One remark: sp.&lt;EM&gt;user_playlist_add_tracks()&lt;/EM&gt; is deprecated, and you should use &lt;EM&gt;sp.playlist_add_items(playlist_id, items, position=None)&lt;/EM&gt; instead. (&lt;A href="https://spotipy.readthedocs.io/en/latest/#spotipy.client.Spotify.playlist_add_items" target="_blank" rel="noopener"&gt;API reference&lt;/A&gt;)&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 23 Jun 2024 13:12:42 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6151760#M14253</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-06-23T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Web API does not create public playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6151803#M14255</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;But there is still a issue. I can see the playlist under Pubic Playlists in My Profile page but when I copy the url to an incognito tab spotify cannot find the page. I tried searching the playlist by name but it didn't work either.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 13:49:41 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6151803#M14255</guid>
      <dc:creator>user-removed</dc:creator>
      <dc:date>2024-06-23T13:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Web API does not create public playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6153384#M14261</link>
      <description>&lt;P&gt;It's weird you can not access your created playlist in private mode with a link. (Mine just work fine.)&lt;/P&gt;&lt;P&gt;But, it takes time before google indexes a playlist, and many playlists don't get indexed at all.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 14:35:30 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-does-not-create-public-playlist/m-p/6153384#M14261</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-06-24T14:35:30Z</dc:date>
    </item>
  </channel>
</rss>

