---
title: Node.js JavaScript client library
description: The InfluxDB v2 JavaScript client library for Node.js integrates with the InfluxDB v2 API to write data to an InfluxDB Clustered database.
url: https://docs.influxdata.com/influxdb3/clustered/reference/client-libraries/v2/javascript/nodejs/
estimated_tokens: 526
product: InfluxDB Clustered
version: clustered
---

# Node.js JavaScript client library

### Use InfluxDB 3 clients

The `/api/v2/query` API endpoint and associated tooling, such as InfluxDB v2 client libraries and the `influx` CLI, **can’t** query an InfluxDB cluster.

[InfluxDB 3 client libraries](/influxdb3/clustered/client-libraries/v3/) are available that integrate with your code to write and query data stored in InfluxDB Clustered.

InfluxDB 3 supports many different tools for [**writing**](/influxdb3/clustered/write-data/) and [**querying**](/influxdb3/clustered/query-data/) data. [**Compare tools you can use**](/influxdb3/clustered/get-started/#tools-to-use) to interact with InfluxDB Clustered.

The [InfluxDB v2 JavaScript client library](https://github.com/influxdata/influxdb-client-js) integrates with the InfluxDB v2 API to write data from Node.js and browser applications to an InfluxDB Clustered database.

## Use the client library in a Node.js application

### [Install the InfluxDB v2 JavaScript client library](/influxdb3/clustered/reference/client-libraries/v2/javascript/nodejs/install/)

Install the Node.js JavaScript client library to write data to an InfluxDB Clustered database.

### [Write data](/influxdb3/clustered/reference/client-libraries/v2/javascript/nodejs/write/)

The InfluxDB v2 JavaScript client library integrates with Node.js applications to write data to the InfluxDB v2 API.

[client libraries](/influxdb3/clustered/tags/client-libraries/) [JavaScript](/influxdb3/clustered/tags/javascript/) [NodeJS](/influxdb3/clustered/tags/nodejs/)
