# Can I use API in NodeJS?

Yes, definitely! Here is a quick guide on how to start your adventure with AI/ML 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:

```bash
node --version
```

If this command prints a NodeJS version, then you can proceed to the [example article](https://github.com/aimlapi/api-docs/blob/main/broken/pages/ngeSCZKxiGVWqYZTHDjY/README.md#example-in-node.js). 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](https://nodejs.org/en). 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:

```bash
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](broken://pages/ngeSCZKxiGVWqYZTHDjY) page.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aimlapi.com/faq/can-i-use-api-in-nodejs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
