<?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 Web API - Issues with Get Recently Played Tracks endpoint in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-Issues-with-Get-Recently-Played-Tracks-endpoint/m-p/7044755#M18400</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;India&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(Poco F1/M6 pro, macbook m1 pro)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(Android, Mac os)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All, I've been trying to use spotify's recently played web api endpoint to keep personal stats of songs and artists that I listen to, but I think there have been a few bugs in the response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUG 1&lt;/STRONG&gt;: Wrong songs in the response and possibly wrong value in played_at field&lt;BR /&gt;Below is the filtered response (played_at, and track.name) of an API call, I did not play the song 'L.S.F' even once but the API response suggests that I played it 3 times&lt;BR /&gt;Also note how played_at time of all the songs has seconds that end with 4(mostly 54 or 24), this also seems like a bug, as the length of all those songs can't be multiple of 30 seconds&lt;BR /&gt;I should also mention that the sound capsule section in the app shows the correct data, i.e. it does not show that L.S.F was played 3 times(if it was it would be in my top 5 songs of the month so far, but it is not)&lt;/P&gt;&lt;P&gt;Filtered Response:&lt;/P&gt;&lt;P&gt;2025-07-06T06:38:54.411Z Club Foot (Kasabian)&lt;BR /&gt;2025-07-06T06:37:54.485Z L.S.F. (Kasabian)&lt;BR /&gt;2025-07-06T06:37:24.668Z L.S.F. (Kasabian)&lt;BR /&gt;2025-07-06T06:36:54.276Z L.S.F. (Kasabian)&lt;BR /&gt;2025-07-06T06:34:54.369Z Figure It Out (Royal Blood)&lt;BR /&gt;2025-07-06T06:31:54.365Z Out of the Black (Royal Blood)&lt;BR /&gt;2025-07-06T06:27:54.381Z Out of the Black (Royal Blood)&lt;BR /&gt;2025-07-06T06:23:54.416Z Chasing Cars (Snow Patrol)&lt;BR /&gt;2025-07-06T06:19:34.690Z Navigating (Twenty One Pilots)&lt;BR /&gt;2025-07-06T06:15:54.425Z Undisclosed Desires (Muse)&lt;BR /&gt;2025-07-06T06:10:24.561Z Zombie (YUNGBLUD)&lt;BR /&gt;2025-07-06T06:06:24.513Z Ocean Avenue (Yellowcard)&lt;BR /&gt;2025-07-06T06:02:54.573Z Top 10 staTues tHat CriEd bloOd (Bring Me The Horizon)&lt;BR /&gt;2025-07-06T05:58:54.923Z Drown (Bring Me The Horizon)&lt;BR /&gt;2025-07-06T05:55:25.350Z The Pretender (Foo Fighters)&lt;BR /&gt;2025-07-06T05:50:54.437Z n/A (Bring Me The Horizon)&lt;BR /&gt;2025-07-06T05:47:24.551Z Swing, Swing (The All-American Rejects)&lt;BR /&gt;2025-07-06T05:43:24.351Z Coming Back to Life (Pink Floyd)&lt;BR /&gt;2025-07-06T05:37:24.400Z Coming Back to Life (Pink Floyd)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;BUG 2&lt;/STRONG&gt;: Extra plays of the song:&lt;BR /&gt;This bug is more common, here is an example in the response:&lt;/P&gt;&lt;P&gt;2025-07-02T05:36:42.888Z What The Water Gave Me (Florence + The Machine)&lt;BR /&gt;2025-07-02T02:14:57.677Z What The Water Gave Me (Florence + The Machine)&lt;BR /&gt;2025-07-02T01:01:55.325Z What The Water Gave Me (Florence + The Machine)&lt;BR /&gt;2025-07-02T00:56:25.379Z What The Water Gave Me (Florence + The Machine)&lt;BR /&gt;2025-07-02T00:50:55.299Z What The Water Gave Me (Florence + The Machine)&lt;/P&gt;&lt;P&gt;I did listen to this song on repeat but I did it 4 times and not 5, (note that played_at of the 5th play is 3 hours after the 4th play, I'm very sure I did take a 3 hour break to listen to it one more time)&lt;BR /&gt;This bug is more common and happens quite often(but not always) with the song I stop at. e.g if a song is on repeat and I stop playback and close the app after a few plays, I might get an extra play of that song in the API response, also it can happen even if I'm not listening to a song on repeat but I stop on a song which has just started, say it is played for a 1-2 seconds and then I stop it and close the app, that 1-2 seconds played song sometimes is also returned in the response.&lt;BR /&gt;Also just like BUG 1, the sound capsule section shows the correct data, i.e. in this case it shows 'What the water gave me' was played 4 times and not 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are these known bug, is there anything I can do to avoid these wrong entries in the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jul 2025 12:24:28 GMT</pubDate>
    <dc:creator>vinr27</dc:creator>
    <dc:date>2025-07-09T12:24:28Z</dc:date>
    <item>
      <title>Web API - Issues with Get Recently Played Tracks endpoint</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-Issues-with-Get-Recently-Played-Tracks-endpoint/m-p/7044755#M18400</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;India&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(Poco F1/M6 pro, macbook m1 pro)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(Android, Mac os)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All, I've been trying to use spotify's recently played web api endpoint to keep personal stats of songs and artists that I listen to, but I think there have been a few bugs in the response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUG 1&lt;/STRONG&gt;: Wrong songs in the response and possibly wrong value in played_at field&lt;BR /&gt;Below is the filtered response (played_at, and track.name) of an API call, I did not play the song 'L.S.F' even once but the API response suggests that I played it 3 times&lt;BR /&gt;Also note how played_at time of all the songs has seconds that end with 4(mostly 54 or 24), this also seems like a bug, as the length of all those songs can't be multiple of 30 seconds&lt;BR /&gt;I should also mention that the sound capsule section in the app shows the correct data, i.e. it does not show that L.S.F was played 3 times(if it was it would be in my top 5 songs of the month so far, but it is not)&lt;/P&gt;&lt;P&gt;Filtered Response:&lt;/P&gt;&lt;P&gt;2025-07-06T06:38:54.411Z Club Foot (Kasabian)&lt;BR /&gt;2025-07-06T06:37:54.485Z L.S.F. (Kasabian)&lt;BR /&gt;2025-07-06T06:37:24.668Z L.S.F. (Kasabian)&lt;BR /&gt;2025-07-06T06:36:54.276Z L.S.F. (Kasabian)&lt;BR /&gt;2025-07-06T06:34:54.369Z Figure It Out (Royal Blood)&lt;BR /&gt;2025-07-06T06:31:54.365Z Out of the Black (Royal Blood)&lt;BR /&gt;2025-07-06T06:27:54.381Z Out of the Black (Royal Blood)&lt;BR /&gt;2025-07-06T06:23:54.416Z Chasing Cars (Snow Patrol)&lt;BR /&gt;2025-07-06T06:19:34.690Z Navigating (Twenty One Pilots)&lt;BR /&gt;2025-07-06T06:15:54.425Z Undisclosed Desires (Muse)&lt;BR /&gt;2025-07-06T06:10:24.561Z Zombie (YUNGBLUD)&lt;BR /&gt;2025-07-06T06:06:24.513Z Ocean Avenue (Yellowcard)&lt;BR /&gt;2025-07-06T06:02:54.573Z Top 10 staTues tHat CriEd bloOd (Bring Me The Horizon)&lt;BR /&gt;2025-07-06T05:58:54.923Z Drown (Bring Me The Horizon)&lt;BR /&gt;2025-07-06T05:55:25.350Z The Pretender (Foo Fighters)&lt;BR /&gt;2025-07-06T05:50:54.437Z n/A (Bring Me The Horizon)&lt;BR /&gt;2025-07-06T05:47:24.551Z Swing, Swing (The All-American Rejects)&lt;BR /&gt;2025-07-06T05:43:24.351Z Coming Back to Life (Pink Floyd)&lt;BR /&gt;2025-07-06T05:37:24.400Z Coming Back to Life (Pink Floyd)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;BUG 2&lt;/STRONG&gt;: Extra plays of the song:&lt;BR /&gt;This bug is more common, here is an example in the response:&lt;/P&gt;&lt;P&gt;2025-07-02T05:36:42.888Z What The Water Gave Me (Florence + The Machine)&lt;BR /&gt;2025-07-02T02:14:57.677Z What The Water Gave Me (Florence + The Machine)&lt;BR /&gt;2025-07-02T01:01:55.325Z What The Water Gave Me (Florence + The Machine)&lt;BR /&gt;2025-07-02T00:56:25.379Z What The Water Gave Me (Florence + The Machine)&lt;BR /&gt;2025-07-02T00:50:55.299Z What The Water Gave Me (Florence + The Machine)&lt;/P&gt;&lt;P&gt;I did listen to this song on repeat but I did it 4 times and not 5, (note that played_at of the 5th play is 3 hours after the 4th play, I'm very sure I did take a 3 hour break to listen to it one more time)&lt;BR /&gt;This bug is more common and happens quite often(but not always) with the song I stop at. e.g if a song is on repeat and I stop playback and close the app after a few plays, I might get an extra play of that song in the API response, also it can happen even if I'm not listening to a song on repeat but I stop on a song which has just started, say it is played for a 1-2 seconds and then I stop it and close the app, that 1-2 seconds played song sometimes is also returned in the response.&lt;BR /&gt;Also just like BUG 1, the sound capsule section shows the correct data, i.e. in this case it shows 'What the water gave me' was played 4 times and not 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are these known bug, is there anything I can do to avoid these wrong entries in the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 12:24:28 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-API-Issues-with-Get-Recently-Played-Tracks-endpoint/m-p/7044755#M18400</guid>
      <dc:creator>vinr27</dc:creator>
      <dc:date>2025-07-09T12:24:28Z</dc:date>
    </item>
  </channel>
</rss>

