Plan - Premium
Country - UK
Device - Levono laptop
Operating System - Windows 10
Category: API - Get a Playlist's Items
Code: GET https://api.spotify.cm/v1/playlists/{playlist_id}/tracks
My Question or Issue
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).
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:
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)
b) if removed tracks are not included in this endpoint, then why do I have 16 extra tracks in my playlist?
I can send over my working if that will help to fix the bug.