01-02-2024 08:01 AM
Hello,
For reporting automation purpose, I am trying to fetch the data from the Meraki API.
I would like to get the values that is used to plot the graph visible on a switch, for a specific port. On the dashboard it is labelled as "Historical Data / Port Traffic".
Looking at the Network tab of the inspector of elements, it use the values from the "/manage/nodes/show_switchport_graph_data" endpoints for the dashboard.
However, for the API I have been using the "https://api.meraki.com/api/v1/networks/{networkId}/clients/{clientId}/usageHistory" but the data doesn't seems to correlate.
Do you have any idea on what API route I have to use to get the kpbs values shown on the dashboard ?
Thank you.
Solved! Go to Solution.
01-03-2024 03:36 AM
Unfortunately, there is no API available for this.
The “/networks/{networkId}/clients/{clientId}/usageHistory” endpoint you are using provides usage history per client, which does not directly correlate with the port traffic data shown in the dashboard.
01-02-2024 08:05 AM
To give more details to my question, I am trying to fetch the information for this graph:
01-02-2024 03:09 PM
I believe for a switch port you would need to use this API:
https://developer.cisco.com/meraki/api-v1/get-device-switch-ports-statuses-packets/
01-03-2024 12:37 AM
Hello,
Thank you for your answer! 😊
I don't think it is what I am looking for.
I would like to get the daily port traffic on a specific port on a monthly timespan.
01-03-2024 03:36 AM
Unfortunately, there is no API available for this.
The “/networks/{networkId}/clients/{clientId}/usageHistory” endpoint you are using provides usage history per client, which does not directly correlate with the port traffic data shown in the dashboard.
01-03-2024 05:49 AM
Thank you for your answer.
Do you know if there's a way to ask that feature in the API ?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide