Hi,
Currently Wix Code does not support require for node modules.
However, if you get the right code for using the API (maybe through github or some other code sharing platform) you can copy and paste the code to wix code editor (and create a module under ‘public’).
Hop this helps,
Liran.