@pkempia there are Rest APIs behind Monitoring's dashboard; however, they aren't publicly supported/documented. It's theoretically possible for you to use your browser to inspect the network requests that are made by the monitoring dashboard and reverse-engineer these; however, the data returned changes rather frequently between different versions so some due-diligence will be required to keep up with this.
With that being said, it's worth reiterating that these are unsupported APIs and they may change/be-removed at any point in time.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.