Are you specifically looking for an API way to do this? If not you can also get the info from the client summary page by filtering on wireless clients, enabled the connected to column, and then export to csv.
Ryan / Meraki SE If you found this post helpful, please give it
Kudos. If my answer solved your problem click
Accept as Solution so others can benefit from it.