How I can access Elasticsearch API using java sciript

Hi Experts,

I just need a start , actually I am totally new to java scripting and I want to connect to Elasticsearch API to show cluster health on my html page . I know for this we have lots of plugins available which can show cluster health like head, kopf etc but I want to create my own HTML page .I want to show something like.

Cluster name
Number of nodes
Number of data nodes
Active primary shards
Active shards
Relocating shards
Initializing shards
Unassigned shards
Any help on this will be greatly appreciated. Thanks in advance
VG

Hi, we have an official javascript client over at Github with a lot of documentation on getting started. Hope you find it useful.