Regarding detector api

Hi,

I’m new here.
I have some problem initiating a detector (not all of them).
It may quite simple question but I don’t have any clue on it.

I want to know how to use the Anomaly Detection API to retrieve some data for the node.
What should I put section?

GET _opendistro/_anomaly_detection/<nodeId>/stats/<stat> 
GET _opendistro/_anomaly_detection/stats/<stat>

Thanks in advance.

[moved to the machine learning category]

Suggest to run GET /_opendistro/_anomaly_detection/stats first, it will return all stats data on all nodes, then you can choose specific node id and stat name to get stats data on that node with
GET _opendistro/_anomaly_detection/<nodeId>/stats/<stat>