# Installation

## Getting Started

### Requirements

* [Node.js](https://nodejs.org/en/download/)

### Installation

{% tabs %}
{% tab title="npm" %}

```shell
npm install --save @altura/altura-js
```

{% endtab %}

{% tab title="yarn" %}

```shell
yarn add @altura/altura-js
```

{% endtab %}
{% endtabs %}

**That's it!** You have successfully installed the Altura SDK.

### Importing

To use the Altura SDK in your code, you need to import it as follows.

```javascript
const { Altura } = require("@altura/altura-js")

const altura = new Altura(API_KEY); // API_KEY is optional
```

{% hint style="info" %}
Adding an API key will allow you to use all the methods available in the SDK. Omitting an API key will only allow you to use the get methods&#x20;
{% endhint %}


---

# 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.altura.com/altura-documentation/js-sdk-reference/installation.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.
