node.js api sample