<?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 Status Code 403 from Spotify API When Requesting User's Top Tracks and Top Artists in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Status-Code-403-from-Spotify-API-When-Requesting-User-s-Top/m-p/5477282#M7420</link>
    <description>&lt;P&gt;*Update I can query the artists node by providing their ID I only get 403 when querying the /me endpoint*&lt;BR /&gt;&lt;BR /&gt;Working on a react application that allows a user to log in to Spotify and then displays their top 10 tracks and top 10 artists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can login with no problem, but when I request a users top tracks and artists I get this response from the API:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;Failed to load resource: the server responded with a status of 403 ()&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The account has been added to my Spotify dashboard, which I thought was the issue at first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried writing the request with axios.get() and fetch(), both had the same status code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something wrong with my authorization flow? Or is the request improperly formatted?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My App.js and LogButton.js files which contain the authorization and request flows are attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TYIA! Any help is greatly appreciated&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 15:10:22 GMT</pubDate>
    <dc:creator>yeliabhcaz</dc:creator>
    <dc:date>2022-12-22T15:10:22Z</dc:date>
    <item>
      <title>Status Code 403 from Spotify API When Requesting User's Top Tracks and Top Artists</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Status-Code-403-from-Spotify-API-When-Requesting-User-s-Top/m-p/5477282#M7420</link>
      <description>&lt;P&gt;*Update I can query the artists node by providing their ID I only get 403 when querying the /me endpoint*&lt;BR /&gt;&lt;BR /&gt;Working on a react application that allows a user to log in to Spotify and then displays their top 10 tracks and top 10 artists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can login with no problem, but when I request a users top tracks and artists I get this response from the API:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;Failed to load resource: the server responded with a status of 403 ()&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The account has been added to my Spotify dashboard, which I thought was the issue at first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried writing the request with axios.get() and fetch(), both had the same status code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something wrong with my authorization flow? Or is the request improperly formatted?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My App.js and LogButton.js files which contain the authorization and request flows are attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TYIA! Any help is greatly appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 15:10:22 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Status-Code-403-from-Spotify-API-When-Requesting-User-s-Top/m-p/5477282#M7420</guid>
      <dc:creator>yeliabhcaz</dc:creator>
      <dc:date>2022-12-22T15:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Status Code 403 from Spotify API When Requesting User's Top Tracks and Top Artists</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Status-Code-403-from-Spotify-API-When-Requesting-User-s-Top/m-p/5477548#M7424</link>
      <description>&lt;P&gt;I don't know what's wrong with your code.&lt;/P&gt;&lt;P&gt;But, because your client secret is in the code you've shared, I recommend you to reset it. (And change the old one in your code for the new one.)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 08:03:44 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Status-Code-403-from-Spotify-API-When-Requesting-User-s-Top/m-p/5477548#M7424</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2022-12-22T08:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Status Code 403 from Spotify API When Requesting User's Top Tracks and Top Artists</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Status-Code-403-from-Spotify-API-When-Requesting-User-s-Top/m-p/5477759#M7425</link>
      <description>&lt;P&gt;Thank you! Just realized I made a copy before I removed those whoops.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 14:46:17 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Status-Code-403-from-Spotify-API-When-Requesting-User-s-Top/m-p/5477759#M7425</guid>
      <dc:creator>yeliabhcaz</dc:creator>
      <dc:date>2022-12-22T14:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Status Code 403 from Spotify API When Requesting User's Top Tracks and Top Artists</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Status-Code-403-from-Spotify-API-When-Requesting-User-s-Top/m-p/5477788#M7426</link>
      <description>&lt;P&gt;I was missing the scope param on my authorize request. Scope defines what actions I'd like to be able to perform on behalf of the user.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here's an example:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;SCOPE&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;user-read-private user-read-email user-read-playback-state user-modify-playback-state user-read-recently-played user-top-read&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;Happy coding!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Dec 2022 15:46:43 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Status-Code-403-from-Spotify-API-When-Requesting-User-s-Top/m-p/5477788#M7426</guid>
      <dc:creator>yeliabhcaz</dc:creator>
      <dc:date>2022-12-22T15:46:43Z</dc:date>
    </item>
  </channel>
</rss>

