<?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 Dashboard API - Too Many Requests in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/dashboard-api-too-many-requests/m-p/5408042#M1557</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have a Use Case where we want to present a "Connected Client List" for a given network but we are running into som issues.&lt;/P&gt;&lt;P&gt;This is how we do it:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Call the /networks/{networkId}/devices API to get a list of Devices&lt;OL&gt;&lt;LI&gt;For Each Device call the /devices/{deviceSerial}/clients?timespan=300 API to get the connected Clients&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Summarize the Client List and present it to the customer.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For testing we are using the Sandbox environment and the &lt;SPAN&gt;NetworkId: L_646829496481087790&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If we run 1) &amp;amp; 1.1) in sequence everything works but it takes too long. But once we thread the calls we start getting:&lt;BR /&gt;- HTTP.Status: 429 Too Many Requests&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- HTTP.Status: 403 Forbidden&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is the "concurrent request limit" for calling the Dashhboard API in general and the /devices/{deviceSerial}/clients API specifically?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are the limits the same for "productions accounts", i.e not sandboxed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a better way of finding all connected Clients for a network?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;regards Jens, Netgraph&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2017 10:59:17 GMT</pubDate>
    <dc:creator>jens.lofgren</dc:creator>
    <dc:date>2017-10-23T10:59:17Z</dc:date>
    <item>
      <title>Dashboard API - Too Many Requests</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-api-too-many-requests/m-p/5408042#M1557</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have a Use Case where we want to present a "Connected Client List" for a given network but we are running into som issues.&lt;/P&gt;&lt;P&gt;This is how we do it:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Call the /networks/{networkId}/devices API to get a list of Devices&lt;OL&gt;&lt;LI&gt;For Each Device call the /devices/{deviceSerial}/clients?timespan=300 API to get the connected Clients&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Summarize the Client List and present it to the customer.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For testing we are using the Sandbox environment and the &lt;SPAN&gt;NetworkId: L_646829496481087790&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If we run 1) &amp;amp; 1.1) in sequence everything works but it takes too long. But once we thread the calls we start getting:&lt;BR /&gt;- HTTP.Status: 429 Too Many Requests&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- HTTP.Status: 403 Forbidden&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is the "concurrent request limit" for calling the Dashhboard API in general and the /devices/{deviceSerial}/clients API specifically?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are the limits the same for "productions accounts", i.e not sandboxed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a better way of finding all connected Clients for a network?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;regards Jens, Netgraph&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 10:59:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-api-too-many-requests/m-p/5408042#M1557</guid>
      <dc:creator>jens.lofgren</dc:creator>
      <dc:date>2017-10-23T10:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard API - Too Many Requests</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-api-too-many-requests/m-p/5408043#M1558</link>
      <description>&lt;P&gt;It's 5 calls/second and it's buried in this article &lt;A href="https://documentation.meraki.com/zGeneral_Administration/Other_Topics/The_Cisco_Meraki_Dashboard_API#Every_request_must_specify_an_API_key_via_a_request_header" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;. I've had to add a couple 'Start-Sleep -m 600' to my loops in my PowerShell scripts. It certainly increases run time, but what can ya do.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 14:12:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-api-too-many-requests/m-p/5408043#M1558</guid>
      <dc:creator>alex_g</dc:creator>
      <dc:date>2017-10-23T14:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard API - Too Many Requests</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-api-too-many-requests/m-p/5408044#M1559</link>
      <description>&lt;P&gt;Thanks!&lt;BR /&gt;Since I use Java I implemented a throttle mechanism using Spring AOP &amp;amp; Google Guava Library following this guide:&lt;BR /&gt;&lt;A href="https://www.javacodegeeks.com/2015/07/throttle-methods-with-spring-aop-and-guava-rate-limiter.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.javacodegeeks.com/2015/07/throttle-methods-with-spring-aop-and-guava-rate-limiter.html&lt;/A&gt;&lt;BR /&gt;Setting the limit to a maximum of 4 calls/second seems to work for about 97% of my calls!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Setting the limit to a maximum of 3 calls/second seems to work for about 100% of my calls!&lt;/SPAN&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;/Jens&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 18:51:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-api-too-many-requests/m-p/5408044#M1559</guid>
      <dc:creator>jens.lofgren</dc:creator>
      <dc:date>2017-10-23T18:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard API - Too Many Requests</title>
      <link>https://community.cisco.com/t5/network-platform-api/dashboard-api-too-many-requests/m-p/5408045#M1560</link>
      <description>&lt;P&gt;The Meraki documentation (kindly linked by AlexG) states the following:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: Call volume is limited to 5 calls per second (per organization)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how an API key assoicated with an MSP level user (that being a user that has access to multiple Orgs) is rate limited? Is the rate limiting done at API Key level, or is the rate limiting smarter than that and gives you 5 calls per second per org you're quiering with the shared API Key? ie at: &lt;SPAN class="mt-font-size-11"&gt;GET &lt;SPAN class="nowiki"&gt;&lt;A href="https://api.meraki.com/api/v0/organizations/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v0/organizations/&lt;/A&gt;&lt;/SPAN&gt;&amp;lt;org_id&amp;gt;/...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 10:23:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dashboard-api-too-many-requests/m-p/5408045#M1560</guid>
      <dc:creator>MartinSHighlight</dc:creator>
      <dc:date>2018-04-25T10:23:01Z</dc:date>
    </item>
  </channel>
</rss>

