Skip to main content

Can I use API in NodeJS?

Yes, definitely! Here is a quick guide on how to start your adventure with UmamiAI API in NodeJS.

Installation​

Is it already installed?​

Before using an API in NodeJS, you need to ensure that NodeJS is installed on your system. The simplest way is to run a terminal and execute the following command:

node --version

If this command prints a NodeJS version, then you can proceed to the example article. If not, you need to install NodeJS on your system. The installation steps depend on your operating system, but here are some quick instructions to get you started:

On Windows / Mac​

Install the NodeJS package from the official distribution site. It is preferable to choose the LTS version, but it all depends on your project.

On Linux​

The installation process depends on your distribution. For example, on Ubuntu, you can use the following command to install version 20:

curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -

Using​

Test your installation and you can proceed with the tutorial on the quickstart page.