---
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 Cloud Dedicated database.
url: https://docs.influxdata.com/influxdb3/cloud-dedicated/reference/client-libraries/v2/javascript/nodejs/
estimated_tokens: 485
product: InfluxDB Cloud Dedicated
version: cloud-dedicated
---

# 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 Cloud Dedicated cluster.

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

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

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 Cloud Dedicated database.

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

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

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

### [Write data](/influxdb3/cloud-dedicated/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.
