import meraki
API_KEY = '<YOURAPIKEY>'
client = meraki.DashboardAPI(API_KEY)
networks = client.organizations.getOrganizationNetworks(organizationId="<YOURORG>")
clientNum = 0
for network in networks:
try:
clients = client.networks.getNetworkClients(networkId=network['id'])
print(len(clients))
clientNum = clientNum + len(clients)
except meraki.APIError as e:
result = 'fail'
print("Total Clients", str(clientNum))
There's no ORG wide API call presently for network clients, so you'll have to cycle through each network
Replace <YOURAPIKEY> and <YOURORG>