API requests in Run Code

Is it possible to send API requests in the Run Code action node, e.g. using the node-module fs? Or another library?

node-modules like fs are not available. Run Code runs client side and you have the possibility to use whatever is available in the browser, such as the Request interface of the Fetch API: