<?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 API Rate Limiting Changed? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Rate-Limiting-Changed/m-p/5041817#M1208</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;Canada&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PC&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Win10&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;I'm currently contributing to an open-source Spotify widget (&lt;A href="https://github.com/dvx/lofi/" target="_blank" rel="noopener"&gt;https://github.com/dvx/lofi/&lt;/A&gt;) where the API is polled every second. We use the response to set the track progress, playback status, volume level, cover art, track info, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since somewhere around noon EDT the app is returning a lot more 429 than I previously experienced (see attached image). I first noticed when the error occurred every 30 seconds and the api returned a retry-after of &amp;gt;10 seconds. Now it seems the error occurs every minute with a retry-after of 1 second. Our code always adds one second to the retry after to ensure that we're not abusing the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is 1 request/second an extreme scenario? The API seemed to be ok with that up til now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spotify_api_429.png" style="width: 646px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/121309i68BAB4432757C7BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="spotify_api_429.png" alt="spotify_api_429.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 18:34:22 GMT</pubDate>
    <dc:creator>Morgrog</dc:creator>
    <dc:date>2020-09-25T18:34:22Z</dc:date>
    <item>
      <title>API Rate Limiting Changed?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Rate-Limiting-Changed/m-p/5041817#M1208</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;Canada&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PC&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Win10&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;I'm currently contributing to an open-source Spotify widget (&lt;A href="https://github.com/dvx/lofi/" target="_blank" rel="noopener"&gt;https://github.com/dvx/lofi/&lt;/A&gt;) where the API is polled every second. We use the response to set the track progress, playback status, volume level, cover art, track info, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since somewhere around noon EDT the app is returning a lot more 429 than I previously experienced (see attached image). I first noticed when the error occurred every 30 seconds and the api returned a retry-after of &amp;gt;10 seconds. Now it seems the error occurs every minute with a retry-after of 1 second. Our code always adds one second to the retry after to ensure that we're not abusing the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is 1 request/second an extreme scenario? The API seemed to be ok with that up til now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spotify_api_429.png" style="width: 646px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/121309i68BAB4432757C7BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="spotify_api_429.png" alt="spotify_api_429.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 18:34:22 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Rate-Limiting-Changed/m-p/5041817#M1208</guid>
      <dc:creator>Morgrog</dc:creator>
      <dc:date>2020-09-25T18:34:22Z</dc:date>
    </item>
  </channel>
</rss>

