How do I get the analytics from camera Traffic counters via API?

Solved
AvoJon
New here

How do I get the analytics from camera Traffic counters via API?

Sorry if this is an easy answer, but I'm having a very hard time finding the information on how I can go about getting our camera traffic counter data from the API.  Every time I think I have found something in the API docs, it shows as a deprecated endpoint.  Appreciate any help on this. 

1 Accepted Solution
AvoJon
New here

Thank you, I think I found this one previously but didn't understand how to go about finding the boundary ids.  😞 

View solution in original post

11 Replies 11
Oren
Meraki Employee All-Star Meraki Employee All-Star
Meraki Employee All-Star

For port counters, try getOrganizationSwitchPortsUsageHistoryByDeviceByInterval.
For WAN uplinks, try getOrganizationApplianceUplinksUsageByNetwork

Hopefully the search engine in the developer documentation will be able to help find the relevant operation. If not, you found the right place to ask that question 🙂 

AvoJon
New here

Thanks, sorry, I missed the 'camera' part of my question in the post I think.  🙂  It's the analytics traffic counter for cameras.  : )

Oren
Meraki Employee All-Star Meraki Employee All-Star
Meraki Employee All-Star

Context helps 🙂

I think it's this one: https://developer.cisco.com/meraki/api-v1/get-organization-camera-detections-history-by-boundary-by-...
I don't have much experience playing with it though.

AvoJon
New here

Thank you, I think I found this one previously but didn't understand how to go about finding the boundary ids.  😞 

Oren
Meraki Employee All-Star Meraki Employee All-Star
Meraki Employee All-Star
AvoJon
New here

Thank you so much!  I found this also because I wasn't familiar with sending arrays as query params so I will add it in case anyone else needs it, thanks again @Oren !  

https://community.meraki.com/t5/Developers-APIs/quot-errors-quot-quot-serials-must-be-an-array-quot/...

Oren
Meraki Employee All-Star Meraki Employee All-Star
Meraki Employee All-Star

Arrays in URLs are annoying... we added a note in our documentation, and we're looking for ways to make it clearer.

AvoJon
New here

Thanks any chance you have an example of how to send the array of objects handy (for the date range params)?  I'm not finding that in the page you sent and my friend GPT is struggling as well.  🙂   

Oren
Meraki Employee All-Star Meraki Employee All-Star
Meraki Employee All-Star
AvoJon
New here

Many thanks again!  That was what my robot friend needed.  lol  🙂 

Oren
Meraki Employee All-Star Meraki Employee All-Star
Meraki Employee All-Star

Good luck!

Get notified when there are additional replies to this discussion.