---
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 Core database.
url: https://docs.influxdata.com/influxdb3/enterprise/reference/client-libraries/v2/javascript/nodejs/
estimated_tokens: 532
product: InfluxDB 3 Enterprise
version: enterprise
---

# Node.js JavaScript client library

#### Use InfluxDB 3 clients to query

InfluxDB 3 supports [compatibility endpoints for *writing data*](/influxdb3/enterprise/write-data/compatibility-apis/) using InfluxDB v2 and v1 tools. However, the `/api/v2/query` API endpoint and associated tooling, such as InfluxDB v2 client libraries and the `influx` CLI, *can’t query* data stored in InfluxDB 3 Enterprise.

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

[**Compare tools you can use**](/influxdb3/enterprise/get-started/#tools-to-use) to interact with InfluxDB 3 Enterprise.

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 3 Enterprise database.

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

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

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

### [Write data](/influxdb3/enterprise/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/enterprise/tags/client-libraries/) [JavaScript](/influxdb3/enterprise/tags/javascript/) [NodeJS](/influxdb3/enterprise/tags/nodejs/)
