InfluxDB 3 API client libraries
Client libraries for InfluxDB 3
InfluxDB 3 client libraries are language-specific packages that work with and integrate with your application to write to and query data in InfluxDB Clustered. InfluxData and the user community maintain client libraries for developers who want to take advantage of:
- Idioms for InfluxDB requests, responses, and errors.
- Common patterns in a familiar programming language.
- Faster development and less boilerplate code.
InfluxDB client libraries provide configurable batch writing of data to InfluxDB HTTP APIs. They can be used to construct line protocol data and transform data from other formats to line protocol.
InfluxDB 3 client libraries can query InfluxDB 3 using InfluxDB 3’s IOx-specific Arrow Flight protocol with gRPC. Client libraries use Flight clients to execute SQL and InfluxQL queries, request database information, and retrieve data stored in InfluxDB Clustered.
Additional features may vary among client libraries.
For specifics about a client library, see the library’s GitHub repository. InfluxDB 3 client libraries are part of the Influx Community.
C# .NET
The InfluxDB 3 influxdb3-csharp
C# .NET client library integrates with C# .NET scripts and applications to write and query data stored in an InfluxDB Clustered database.
Go
The InfluxDB 3 influxdb3-go
Go client library integrates with Go scripts and applications to write and query data stored in an database.
Java
The InfluxDB 3 influxdb3-java
Java client library integrates with application code to write and query data stored in an InfluxDB Clustered database.
JavaScript
The InfluxDB 3 influxdb3-js
JavaScript client library integrates with JavaScript scripts and applications to write and query data stored in an InfluxDB Clustered database.
Python
The InfluxDB 3 influxdb3-python
Python client library integrates with Python scripts and applications to write and query data stored in an InfluxDB Clustered database.
# Example: Write and query data
# Write sensor data in batches from a CSV file to a database
client.write_file(file='./data/home-sensor-data.csv',
timestamp_column='time',
tag_columns=["room"])
# Execute a query and retrieve data from the last 90 days
table = client.query(
'''SELECT *
FROM home
WHERE time >= now() - INTERVAL '90 days'
ORDER BY time''')
# This script assumes the client object is correctly configured
# with your database name, token, and host URL.
# After the script runs, the table variable contains the data
# formatted as a PyArrow table.
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB Clustered and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.