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

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

Learn more

InfluxDB Client Library documentation

Documentation to help you get started with the Client Libraries

Learn more
fish icon

Try the client libraries with InfluxDB