The API-call will be always the same. The only difference is, if you issue the command once, or if you iterate through a list of networks and issue the command each time.
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.