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

# JavaScript client library for the InfluxDB v2 API

### 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) for Node.js and browsers integrates with the InfluxDB v2 API to write data to an InfluxDB cluster.

### [JavaScript for browsers](/influxdb3/clustered/reference/client-libraries/v2/javascript/browser/)

Use the InfluxDB v2 JavaScript client library in browsers and front-end clients to write data to an InfluxDB Clustered database.

### [Node.js](/influxdb3/clustered/reference/client-libraries/v2/javascript/nodejs/)

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

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