---
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 Serverless bucket.
url: https://docs.influxdata.com/influxdb3/cloud-serverless/reference/client-libraries/v2/javascript/nodejs/
estimated_tokens: 483
product: InfluxDB Cloud Serverless
version: cloud-serverless
---

# 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 Serverless cluster.

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

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

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 InfluxDB Cloud Serverless.

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

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

Install the Node.js JavaScript client library to write data to InfluxDB Cloud Serverless.

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

The JavaScript client library integrates with Node.js applications to write data to an InfluxDB Cloud Serverless bucket.
