<?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: API / dashboard discrepancy in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454645#M8357</link>
    <description>&lt;P&gt;Hi there ,&lt;/P&gt;&lt;P&gt;Case opened in 2022. Won't be fixed. API operation will be replaced by another "Assurance" operation in the near future.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 13:26:51 GMT</pubDate>
    <dc:creator>Raphael_L</dc:creator>
    <dc:date>2025-01-21T13:26:51Z</dc:date>
    <item>
      <title>API / dashboard discrepancy</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454644#M8356</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm having a bit of a weird issue. I am trying to get network connection stats from the API but the return data does not match what's in the dashboard, or the data I get if i use developer.cisco.com.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://api.meraki.com/api/v1/networks/L_0000000000000000/wireless/connectionStats" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v1/networks/L_0000000000000000/wireless/connectionStats&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;From my python script;&lt;/P&gt;&lt;P&gt;timespan 86400&lt;/P&gt;&lt;P&gt;ssids 0&lt;BR /&gt;&lt;BR /&gt;response - {"assoc":2550,"auth":4165,"dhcp":55,"dns":150,"success":37306}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Using exactly the same parameters on developer.com I get;&lt;BR /&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;SPAN class=""&gt;"assoc"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;73&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"auth"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;483&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"dhcp"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"dns"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"success"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;6779&lt;/SPAN&gt; &lt;SPAN class=""&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;The dashboard matches developer.com&lt;BR /&gt;&lt;BR /&gt;So what's going on with my script? I broke it down to the most basic call to avoid any kind of data handling error when doing multiple calls. &lt;BR /&gt;It makes a single call, with hard coded network ID and parameters.&lt;BR /&gt;&lt;BR /&gt;I am printing the return data directly with &lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Response: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;response.text&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I cant figure out whats happening &lt;SPAN class="lia-unicode-emoji" title=":confused_face:"&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Jan 2025 13:25:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454644#M8356</guid>
      <dc:creator>Messy</dc:creator>
      <dc:date>2025-01-21T13:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: API / dashboard discrepancy</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454645#M8357</link>
      <description>&lt;P&gt;Hi there ,&lt;/P&gt;&lt;P&gt;Case opened in 2022. Won't be fixed. API operation will be replaced by another "Assurance" operation in the near future.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 13:26:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454645#M8357</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2025-01-21T13:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: API / dashboard discrepancy</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454646#M8358</link>
      <description>&lt;DIV class=""&gt;&lt;P class=""&gt;support@meraki.com&lt;/P&gt;&lt;P class=""&gt;Nov 07 2024 03:53&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P class=""&gt;Hello, This API is outdated and is not planned to be fixed. There shall be new APIs available with Assurance Overview in the future. We can leave this case open until it is resolved.&lt;/P&gt;&lt;P class=""&gt; &lt;/P&gt;&lt;P class=""&gt;###&lt;/P&gt;&lt;P class=""&gt;There is a couple of operations related to wireless stats , and I was never able to get a 1:1 match with the dashboard so I couldn't trust either one. I ended up giving up on the possibility to report wireless stats.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Jan 2025 13:30:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454646#M8358</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2025-01-21T13:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: API / dashboard discrepancy</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454647#M8359</link>
      <description>&lt;PRE&gt;API_KEY = security.MERAKI_API_KEY_LIVE&lt;BR /&gt;BASE_URL = &lt;SPAN&gt;"https://api.meraki.com/api/v1"&lt;BR /&gt;&lt;/SPAN&gt;HEADERS = {&lt;BR /&gt;    &lt;SPAN&gt;"X-Cisco-Meraki-API-Key"&lt;/SPAN&gt;: API_KEY&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;"Content-Type"&lt;/SPAN&gt;: &lt;SPAN&gt;"application/json"&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;def &lt;/SPAN&gt;&lt;SPAN&gt;main&lt;/SPAN&gt;():&lt;BR /&gt;    url = &lt;SPAN&gt;f"&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;BASE_URL&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;/networks/L_00000000000000/wireless/connectionStats"&lt;BR /&gt;&lt;/SPAN&gt;    params = {&lt;BR /&gt;        &lt;SPAN&gt;"ssids"&lt;/SPAN&gt;: &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;"timespan"&lt;/SPAN&gt;: &lt;SPAN&gt;86400&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;&lt;BR /&gt;    response = requests.get(url&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt;=HEADERS&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;params&lt;/SPAN&gt;=params)&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(url)&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Response: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;response.status_code&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"Response: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;response.text&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;__name__ == &lt;SPAN&gt;"__main__"&lt;/SPAN&gt;:&lt;BR /&gt;    main()&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Response: 200&lt;BR /&gt;Response: {"assoc":2562,"auth":4161,"dhcp":55,"dns":150,"success":37457}&lt;/P&gt;&lt;P&gt;Process finished with exit code 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Messy_0-1737466527209.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/264175iCE1E8D1A3E0E2677/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Messy_1-1737466538500.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/264176i38023FD1AD9657B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 13:34:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454647#M8359</guid>
      <dc:creator>Messy</dc:creator>
      <dc:date>2025-01-21T13:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: API / dashboard discrepancy</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454648#M8360</link>
      <description>&lt;P&gt;oh wow, cheers.&lt;BR /&gt;&lt;BR /&gt;I wonder why the hell they leave it in then? should remove it from the guide or at least leave a note warning that its inaccurate!&lt;BR /&gt;&lt;BR /&gt;When they say a new API - do they mean the whole thing is unreliable or just specifically the wifi stats endpoints?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 13:37:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454648#M8360</guid>
      <dc:creator>Messy</dc:creator>
      <dc:date>2025-01-21T13:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: API / dashboard discrepancy</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454649#M8361</link>
      <description>&lt;P&gt;In my case , those endpoints were targeted : &lt;SPAN&gt;( getDeviceWirelessConnectionStats or getNetworkWirelessClientsConnectionStats ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But my feeling is that any "Wireless" stats endpoint will behave like that&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 13:48:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454649#M8361</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2025-01-21T13:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: API / dashboard discrepancy</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454650#M8362</link>
      <description>&lt;P&gt;A "Rock Star" response.  +2 to &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/13291"&gt;@Raphletourn&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 21:42:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-dashboard-discrepancy/m-p/5454650#M8362</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2025-01-21T21:42:40Z</dc:date>
    </item>
  </channel>
</rss>

