<?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: Client count by SSID per AP in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/client-count-by-ssid-per-ap/m-p/5397157#M4</link>
    <description>&lt;P&gt;&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/51406"&gt;@alessandrodematos&lt;/A&gt; thanks for causing me to not be lazy and to look a little deeper.  I found the following per-network endpoint to provide what I was looking for.  I started with no filters and the default timespan of 1 day, but this gets just Wireless clients for the past hour and provides the per-Wireless client data usage for the related SSID and AP.  With this I can group and sum the data per AP and per SSID.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.cisco.com/meraki/api/get-network-clients/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api/get-network-clients/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I wish this were a per Org Call so I could get it more often or if the syslog would write the SSID connection information, so I could get this without any API calls.  Please let me know if you/anyone might know of a more API efficient way to get this information.  Thanks again.&lt;BR /&gt;&lt;BR /&gt;curl -L --request GET \&lt;BR /&gt;--url '&lt;A href="https://api.meraki.com/api/v1/networks/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/networks/&lt;/A&gt;[&lt;STRONG&gt;networkId&lt;/STRONG&gt;]/clients?timespan=&lt;STRONG&gt;3600&lt;/STRONG&gt;&amp;amp;recentDeviceConnections[]=&lt;STRONG&gt;Wireless&lt;/STRONG&gt;' \&lt;BR /&gt;--header 'Authorization: Bearer [&lt;STRONG&gt;API Key&lt;/STRONG&gt;]' \&lt;BR /&gt;--header 'Accept: application/json'&lt;BR /&gt;&lt;BR /&gt;Example response for one of the many clients (I anonymized the Client PII)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;"id":"abc123",&lt;BR /&gt;"mac":"[Client MAC ]",&lt;BR /&gt;"description":"[Client Description]",&lt;BR /&gt;"ip":"[Client IPv4 Address]",&lt;BR /&gt;"ip6":null,"ip6Local":"[Client IPv6 Address]",&lt;BR /&gt;"user":null,&lt;BR /&gt;"firstSeen":"2023-12-07T18:14:25Z",&lt;BR /&gt;"lastSeen":"2023-12-08T04:15:21Z",&lt;BR /&gt;"manufacturer":null,&lt;BR /&gt;"os":"Apple iPhone",&lt;BR /&gt;"deviceTypePrediction":null,&lt;BR /&gt;"&lt;STRONG&gt;recentDeviceSerial&lt;/STRONG&gt;":"[Meraki AP Serial Number]",&lt;BR /&gt;"recentDeviceName":"[Meraki AP Name]",&lt;BR /&gt;"recentDeviceMac":"[Meraki AP MAC]",&lt;BR /&gt;"recentDeviceConnection":"Wireless",&lt;BR /&gt;"&lt;STRONG&gt;ssid&lt;/STRONG&gt;":"[SSID Name]",&lt;BR /&gt;"vlan":"28",&lt;BR /&gt;"switchport":null,&lt;BR /&gt;"&lt;STRONG&gt;usage&lt;/STRONG&gt;":{"sent":791,"recv":1470,"total":2261},&lt;BR /&gt;"status":"Online",&lt;BR /&gt;"notes":null,&lt;BR /&gt;"groupPolicy8021x":null,&lt;BR /&gt;"adaptivePolicyGroup":null,&lt;BR /&gt;"smInstalled":false,&lt;BR /&gt;"namedVlan":null,&lt;BR /&gt;"pskGroup":null},&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 04:40:57 GMT</pubDate>
    <dc:creator>Prodrick</dc:creator>
    <dc:date>2023-12-08T04:40:57Z</dc:date>
    <item>
      <title>Client count by SSID per AP</title>
      <link>https://community.cisco.com/t5/network-platform-api/client-count-by-ssid-per-ap/m-p/5397154#M1</link>
      <description>&lt;P&gt;I’d like to be able to get the current client count for a given AP grouped by SSID Name. Thoughts on which API endpoints might provide this info?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 01:43:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/client-count-by-ssid-per-ap/m-p/5397154#M1</guid>
      <dc:creator>Prodrick</dc:creator>
      <dc:date>2023-12-08T01:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Client count by SSID per AP</title>
      <link>https://community.cisco.com/t5/network-platform-api/client-count-by-ssid-per-ap/m-p/5397155#M2</link>
      <description>&lt;P&gt;Have you checked the dashboard API?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 01:57:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/client-count-by-ssid-per-ap/m-p/5397155#M2</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2023-12-08T01:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Client count by SSID per AP</title>
      <link>https://community.cisco.com/t5/network-platform-api/client-count-by-ssid-per-ap/m-p/5397156#M3</link>
      <description>&lt;P&gt;You can use the endpoint GET /devices/{serial}/clients to retrieve the clients connected to a specific device by its serial number. You can then filter and group this data by SSID.&lt;/P&gt;&lt;P&gt;Another useful endpoint could be GET /devices/{serial}/wireless/connectionStats which provides connection statistics for a device. You can specify a timespan to get recent data.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 02:02:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/client-count-by-ssid-per-ap/m-p/5397156#M3</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2023-12-08T02:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Client count by SSID per AP</title>
      <link>https://community.cisco.com/t5/network-platform-api/client-count-by-ssid-per-ap/m-p/5397157#M4</link>
      <description>&lt;P&gt;&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/51406"&gt;@alessandrodematos&lt;/A&gt; thanks for causing me to not be lazy and to look a little deeper.  I found the following per-network endpoint to provide what I was looking for.  I started with no filters and the default timespan of 1 day, but this gets just Wireless clients for the past hour and provides the per-Wireless client data usage for the related SSID and AP.  With this I can group and sum the data per AP and per SSID.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.cisco.com/meraki/api/get-network-clients/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api/get-network-clients/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I wish this were a per Org Call so I could get it more often or if the syslog would write the SSID connection information, so I could get this without any API calls.  Please let me know if you/anyone might know of a more API efficient way to get this information.  Thanks again.&lt;BR /&gt;&lt;BR /&gt;curl -L --request GET \&lt;BR /&gt;--url '&lt;A href="https://api.meraki.com/api/v1/networks/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/networks/&lt;/A&gt;[&lt;STRONG&gt;networkId&lt;/STRONG&gt;]/clients?timespan=&lt;STRONG&gt;3600&lt;/STRONG&gt;&amp;amp;recentDeviceConnections[]=&lt;STRONG&gt;Wireless&lt;/STRONG&gt;' \&lt;BR /&gt;--header 'Authorization: Bearer [&lt;STRONG&gt;API Key&lt;/STRONG&gt;]' \&lt;BR /&gt;--header 'Accept: application/json'&lt;BR /&gt;&lt;BR /&gt;Example response for one of the many clients (I anonymized the Client PII)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;"id":"abc123",&lt;BR /&gt;"mac":"[Client MAC ]",&lt;BR /&gt;"description":"[Client Description]",&lt;BR /&gt;"ip":"[Client IPv4 Address]",&lt;BR /&gt;"ip6":null,"ip6Local":"[Client IPv6 Address]",&lt;BR /&gt;"user":null,&lt;BR /&gt;"firstSeen":"2023-12-07T18:14:25Z",&lt;BR /&gt;"lastSeen":"2023-12-08T04:15:21Z",&lt;BR /&gt;"manufacturer":null,&lt;BR /&gt;"os":"Apple iPhone",&lt;BR /&gt;"deviceTypePrediction":null,&lt;BR /&gt;"&lt;STRONG&gt;recentDeviceSerial&lt;/STRONG&gt;":"[Meraki AP Serial Number]",&lt;BR /&gt;"recentDeviceName":"[Meraki AP Name]",&lt;BR /&gt;"recentDeviceMac":"[Meraki AP MAC]",&lt;BR /&gt;"recentDeviceConnection":"Wireless",&lt;BR /&gt;"&lt;STRONG&gt;ssid&lt;/STRONG&gt;":"[SSID Name]",&lt;BR /&gt;"vlan":"28",&lt;BR /&gt;"switchport":null,&lt;BR /&gt;"&lt;STRONG&gt;usage&lt;/STRONG&gt;":{"sent":791,"recv":1470,"total":2261},&lt;BR /&gt;"status":"Online",&lt;BR /&gt;"notes":null,&lt;BR /&gt;"groupPolicy8021x":null,&lt;BR /&gt;"adaptivePolicyGroup":null,&lt;BR /&gt;"smInstalled":false,&lt;BR /&gt;"namedVlan":null,&lt;BR /&gt;"pskGroup":null},&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 04:40:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/client-count-by-ssid-per-ap/m-p/5397157#M4</guid>
      <dc:creator>Prodrick</dc:creator>
      <dc:date>2023-12-08T04:40:57Z</dc:date>
    </item>
  </channel>
</rss>

