<?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: Spotify API (My user data) in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5845390#M12466</link>
    <description>&lt;P&gt;You have to make a server side script that refreshes the access token with the refresh token when it expires. When the refresh token expires, you will get a new one while refreshing. (If it isn't expired, you will not get a new one.)&lt;/P&gt;</description>
    <pubDate>Sun, 28 Jan 2024 15:40:02 GMT</pubDate>
    <dc:creator>Ximzend</dc:creator>
    <dc:date>2024-01-28T15:40:02Z</dc:date>
    <item>
      <title>Spotify API (My user data)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5229753#M2809</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing a personal website/developer profile and I'd like to display some user data from my own profile. Specifically, I'd like to display my all-time most listened to tracks and artists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to display this information on my website and keep it up to date without asking a user to login?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 17:18:50 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5229753#M2809</guid>
      <dc:creator>jessewolven</dc:creator>
      <dc:date>2021-07-01T17:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API (My user data)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5230840#M2817</link>
      <description>&lt;P&gt;No, you cannot retrieve user data without asking the user to login. That would be a massive privacy violation.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 23:49:29 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5230840#M2817</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2021-07-04T23:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API (My user data)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5230845#M2818</link>
      <description>True but let me clarify, is there a way that I can programmatically log into my own account without redirecting to the authentication page. Then display top tracks and artists for all users to see</description>
      <pubDate>Mon, 05 Jul 2021 00:38:41 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5230845#M2818</guid>
      <dc:creator>jessewolven</dc:creator>
      <dc:date>2021-07-05T00:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API (My user data)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5231248#M2821</link>
      <description>&lt;P&gt;It's not a possibility to do it programmatically in the frontend since you also would need to expose your login credentials. You might be able to build a backend which can authorize and get you an access token, you could then get your user stats and create an API endpoint that your personal website could call with a fetch request. You can read more about authorization flows here:&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/general/guides/authorization-guide/" target="_blank"&gt;https://developer.spotify.com/documentation/general/guides/authorization-guide/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 00:35:29 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5231248#M2821</guid>
      <dc:creator>Christoffer</dc:creator>
      <dc:date>2021-07-06T00:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API (My user data)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5231645#M2830</link>
      <description>&lt;P&gt;No. Read the &lt;A href="https://developer.spotify.com/documentation/general/guides/authorization-guide" target="_self"&gt;authorization guide&lt;/A&gt;. You only need to login once so this should not be an issue.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 01:09:48 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5231645#M2830</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2021-07-07T01:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API (My user data)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5844895#M12465</link>
      <description>&lt;P&gt;Hey, were you able to get this done, I've been trying to do the same thing for weeks, all I see is having to tap into the user's account, but i wanna programmatically log into mine for any user that uses my app and pull data from my own account for them&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 14:35:14 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5844895#M12465</guid>
      <dc:creator>CrossDeveloper</dc:creator>
      <dc:date>2024-01-28T14:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API (My user data)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5845390#M12466</link>
      <description>&lt;P&gt;You have to make a server side script that refreshes the access token with the refresh token when it expires. When the refresh token expires, you will get a new one while refreshing. (If it isn't expired, you will not get a new one.)&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 15:40:02 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5845390#M12466</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-01-28T15:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API (My user data)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5845576#M12467</link>
      <description>&lt;P&gt;but is it possible to get the access and refresh tokens without taking the user through login, I mean I know I could use the client_credentials and get an access &amp;amp;&amp;amp; refreshToken with just my clientId and secret, but will that give me access to "user-scoped functions" like getting user's currentPlayingTrack, where that user is ME, my account, the account from which I go the clientId and secret&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 17:23:40 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5845576#M12467</guid>
      <dc:creator>CrossDeveloper</dc:creator>
      <dc:date>2024-01-28T17:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API (My user data)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5845651#M12468</link>
      <description>&lt;P&gt;@CrossDeveloper, You have to log in once to get the Authorization Code Flow with the necessary scopes. If you do this, you will get the necessary tokens automatically, and store those onto your server.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 18:03:13 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5845651#M12468</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-01-28T18:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API (My user data)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5845878#M12471</link>
      <description>&lt;P&gt;Ohhhhh makes sense now&lt;span class="lia-unicode-emoji" title=":nerd_face:"&gt;🤓&lt;/span&gt; so i can just do the login now and get the tokens then use them for any other requests the user makes, then if the refresh token should expire, I could still redo the auth server side and replace the old token and just like that, Thanks a lot, makes sense now&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 20:14:55 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-My-user-data/m-p/5845878#M12471</guid>
      <dc:creator>CrossDeveloper</dc:creator>
      <dc:date>2024-01-28T20:14:55Z</dc:date>
    </item>
  </channel>
</rss>

