<?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: Feature request: server-side duplicate prevention for Add Items to Playlist in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Feature-request-server-side-duplicate-prevention-for-Add-Items/m-p/7407219#M21195</link>
    <description>&lt;P&gt;Any update on this? Would be very nice to have to not eat up quota on duplicate song check on adding to playlists.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2026 14:58:25 GMT</pubDate>
    <dc:creator>Inzanity</dc:creator>
    <dc:date>2026-04-15T14:58:25Z</dc:date>
    <item>
      <title>Feature request: server-side duplicate prevention for Add Items to Playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Feature-request-server-side-duplicate-prevention-for-Add-Items/m-p/7338030#M20384</link>
      <description>&lt;P&gt;Hi Spotify Web API team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing an application that utilizes the "Add Items to Playlist" endpoint:&lt;/P&gt;&lt;P&gt;POST /v1/playlists/{playlist_id}/items&lt;/P&gt;&lt;P&gt;One recurring problem is that the endpoint provides no way to prevent duplicate tracks from being inserted into a playlist when multiple requests come in close together or when the same track is requested repeatedly. In a typical application flow, the only safe option is to first read the playlist contents (paging through /playlists/{playlist_id}/items) and maintain a local cache of track IDs to avoid adding duplicates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In practice, this approach has several drawbacks:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Playlists can be very large, so reading all items requires many paged requests.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Rebuilding or validating the cache (for example on app startup) can quickly trigger rate limits (429).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Even with caching, there is still a race condition: two concurrent requests can both pass the "not present" check before either add completes, resulting in duplicates.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;While the snapshot_id field is helpful to detect that a playlist has changed, it does not fully solve the problem. If the snapshot_id differs from the cached version, there is no way to cheaply determine what exactly changed or where new tracks were inserted. As a result, applications still need to re-fetch the entire playlist to rebuild their cache. For very large playlists, this again requires many paged requests and brings back the same performance and rate limit concerns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feature request:&lt;/P&gt;&lt;P&gt;Could you consider adding an option to the Add Items to Playlist endpoint to support server-side duplicate prevention? For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;A query parameter such as "ignore_duplicates=true" or "dedupe=true"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;An idempotency key or de-duplication behavior scoped to a playlist&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;A mode where items are only added if not already present in the playlist&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ideal behavior:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;When a track URI already exists in the playlist and a de-duplication flag is set, the API would skip inserting it, either silently or with a clear indication of which URIs were ignored.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The behavior should be atomic on Spotify's side to eliminate race conditions.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This would significantly reduce unnecessary API traffic, lower the risk of rate limiting, and simplify robust playlist management workflows without requiring full playlist scans and local caching.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your consideration.&lt;BR /&gt;&lt;BR /&gt;Edit:&lt;BR /&gt;Another way to achieve what I am after is having an endpoint that is similar to GET /v1/&lt;SPAN class=""&gt;me/library/contains&lt;BR /&gt;That way we could at least check if that song is already in a playlist without having to cache the entire playlist.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 22:32:20 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Feature-request-server-side-duplicate-prevention-for-Add-Items/m-p/7338030#M20384</guid>
      <dc:creator>Inzanity</dc:creator>
      <dc:date>2026-02-11T22:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Feature request: server-side duplicate prevention for Add Items to Playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Feature-request-server-side-duplicate-prevention-for-Add-Items/m-p/7338064#M20385</link>
      <description>&lt;P&gt;i wanted to automate playlist configuration too, but my application has been disabled i don't know why. how can i contact staff for my application activation&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 20:56:45 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Feature-request-server-side-duplicate-prevention-for-Add-Items/m-p/7338064#M20385</guid>
      <dc:creator>arciana</dc:creator>
      <dc:date>2026-02-11T20:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Feature request: server-side duplicate prevention for Add Items to Playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Feature-request-server-side-duplicate-prevention-for-Add-Items/m-p/7345051#M20571</link>
      <description>&lt;P&gt;Bumping this because there is a lot of posts going on and this feature would help a lot of people!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 14:06:11 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Feature-request-server-side-duplicate-prevention-for-Add-Items/m-p/7345051#M20571</guid>
      <dc:creator>Inzanity</dc:creator>
      <dc:date>2026-02-18T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Feature request: server-side duplicate prevention for Add Items to Playlist</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Feature-request-server-side-duplicate-prevention-for-Add-Items/m-p/7407219#M21195</link>
      <description>&lt;P&gt;Any update on this? Would be very nice to have to not eat up quota on duplicate song check on adding to playlists.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2026 14:58:25 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Feature-request-server-side-duplicate-prevention-for-Add-Items/m-p/7407219#M21195</guid>
      <dc:creator>Inzanity</dc:creator>
      <dc:date>2026-04-15T14:58:25Z</dc:date>
    </item>
  </channel>
</rss>

