InfluxDB Client Libraries

Integrate your tech stack, framework, or platform with InfluxDB Client Libraries.

Why use the InfluxDB Client Libraries?

InfluxDB client libraries are language-specific packages that integrate with the InfluxDB API. Choose the languages that work best for you and your application development to work more efficiently with InfluxDB.

Read
Write
JavaScript Python Go PHP C#
const {InfluxDB, flux} = require('@influxdata/influxdb-client')

// const url = "https://us-west-2-1.aws.cloud2.influxdata.com";
const url = "http://localhost:9999";
const token = 'my-token'
const org = 'my-org'
const bucket = 'my-bucket'

const client = new InfluxDB({url: url, token: token})
const queryApi = client.getQueryApi(org)

const query = flux`from(bucket: "${bucket}") 
  |> range(start: -1d)
  |> filter(fn: (r) => r._measurement == "weatherstation")`
queryApi.queryRows(query, {
    next(row, tableMeta) {
        const o = tableMeta.toObject(row)
        console.log(`${o._time} ${o._measurement}: ${o._field}=${o._value}`)
    },
    error(error) {
        console.error(error)
        console.log('Finished ERROR')
    },
    complete() {
        console.log('Finished SUCCESS')
    },
})
c
c
c
c
c
c
c
c
c
c
Client Library Diagram

Why use the InfluxDB Client Libraries?

Key capabilities

Write data

InfluxDB offers 14 client libraries that enable you to write data into your InfluxDB using Line Protocol, or data point format. Improve data ingestion efficiency using chunks of batch data or the ‘automatic retries on write failures’ feature.

Query data

Wield complete control over your data with Flux, InfluxDB’s functional data scripting language, and in combination with your preferred client library. Flux is optimized for ETL, monitoring, and alerting, with an inline planner and optimizer.

Manage your instance

Use the client library to manage your entire InfluxDB instance from within your application. Manage things like your data sources, buckets, tasks, authorizations, health checks, and more.

Time to Awesome Demo of the Client Libraries and InfluxDB

Resources

InfluxDB OSS API Service documentation

Documentation to help you get started with the InfluxDB API

InfluxDB Client Library documentation

Documentation to help you get started with the Client Libraries

community-new

Community Forums

Community forum on the InfluxDB Client Libraries

Scroll to Top