To identify the zookeeper leader, I can use the below command in CLI.
$echo stat | nc zk_hostname 2181 | grep Mode
Is it possible to achieve this using REST API calls?
Have a look at this Github for zookeeper REST API's
Any updates did this article help you ?