The Meraki Dashboard API doesn’t directly expose the gateway IP used by MX for WAN1/WAN2 (only the public IPs, uplink status, and interface config are exposed).
You can use the following APIs:
GET /devices/{serial}/uplink
It returns IP address, public IP, interface type (WAN1 or WAN2), and status (active/inactive/failover). It does not include gateway IP used by ISP, unfortunately.
GET /networks/{networkId}/appliance/uplink/settings
You’ll get static IP configuration (if configured), possibly including gateway, IP, subnet, DNS. You can monitor which WAN is Up/Down with this same Meraki API.
You can aso script it (Python, PowerShell, etc.) to check WAN status for many devices at once, and,y es, Splunk can help visualize and alert on Meraki data.
You’ll need splunk Meraki Add-On. The Add-on itself is free on Splunkbase. But Splunk Enterprise or Splunk Cloud may incur licensing costs depending on how much data you ingest.
From Meraki side, you do not need to purchase anything additional, it uses your existing API key.
https://splunkbase.splunk.com/app/5580
https://documentation.meraki.com/General_Administration/Cross-Platform_Content/Cisco_Meraki_Add-on_f...
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.