Hi,
I am new to Meraki and to the Dashboard API. I am trying to ascertain whether I am using the Dashboard API correctly or not. I need to get the status of all access points and switches in an organization. Currently this is how I approach it:
I have two questions to the above approach:
Regards,
Bjørn
Solved! Go to solution.
Once you've got your initial status of devices, if you are then looking for alerts on those devices you could look at using Webhooks (https://documentation.meraki.com/zGeneral_Administration/Other_Topics/Webhooks) so that you don't exceed the API rate limit - just depends on what the goal of your solution is.
In cases like this, your only option is to make a lot of separate API calls. To avoid the API request limit, you can use a rate limiter. For example, I sometimes use the throttled-request package with Node.js.
Remember that the rate limit applies at the organization level. If you have any other integrations or tasks using the API, you need to consider the total usage.
Using the first two letters of the model to determine the device type seems good enough for now.
Once you've got your initial status of devices, if you are then looking for alerts on those devices you could look at using Webhooks (https://documentation.meraki.com/zGeneral_Administration/Other_Topics/Webhooks) so that you don't exceed the API rate limit - just depends on what the goal of your solution is.