<?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 403 forbidden error in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/403-forbidden-error/m-p/5540400#M8818</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Spotify account is premium. When I am using "playlist-modify-private" scope I got this error "http status: 403&lt;A href="https://api.spotify.com/v1/me/tracks?limit=20&amp;amp;offset=0:&amp;quot;" target="_blank" rel="noopener"&gt;"&lt;/A&gt;&amp;nbsp;Also,&amp;nbsp;I run my code and confirm the warning in the browser.&amp;nbsp;Why could this be caused? Here my code:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;spotipy&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;spotipy.oauth2 &lt;SPAN&gt;import &lt;/SPAN&gt;SpotifyOAuth&lt;BR /&gt;&lt;BR /&gt;sp = spotipy.Spotify(&lt;BR /&gt;    &lt;SPAN&gt;auth_manager&lt;/SPAN&gt;=SpotifyOAuth(&lt;BR /&gt;        &lt;SPAN&gt;scope&lt;/SPAN&gt;=&lt;SPAN&gt;"playlist-modify-private"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;redirect_uri&lt;/SPAN&gt;=&lt;SPAN&gt;"http://localhost:8888/callback"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;show_dialog&lt;/SPAN&gt;=&lt;SPAN&gt;True,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;client_id&lt;/SPAN&gt;=client_id&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;client_secret&lt;/SPAN&gt;=&lt;SPAN&gt;client_secret&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;cache_path&lt;/SPAN&gt;=&lt;SPAN&gt;"token.txt"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        ))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;results = sp.current_user_saved_tracks()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 16 Apr 2023 14:50:36 GMT</pubDate>
    <dc:creator>saliht</dc:creator>
    <dc:date>2023-04-16T14:50:36Z</dc:date>
    <item>
      <title>403 forbidden error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/403-forbidden-error/m-p/5540400#M8818</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Spotify account is premium. When I am using "playlist-modify-private" scope I got this error "http status: 403&lt;A href="https://api.spotify.com/v1/me/tracks?limit=20&amp;amp;offset=0:&amp;quot;" target="_blank" rel="noopener"&gt;"&lt;/A&gt;&amp;nbsp;Also,&amp;nbsp;I run my code and confirm the warning in the browser.&amp;nbsp;Why could this be caused? Here my code:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;spotipy&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;spotipy.oauth2 &lt;SPAN&gt;import &lt;/SPAN&gt;SpotifyOAuth&lt;BR /&gt;&lt;BR /&gt;sp = spotipy.Spotify(&lt;BR /&gt;    &lt;SPAN&gt;auth_manager&lt;/SPAN&gt;=SpotifyOAuth(&lt;BR /&gt;        &lt;SPAN&gt;scope&lt;/SPAN&gt;=&lt;SPAN&gt;"playlist-modify-private"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;redirect_uri&lt;/SPAN&gt;=&lt;SPAN&gt;"http://localhost:8888/callback"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;show_dialog&lt;/SPAN&gt;=&lt;SPAN&gt;True,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;client_id&lt;/SPAN&gt;=client_id&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;client_secret&lt;/SPAN&gt;=&lt;SPAN&gt;client_secret&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;cache_path&lt;/SPAN&gt;=&lt;SPAN&gt;"token.txt"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        ))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;results = sp.current_user_saved_tracks()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 16 Apr 2023 14:50:36 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/403-forbidden-error/m-p/5540400#M8818</guid>
      <dc:creator>saliht</dc:creator>
      <dc:date>2023-04-16T14:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: 403 forbidden error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/403-forbidden-error/m-p/5540428#M8821</link>
      <description>&lt;P&gt;You are trying to read a user saved tracks with the &lt;EM&gt;playlist-modify-private&lt;/EM&gt; scope.&lt;/P&gt;&lt;P&gt;You should use the &lt;EM&gt;user-library-read&lt;/EM&gt; scope instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the following page for all scopes: &lt;A href="https://developer.spotify.com/documentation/web-api/concepts/scopes" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/concepts/scopes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 16:07:55 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/403-forbidden-error/m-p/5540428#M8821</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-04-16T16:07:55Z</dc:date>
    </item>
  </channel>
</rss>

