Meraki API Postman for Newbie

Cliff92
New here

Meraki API Postman for Newbie

Hello,

 

I am new to pulling data from Meraki's API and looking for some guidance. I'm looking to pull some data from our APs, specifically looking to get the mac addresses connected to an AP during a specific 2-hour period. Does anyone know what GET command would allow me to do this? 

 

I found the GET command that will let me input a set of mac addresses (clients) to confirm if it was connected during a certain period since this method also is a solution to my problem. But I keep getting [] in the output whenever I put it in Postman. 

 

https://developer.cisco.com/meraki/api-latest/#!get-network-wireless-client-connectivity-events

 

 

4 Replies 4
alemabrahao
Kind of a big deal
Kind of a big deal

Have you tried this one?

 

https://developer.cisco.com/meraki/api-latest/#!get-network-wireless-client-connection-stats

 

Can you share the postman error?

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
alemabrahao
Kind of a big deal
Kind of a big deal

By the way you can also test it on developer cisco.

 

 

alemabrahao_0-1670949390682.png

 

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Cliff92
New here

The error I get in postman is [ ], I also get the same error in the web portal you linked. As far as your solution, that does work for me but it doesn't provide what AP the mac address is connected to during that time period. 

 

I would like to get mac address in a 2-hour window and what AP they were connected to during that time period. 

ShawnHu
Meraki Employee
Meraki Employee

@Cliff92I assume you meant the endpoint returned an empty list ([]), but the call was successful.

Please try the following endpoints to get the client info for a specific Meraki device or a network. 

 

https://developer.cisco.com/meraki/api-latest/#!get-device-clients

https://developer.cisco.com/meraki/api-latest/#!get-network-client

https://developer.cisco.com/meraki/api-latest/#!get-network-clients  --> Filters are available for querying specific clients such as wireless or online clients.

 

For a given network, here is an example of retrieving wireless clients for the last 2 hours connected to the network.

{{baseUrl}}/networks/:networkId/clients?timespan=7200&recentDeviceConnections[]=Wireless

Get notified when there are additional replies to this discussion.