Does Node-RED have an API?
Runtime APIs
It is used by the Node-RED Editor and command-line admin tool. The Hooks API provides a way to insert custom code into certain key points of the runtime operation. This API provides a pluggable way to configure where the Node-RED runtime stores data.
How do I call an API in node?
Assuming you have Node. js installed, you should be able to run the script using the following command: node api-call . That will execute the JavaScript file using the Node. js runtime.