<?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 Get a Playlist's Items - Incorrect tracks in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4992157#M682</link>
    <description>&lt;P&gt;Thanks for getting back to me on this. I've tried adding ?market=GB but this doesn't impact the results so I don't think it's to do with the availability in the market. Thanks though for your help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 19:26:05 GMT</pubDate>
    <dc:creator>1121269671</dc:creator>
    <dc:date>2020-07-07T19:26:05Z</dc:date>
    <item>
      <title>API Get a Playlist's Items - Incorrect tracks</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4990167#M653</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan &lt;/STRONG&gt;- Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country &lt;/STRONG&gt;- UK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt; - Levono laptop&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt; -&amp;nbsp;Windows 10&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Category:&lt;/STRONG&gt;&amp;nbsp;API - Get a Playlist's Items&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code: &lt;/STRONG&gt;GET &lt;A href="https://api.spotify.cm/v1/playlists/{playlist_id}/tracks" target="_blank"&gt;https://api.spotify.cm/v1/playlists/{playlist_id}/tracks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm trying to extract the list of tracks from one of my playlists using the "Get Items from Playlist" API. As I analysed the information produced, I noticed that the number of tracks from the API (at 645) was different to the number of tracks on my playlist in Spotify (at 629).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked at the tracks in the API and the vast majority are correct with a small number of additional tracks coming through incorrectly. My current theory is that these are old tracks that were once on the playlist that have since been removed. Therefore:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) should removed tracks be included in the "Get a Playlist's Items" API and if they are, how could I identify which these are so I can remove them? (i.e. slightly different endpoint or a removed_on parameter)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;b) if removed tracks are not included in this endpoint, then why do I have 16 extra tracks in my playlist?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can send over my working if that will help to fix the bug.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jul 2020 15:41:44 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4990167#M653</guid>
      <dc:creator>1121269671</dc:creator>
      <dc:date>2020-07-04T15:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: API Get a Playlist's Items - Incorrect tracks</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4990733#M660</link>
      <description>Have you read about track relinking at &lt;A href="https://developer.spotify.com/documentation/general/guides/track-relinking-guide/" target="_blank"&gt;https://developer.spotify.com/documentation/general/guides/track-relinking-guide/&lt;/A&gt;</description>
      <pubDate>Sun, 05 Jul 2020 17:57:25 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4990733#M660</guid>
      <dc:creator>kingosticks4</dc:creator>
      <dc:date>2020-07-05T17:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: API Get a Playlist's Items - Incorrect tracks</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4990812#M663</link>
      <description>&lt;P&gt;Thanks for the help @kingosticks4,&lt;/P&gt;&lt;P&gt;What impact would relinking have on the playlist APIs? Trying to understand how it would result in additional tracks coming through? If two tracks were linked to a song, would they both come through?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 20:14:37 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4990812#M663</guid>
      <dc:creator>1121269671</dc:creator>
      <dc:date>2020-07-05T20:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: API Get a Playlist's Items - Incorrect tracks</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4990824#M664</link>
      <description>&lt;P&gt;That link also discusses market availability and how to detect unplayable tracks, which might be what you are seeing. There's an option in the Spotify clients to hide unplayable tracks but they are always returned when using the API and its up to you to handle that. Your use of the market parameter effects the APIs behaviour so that's also important to understand.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 20:29:22 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4990824#M664</guid>
      <dc:creator>kingosticks4</dc:creator>
      <dc:date>2020-07-05T20:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: API Get a Playlist's Items - Incorrect tracks</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4992157#M682</link>
      <description>&lt;P&gt;Thanks for getting back to me on this. I've tried adding ?market=GB but this doesn't impact the results so I don't think it's to do with the availability in the market. Thanks though for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 19:26:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4992157#M682</guid>
      <dc:creator>1121269671</dc:creator>
      <dc:date>2020-07-07T19:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: API Get a Playlist's Items - Incorrect tracks</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4992160#M683</link>
      <description>&lt;P&gt;So, to be clear, your code is expliclty handling unplayable tracks? The market parameter is just one part of doing that correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 19:40:25 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4992160#M683</guid>
      <dc:creator>kingosticks4</dc:creator>
      <dc:date>2020-07-07T19:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: API Get a Playlist's Items - Incorrect tracks</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4992405#M685</link>
      <description>&lt;P&gt;The code is returning tracks that are not actually in the playlist. These are tracks that (as far as I can tell) are available in my market, just they shouldn't be appearing in this specific place.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 05:11:20 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4992405#M685</guid>
      <dc:creator>1121269671</dc:creator>
      <dc:date>2020-07-08T05:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: API Get a Playlist's Items - Incorrect tracks</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4992594#M689</link>
      <description>&lt;P&gt;Can you provide the playlist URI (made public) and provide the list of extra tracks? In answer to your original question, removed tracks are not returned (unless you requested a specific snapshot, but that's something different).&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 10:04:15 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4992594#M689</guid>
      <dc:creator>kingosticks4</dc:creator>
      <dc:date>2020-07-08T10:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: API Get a Playlist's Items - Incorrect tracks</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4993807#M698</link>
      <description>&lt;P&gt;I got an email saying you had replied but the post seems to be missing now. Anyway, I looked up the playlist you provided with the software I use (Mopidy) and I see:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:37,507 Fetching Spotify playlist "'spotify:playlist:1ZRkhoyufuTIYFqk3yWeV9'"&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,366 'spotify:track:1ZWCocmKsR0qJ8HzlmrCMw' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,367 'spotify:track:2ZRvFR4YQeoLYjF860iRKC' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,371 'spotify:track:2RsZvc495oilGPSK6c84AR' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,376 'spotify:track:13gD7RyWE7ZOEoxfGAXm1B' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,376 'spotify:track:02aqb63uCgQ8qwyRjwHnI5' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,382 'spotify:local:Kideko+%26+George+Kwali::Crank+It:276' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,382 'spotify:local:Coldplay%2C+CID::Adventure+of+a+Lifetime+%28CID+remix%29:326' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,382 'spotify:local:Alan+Walker%2C+Tiesto::Faded+%28Tiesto%27s+Northern+Lights+Remix%29:187' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,384 'spotify:track:0mnPBLbAci8OPyEg0BA0Rs' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,384 'spotify:local:Brassica%2C+Bicep::Tears+I+can%27t+afford+%28Bicep+remix%29:475' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,386 'spotify:track:1KQ6i7aTI4nPTI43PMehGY' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,391 'spotify:track:1946aCEzhHVZ02TUux9Xwa' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,392 'spotify:track:7mpcmYoOCeI5gh5azJSnWY' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,397 'spotify:local:::Offaiah+-+Trouble:442' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,398 'spotify:local:SubSoul::Gorgon+City+-+Money:387' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,399 'spotify:track:6R7Ggyj4Qiq0ffrVRbOmeq' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,403 'spotify:track:27xwSksu152ZiGJfElj5ur' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,409 'spotify:local:Alan+Fitzpatrick::1992+%28Boxia+VIP%29:435' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,413 'spotify:track:5h11E5MJHwDQGQaFCejeab' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,422 'spotify:track:0a1wjQ6MTqu9nRfkOJ798L' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,423 'spotify:track:39VfFItzZejusmAWWdyFZv' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,432 'spotify:track:1TpQB1TLtBgcPa4mgOI5sC' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,433 'spotify:track:6wULoIik6M7mKiWJ6HBOch' is not playable&lt;BR /&gt;SpotifyBackend-3 DEBUG 2020-07-10 11:11:38,456 'spotify:track:3Xw2crgz5RNxRxmQibOTsh' is not playable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, clearly some of them are local tracks so they are only playback where the local track is available. It's clear from the API response that some of the others are not available in the GB market, take "1ZWCocmKsR0qJ8HzlmrCMw - Live Your Life - Original Mix" as an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"external_urls" : {&lt;BR /&gt;"spotify" : "&lt;A href="https://open.spotify.com/track/1ZWCocmKsR0qJ8HzlmrCMw" target="_blank"&gt;https://open.spotify.com/track/1ZWCocmKsR0qJ8HzlmrCMw&lt;/A&gt;"&lt;BR /&gt;},&lt;BR /&gt;"href" : "&lt;A href="https://api.spotify.com/v1/tracks/1ZWCocmKsR0qJ8HzlmrCMw" target="_blank"&gt;https://api.spotify.com/v1/tracks/1ZWCocmKsR0qJ8HzlmrCMw&lt;/A&gt;",&lt;BR /&gt;"id" : "1ZWCocmKsR0qJ8HzlmrCMw",&lt;BR /&gt;"is_local" : false,&lt;BR /&gt;"is_playable" : false,&lt;BR /&gt;"name" : "Live Your Life - Original Mix",&lt;BR /&gt;"popularity" : 0,&lt;BR /&gt;"preview_url" : null,&lt;BR /&gt;"restrictions" : {&lt;BR /&gt;"reason" : "market"&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The official client hides unplayable tracks by default. There is an option in the settings to control this, as I said before.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 10:22:36 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4993807#M698</guid>
      <dc:creator>kingosticks4</dc:creator>
      <dc:date>2020-07-10T10:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: API Get a Playlist's Items - Incorrect tracks</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4994896#M709</link>
      <description>&lt;P&gt;KingoSticks, you are a goddam hero!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now understand what you mean. I'm still not sure how these songs have ended up on my playlist (don't recognise some of them and they don't appear in the spotify browser), especially as some of these are local files on my C: drive but some aren't even local files which confuses me even more.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I've been able to remove them from the API output by adding is_playable = 1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 13:13:16 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/4994896#M709</guid>
      <dc:creator>1121269671</dc:creator>
      <dc:date>2020-07-11T13:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: API Get a Playlist's Items - Incorrect tracks</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/5365668#M4366</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;The tracks that I'm trying to retrieve from a playlist state that they are playable, but still a different song appears when retrieving the IDs. How do you fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 14:52:12 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Get-a-Playlist-s-Items-Incorrect-tracks/m-p/5365668#M4366</guid>
      <dc:creator>Melalalaaanie</dc:creator>
      <dc:date>2022-04-11T14:52:12Z</dc:date>
    </item>
  </channel>
</rss>

