<?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: API /views endpoint unauthorized discover playlists in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/API-views-endpoint-unauthorized-discover-playlists/m-p/5300018#M3664</link>
    <description>&lt;P&gt;Hey there, this is still a problem. I'd be very happy to get some feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just came across another endpoint "/views/recently-played" that returns the recently played playlists. The Web API to which we have access only provides the recently played tracks. If I want to get the recently played playlists, I have to query the tracks and get their playlists. (Depending on the playing history, this can take quite long.)&lt;/P&gt;&lt;P&gt;EDIT: I just had to find out that the play history only contains up to 50 tracks. So it might not even be possible to retrieve more than one playlist recently listened to, depending on the play history. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Nov 2021 12:35:28 GMT</pubDate>
    <dc:creator>SaPropper</dc:creator>
    <dc:date>2021-11-20T12:35:28Z</dc:date>
    <item>
      <title>API /views endpoint unauthorized discover playlists</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-views-endpoint-unauthorized-discover-playlists/m-p/5292098#M3575</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm currently developing an app where I want to get the user's discover playlists. I did it by searching the user's library by name. The problems with this approach are: If you follow multiple lets say "Discover Weekly" playlists, they are indistinguishable. And second, the user must follow their discover playlists in order for them to be found and displayed by my app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To solve this, I had a look at how the Spotify Web Player does this.&lt;/P&gt;&lt;P&gt;It uses the "/views/discover-page" endpoint. Specifically "api.spotify.com/v1/views/discover-page-top-header" for the discover playlists.&lt;/P&gt;&lt;P&gt;Unfortunately, when I try to make a request to this endpoint, I get a 401 Unauthorized response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way I can still achieve this? Please help.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 18:55:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-views-endpoint-unauthorized-discover-playlists/m-p/5292098#M3575</guid>
      <dc:creator>SaPropper</dc:creator>
      <dc:date>2021-11-09T18:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: API /views endpoint unauthorized discover playlists</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-views-endpoint-unauthorized-discover-playlists/m-p/5300018#M3664</link>
      <description>&lt;P&gt;Hey there, this is still a problem. I'd be very happy to get some feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just came across another endpoint "/views/recently-played" that returns the recently played playlists. The Web API to which we have access only provides the recently played tracks. If I want to get the recently played playlists, I have to query the tracks and get their playlists. (Depending on the playing history, this can take quite long.)&lt;/P&gt;&lt;P&gt;EDIT: I just had to find out that the play history only contains up to 50 tracks. So it might not even be possible to retrieve more than one playlist recently listened to, depending on the play history. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Nov 2021 12:35:28 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-views-endpoint-unauthorized-discover-playlists/m-p/5300018#M3664</guid>
      <dc:creator>SaPropper</dc:creator>
      <dc:date>2021-11-20T12:35:28Z</dc:date>
    </item>
  </channel>
</rss>

