<?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: Getting better API usage insights? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Getting-better-API-usage-insights/m-p/4945247#M74</link>
    <description>&lt;P&gt;More helpful pieces of information would be top requests per user (is one client gone nuts, or the application overall?), longer period stats to better understand trends, or even raw logs forever request.&lt;/P&gt;</description>
    <pubDate>Sun, 03 May 2020 19:38:36 GMT</pubDate>
    <dc:creator>mherger</dc:creator>
    <dc:date>2020-05-03T19:38:36Z</dc:date>
    <item>
      <title>Getting better API usage insights?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Getting-better-API-usage-insights/m-p/4945244#M73</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Web Service&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 have an application which generates a good amount of traffic to your API servers. There are thousandfold unique users every day (according to your dashboard).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the dashboard I can see that something isn’t good, though: there are days where some endpoints are called 20-30x the number of regular days. In order to better understand what‘s going on I’d eg. need to know whether the ‚tracks‘ endpoint had been called for single tracks or with the ‚ids‘ parameter for multiple tracks. Is there any way to get this kind of additional information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently we got an increasing number of 429 status back. But it’s totally unclear to me how the rate limiting is applied. These requests come from the users‘ computers. Thus the IP should be unique per user. Is this even taken into account? Or is the rate limiting applied to all calls using the same client ID? Any further information how to mitigate the rate limiting issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 19:33:22 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Getting-better-API-usage-insights/m-p/4945244#M73</guid>
      <dc:creator>mherger</dc:creator>
      <dc:date>2020-05-03T19:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting better API usage insights?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Getting-better-API-usage-insights/m-p/4945247#M74</link>
      <description>&lt;P&gt;More helpful pieces of information would be top requests per user (is one client gone nuts, or the application overall?), longer period stats to better understand trends, or even raw logs forever request.&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 19:38:36 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Getting-better-API-usage-insights/m-p/4945247#M74</guid>
      <dc:creator>mherger</dc:creator>
      <dc:date>2020-05-03T19:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting better API usage insights?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Getting-better-API-usage-insights/m-p/4956261#M158</link>
      <description>&lt;P&gt;Unfortunately my posting didn't get any traction... maybe this screenshot can help me illustrate what I'm struggling with right 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-center" image-alt="Bildschirmfoto 2020-05-16 um 10.34.49.png" style="width: 400px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/116298i75BD8A29FF589EDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-05-16 um 10.34.49.png" alt="Bildschirmfoto 2020-05-16 um 10.34.49.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see some queries go wild: the pink one is /v1/tracks, going from a few thousand to hundreds of thousands of hits per day. Similarly, but not as badly the green one (/v1/playlists/{id}/tracks). Quite obviously something's wrong. And I have no way to investigate it because that chart is all I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a few thousand daily users. What would be super helpful would be to understand whether these abnormal spikes were coming from single IP addresses, or just all instances going crazy. To understand whether somebody was abusing my application to do whatever or whether there is a bug in my application leading to systematic craziness.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The situation today is that we're seeing too many 429s due to this behaviour. And I have little to no means to investigate the problem.&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 08:36:18 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Getting-better-API-usage-insights/m-p/4956261#M158</guid>
      <dc:creator>mherger</dc:creator>
      <dc:date>2020-05-16T08:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting better API usage insights?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Getting-better-API-usage-insights/m-p/4958148#M175</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/2489427"&gt;@mherger&lt;/a&gt;,&amp;nbsp;thanks for sharing this feedback with us. I can see how more granular analytics might be useful here. Do you have any logging set up in your application? If not, that might be a good way to identify the source of any excessive API calls within your app.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 20:33:42 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Getting-better-API-usage-insights/m-p/4958148#M175</guid>
      <dc:creator>spotifyjosh</dc:creator>
      <dc:date>2020-05-18T20:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting better API usage insights?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Getting-better-API-usage-insights/m-p/4958149#M176</link>
      <description>&lt;P&gt;Hi Josh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for getting back to me. Yes, there is logging available - but the application is running on the users' devices. They would have to enable logging and send me their log files. That's not easily done without knowing who (out of the thousands of users) is having a problem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 20:36:56 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Getting-better-API-usage-insights/m-p/4958149#M176</guid>
      <dc:creator>mherger</dc:creator>
      <dc:date>2020-05-18T20:36:56Z</dc:date>
    </item>
  </channel>
</rss>

