InfluxDB3.Client 1.6.0-dev.2735

This is a prerelease version of InfluxDB3.Client.
There is a newer version of this package available.
See the version list below for details.
dotnet add package InfluxDB3.Client --version 1.6.0-dev.2735
                    
NuGet\Install-Package InfluxDB3.Client -Version 1.6.0-dev.2735
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="InfluxDB3.Client" Version="1.6.0-dev.2735" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="InfluxDB3.Client" Version="1.6.0-dev.2735" />
                    
Directory.Packages.props
<PackageReference Include="InfluxDB3.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add InfluxDB3.Client --version 1.6.0-dev.2735
                    
#r "nuget: InfluxDB3.Client, 1.6.0-dev.2735"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package InfluxDB3.Client@1.6.0-dev.2735
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=InfluxDB3.Client&version=1.6.0-dev.2735&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=InfluxDB3.Client&version=1.6.0-dev.2735&prerelease
                    
Install as a Cake Tool

<p align="center"> <img src="net_logo.svg" alt=".NET Logo" width="150px"> </p> <p align="center"> <a href="https://www.nuget.org/packages/InfluxDB3.Client"> <img src="https://buildstats.info/nuget/InfluxDB3.Client" alt="NuGet Badge"> </a> <a href="https://influxcommunity.github.io/influxdb3-csharp/"> <img src="https://img.shields.io/badge/-docfx-blue?logo=csharp&logoColor=white" alt="docfx"> </a> <a href="https://github.com/InfluxCommunity/influxdb3-csharp/actions/workflows/codeql-analysis.yml"> <img src="https://github.com/InfluxCommunity/influxdb3-csharp/actions/workflows/codeql-analysis.yml/badge.svg?branch=main" alt="CodeQL analysis"> </a> <a href="https://github.com/InfluxCommunity/influxdb3-csharp/actions/workflows/linter.yml"> <img src="https://github.com/InfluxCommunity/influxdb3-csharp/actions/workflows/linter.yml/badge.svg" alt="Lint Code Base"> </a> <a href="https://dl.circleci.com/status-badge/redirect/gh/InfluxCommunity/influxdb3-csharp/tree/main"> <img src="https://dl.circleci.com/status-badge/img/gh/InfluxCommunity/influxdb3-csharp/tree/main.svg?style=svg" alt="CircleCI"> </a> <a href="https://codecov.io/gh/InfluxCommunity/influxdb3-csharp"> <img src="https://codecov.io/gh/InfluxCommunity/influxdb3-csharp/branch/main/graph/badge.svg" alt="Code Cov"/> </a> <a href="https://app.slack.com/huddle/TH8RGQX5Z/C02UDUPLQKA"> <img src="https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social" alt="Community Slack"> </a> </p>

InfluxDB 3 C# .NET Client

The C# .NET client that provides an easy and convenient way to interact with InfluxDB 3. This package supports both writing data to InfluxDB and querying data using the FlightSQL client, which allows you to execute SQL queries against InfluxDB IOx.

We offer this Getting Started: InfluxDB 3.0 C# Client Library video to learn more about the library.

Installation

Add the latest version of the client to your project:

dotnet add package InfluxDB3.Client

Usage

To start with the client, import the InfluxDB3.Client package and create a InfluxDBClient by constructor initializer:

using System.Threading.Tasks;
using InfluxDB3.Client;
using InfluxDB3.Client.Write;

namespace InfluxDB3.Examples.IOx;

public class IOxExample
{
    static async Task Main(string[] args)
    {
        const string host = "https://us-east-1-1.aws.cloud2.influxdata.com";
        const string token = "my-token";
        const string database = "my-database";

        using var client = new InfluxDBClient(host, token: token, database: database);
    }
}

to insert data, you can use code like this:

//
// Write by Point
//
var point = PointData.Measurement("temperature")
    .SetTag("location", "west")
    .SetField("value", 55.15)
    .SetTimestamp(DateTime.UtcNow.AddSeconds(-10));
await client.WritePointAsync(point: point);

//
// Write by LineProtocol
//
const string record = "temperature,location=north value=60.0";
await client.WriteRecordAsync(record: record);

to query your data, you can use code like this:

//
// Query by SQL
//
const string sql = "select time,location,value from temperature order by time desc limit 10";
Console.WriteLine("{0,-30}{1,-15}{2,-15}", "time", "location", "value");
await foreach (var row in client.Query(query: sql))
{
    Console.WriteLine("{0,-30}{1,-15}{2,-15}", row[0], row[1], row[2]);
}
Console.WriteLine();

//
// Query by parametrized SQL
//
const string sqlParams = "select time,location,value from temperature where location=$location order by time desc limit 10";
Console.WriteLine("Query by parametrized SQL");
Console.WriteLine("{0,-30}{1,-15}{2,-15}", "time", "location", "value");
await foreach (var row in client.Query(query: sqlParams, namedParameters: new Dictionary<string, object> { { "location", "west" } }))
{
    Console.WriteLine("{0,-30}{1,-15}{2,-15}", row[0], row[1], row[2]);
}
Console.WriteLine();

//
// Query by InfluxQL
//
const string influxQL =
    "select MEAN(value) from temperature group by time(1d) fill(none) order by time desc limit 10";
Console.WriteLine("{0,-30}{1,-15}", "time", "mean");
await foreach (var row in client.Query(query: influxQL, queryType: QueryType.InfluxQL))
{
    Console.WriteLine("{0,-30}{1,-15}", row[1], row[2]);
}

gRPC Compression

The client uses gRPC for querying data from InfluxDB 3.

Request Compression

Request compression is not supported by InfluxDB 3 — the client sends uncompressed requests.

Response Compression

By default, the client advertises support for gzip compression and the server may compress responses. The client handles decompression automatically.

To disable response compression, set DisableGrpcCompression to true:

using var client = new InfluxDBClient(new ClientConfig
{
    Host = "https://us-east-1-1.aws.cloud2.influxdata.com",
    Token = "my-token",
    Database = "my-database",
    QueryOptions = new QueryOptions
    {
        DisableGrpcCompression = true
    }
});

Alternatively, use the INFLUX_DISABLE_GRPC_COMPRESSION environment variable:

export INFLUX_DISABLE_GRPC_COMPRESSION=true

Or use the connection string parameter:

using var client = new InfluxDBClient("https://us-east-1-1.aws.cloud2.influxdata.com?token=my-token&database=my-database&disableGrpcCompression=true");

Feedback

If you need help, please use our Community Slack or Community Page.

New features and bugs can be reported on GitHub: https://github.com/InfluxCommunity/influxdb3-csharp

Contribution

If you would like to contribute code you can do through GitHub by forking the repository and sending a pull request into the main branch.

License

The InfluxDB 3 C# .NET Client is released under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on InfluxDB3.Client:

Package Downloads
Dijing.InfluxdbExt

influxdb2.0 extension tool

Zongsoft.Data.Influx

This is a data driver for InfluxDB of the Zongsoft data engine.

VL.IO.InfluxDB

VL Wrapper for the InfluxDB 3 C# .NET Client

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.7.0-dev.3212 0 1/28/2026
1.7.0-dev.3171 25 1/27/2026
1.7.0-dev.3160 24 1/27/2026
1.7.0-dev.3084 33 1/26/2026
1.7.0-dev.3048 34 1/21/2026
1.7.0-dev.3032 36 1/21/2026
1.7.0-dev.3025 39 1/20/2026
1.7.0-dev.3015 38 1/19/2026
1.7.0-dev.2998 43 1/19/2026
1.7.0-dev.2993 40 1/18/2026
1.7.0-dev.2987 47 1/17/2026
1.7.0-dev.2975 39 1/16/2026
1.7.0-dev.2970 41 1/16/2026
1.7.0-dev.2964 40 1/16/2026
1.7.0-dev.2953 41 1/16/2026
1.7.0-dev.2941 41 1/16/2026
1.7.0-dev.2926 40 1/16/2026
1.7.0-dev.2920 47 1/15/2026
1.7.0-dev.2868 45 1/14/2026
1.7.0-dev.2857 43 1/14/2026
1.7.0-dev.2851 43 1/14/2026
1.7.0-dev.2845 46 1/14/2026
1.7.0-dev.2834 37 1/14/2026
1.7.0-dev.2823 45 1/14/2026
1.7.0-dev.2812 44 1/14/2026
1.7.0-dev.2806 43 1/13/2026
1.7.0-dev.2799 42 1/12/2026
1.7.0-dev.2794 42 1/11/2026
1.7.0-dev.2788 196 1/10/2026
1.7.0-dev.2782 50 1/9/2026
1.7.0-dev.2776 40 1/8/2026
1.6.0 738 1/8/2026
1.6.0-dev.2770 44 1/8/2026
1.6.0-dev.2763 42 1/8/2026
1.6.0-dev.2757 50 1/8/2026
1.6.0-dev.2741 41 1/7/2026
1.6.0-dev.2735 42 1/6/2026
1.6.0-dev.2730 53 1/5/2026
1.6.0-dev.2724 46 1/4/2026
1.6.0-dev.2718 42 1/3/2026
1.6.0-dev.2711 40 1/2/2026
1.6.0-dev.2706 38 1/2/2026
1.6.0-dev.2700 42 1/2/2026
1.6.0-dev.2679 47 1/2/2026
1.6.0-dev.2662 51 1/2/2026
1.6.0-dev.2657 43 1/2/2026
1.6.0-dev.2651 42 1/2/2026
1.6.0-dev.2645 45 1/2/2026
1.6.0-dev.2639 44 1/1/2026
1.6.0-dev.2633 46 12/31/2025
1.6.0-dev.2627 48 12/30/2025
1.6.0-dev.2620 52 12/29/2025
1.6.0-dev.2615 52 12/28/2025
1.6.0-dev.2608 48 12/27/2025
1.6.0-dev.2603 124 12/26/2025
1.6.0-dev.2597 131 12/25/2025
1.6.0-dev.2590 128 12/24/2025
1.6.0-dev.2585 126 12/23/2025
1.6.0-dev.2579 131 12/22/2025
1.6.0-dev.2572 75 12/21/2025
1.6.0-dev.2567 123 12/20/2025
1.6.0-dev.2561 223 12/19/2025
1.6.0-dev.2555 226 12/18/2025
1.6.0-dev.2549 219 12/17/2025
1.6.0-dev.2543 225 12/16/2025
1.6.0-dev.2526 176 12/15/2025
1.6.0-dev.2521 116 12/14/2025
1.6.0-dev.2514 74 12/13/2025
1.6.0-dev.2509 83 12/12/2025
1.6.0-dev.2503 374 12/11/2025
1.6.0-dev.2497 376 12/11/2025
1.6.0-dev.2491 393 12/10/2025
1.6.0-dev.2474 403 12/9/2025
1.6.0-dev.2469 256 12/8/2025
1.6.0-dev.2463 179 12/7/2025
1.6.0-dev.2457 112 12/6/2025
1.6.0-dev.2450 149 12/5/2025
1.6.0-dev.2445 162 12/4/2025
1.6.0-dev.2439 617 12/3/2025
1.6.0-dev.2433 622 12/2/2025
1.6.0-dev.2427 375 12/1/2025
1.6.0-dev.2421 74 11/30/2025
1.6.0-dev.2415 68 11/29/2025
1.6.0-dev.2409 135 11/28/2025
1.6.0-dev.2403 134 11/27/2025
1.6.0-dev.2391 144 11/25/2025
1.6.0-dev.2380 149 11/24/2025
1.6.0-dev.2374 116 11/23/2025
1.6.0-dev.2368 210 11/22/2025
1.6.0-dev.2362 357 11/21/2025
1.6.0-dev.2356 360 11/20/2025
1.6.0-dev.2350 360 11/19/2025
1.6.0-dev.2344 363 11/18/2025
1.5.0 4,101 11/18/2025
1.5.0-dev.2323 352 11/18/2025
1.5.0-dev.2317 359 11/18/2025
1.5.0-dev.2286 354 11/18/2025
1.5.0-dev.2269 353 11/18/2025
1.5.0-dev.2264 356 11/18/2025
1.5.0-dev.2253 366 11/18/2025
1.5.0-dev.2247 360 11/18/2025
1.5.0-dev.2241 355 11/18/2025
1.5.0-dev.2235 241 11/17/2025
1.5.0-dev.2229 99 11/16/2025
1.5.0-dev.2223 160 11/15/2025
1.5.0-dev.2217 232 11/14/2025
1.5.0-dev.2211 260 11/13/2025
1.5.0-dev.2205 246 11/12/2025
1.5.0-dev.2199 239 11/11/2025
1.5.0-dev.2193 169 11/10/2025
1.5.0-dev.2187 102 11/9/2025
1.5.0-dev.2181 82 11/8/2025
1.5.0-dev.2175 147 11/7/2025
1.5.0-dev.2169 151 11/6/2025
1.5.0-dev.2163 150 11/5/2025
1.5.0-dev.2157 159 11/4/2025
1.5.0-dev.2151 149 11/3/2025
1.5.0-dev.2145 98 11/2/2025
1.5.0-dev.2139 86 11/1/2025
1.5.0-dev.2133 148 10/31/2025
1.5.0-dev.2127 151 10/30/2025
1.5.0-dev.2120 154 10/29/2025
1.5.0-dev.2115 145 10/28/2025
1.5.0-dev.2104 157 10/27/2025
1.5.0-dev.2097 98 10/26/2025
1.5.0-dev.2092 71 10/25/2025
1.5.0-dev.2086 152 10/24/2025
1.5.0-dev.2080 138 10/23/2025
1.5.0-dev.2074 136 10/22/2025
1.5.0-dev.2068 129 10/21/2025
1.5.0-dev.2057 142 10/20/2025
1.5.0-dev.2051 82 10/19/2025
1.5.0-dev.2045 59 10/18/2025
1.5.0-dev.2038 129 10/17/2025
1.5.0-dev.2033 132 10/16/2025
1.5.0-dev.1992 1,042 9/19/2025
1.5.0-dev.1981 327 9/16/2025
1.5.0-dev.1960 232 9/15/2025
1.5.0-dev.1943 234 9/15/2025
1.5.0-dev.1938 243 9/15/2025
1.4.0 4,972 9/15/2025
1.4.0-dev.1932 235 9/15/2025
1.4.0-dev.1899 126 9/12/2025
1.4.0-dev.1815 212 9/10/2025
1.4.0-dev.1724 1,358 8/13/2025
1.4.0-dev.1720 168 8/12/2025
1.3.0 3,896 8/12/2025
1.3.0-dev.1694 175 8/4/2025
1.3.0-dev.1674 540 7/23/2025
1.3.0-dev.1664 184 7/3/2025
1.3.0-dev.1631 270 6/13/2025
1.3.0-dev.1621 275 6/13/2025
1.3.0-dev.1614 205 5/22/2025
1.3.0-dev.1610 169 5/22/2025
1.3.0-dev.1609 167 5/22/2025
1.2.0 27,147 5/22/2025
1.2.0-dev.1512 577 3/26/2025
1.1.0 6,208 3/26/2025
1.1.0-dev.1501 161 3/14/2025
1.1.0-dev.1441 162 1/28/2025
1.1.0-dev.1434 124 1/22/2025
1.0.0 10,595 1/22/2025
1.0.0-dev.1426 113 1/22/2025
1.0.0-dev.1419 117 1/22/2025
1.0.0-dev.1409 109 1/15/2025
1.0.0-dev.1399 126 1/7/2025
1.0.0-dev.1392 130 1/7/2025
1.0.0-dev.1386 119 1/7/2025
1.0.0-dev.1372 109 1/7/2025
1.0.0-dev.1356 122 1/7/2025
1.0.0-dev.1334 213 12/18/2024
0.9.0-dev.1320 130 12/16/2024
0.9.0-dev.1318 120 12/16/2024
0.9.0-dev.1288 139 12/9/2024
0.9.0-dev.1263 127 12/5/2024
0.9.0-dev.1250 104 11/26/2024
0.9.0-dev.1249 133 11/26/2024
0.9.0-dev.1236 121 11/18/2024
0.9.0-dev.1229 108 11/4/2024
0.9.0-dev.1222 116 10/22/2024
0.9.0-dev.1215 134 10/14/2024
0.9.0-dev.1208 131 10/7/2024
0.9.0-dev.1198 131 9/13/2024
0.8.0 11,233 9/13/2024
0.8.0-dev.1190 135 9/9/2024
0.8.0-dev.1183 126 9/9/2024
0.8.0-dev.1182 120 9/9/2024
0.8.0-dev.1166 121 9/3/2024
0.8.0-dev.1156 126 9/3/2024
0.8.0-dev.1149 134 9/3/2024
0.8.0-dev.1148 132 9/3/2024
0.8.0-dev.1103 127 8/12/2024
0.8.0-dev.1096 132 8/12/2024
0.7.0 6,696 8/12/2024
0.7.0-dev.1087 116 8/5/2024
0.7.0-dev.1068 129 8/5/2024
0.7.0-dev.1061 120 8/5/2024
0.7.0-dev.1054 110 8/5/2024
0.7.0-dev.1026 160 7/22/2024
0.7.0-dev.1019 137 7/15/2024
0.7.0-dev.1012 1,383 7/1/2024
0.7.0-dev.1008 124 7/1/2024
0.7.0-dev.1001 130 6/10/2024
0.7.0-dev.994 129 6/3/2024
0.7.0-dev.981 127 5/27/2024
0.7.0-dev.977 131 5/27/2024
0.7.0-dev.967 111 5/20/2024
0.7.0-dev.965 109 5/20/2024
0.7.0-dev.953 132 5/13/2024
0.7.0-dev.946 140 5/3/2024
0.7.0-dev.942 110 4/29/2024
0.7.0-dev.934 164 4/22/2024
0.7.0-dev.925 151 4/16/2024
0.6.0 16,509 4/16/2024
0.6.0-dev.917 143 4/8/2024
0.6.0-dev.910 146 4/3/2024
0.6.0-dev.891 132 3/25/2024
0.6.0-dev.890 111 3/25/2024
0.6.0-dev.877 128 3/18/2024
0.6.0-dev.869 131 3/18/2024
0.6.0-dev.859 106 3/11/2024
0.6.0-dev.858 107 3/11/2024
0.6.0-dev.845 134 3/1/2024
0.5.0 1,305 3/1/2024
0.5.0-dev.837 131 3/1/2024
0.5.0-dev.830 128 2/29/2024
0.5.0-dev.821 119 2/26/2024
0.5.0-dev.782 135 2/20/2024
0.5.0-dev.775 125 2/19/2024
0.5.0-dev.771 131 2/19/2024
0.5.0-dev.770 143 2/19/2024
0.5.0-dev.748 143 1/29/2024
0.5.0-dev.744 128 1/29/2024
0.5.0-dev.732 143 1/22/2024
0.5.0-dev.710 179 1/2/2024
0.5.0-dev.708 123 1/2/2024
0.5.0-dev.693 185 12/11/2023
0.5.0-dev.686 156 12/8/2023
0.4.0 13,234 12/8/2023
0.4.0-dev.678 155 12/8/2023
0.4.0-dev.674 159 12/4/2023
0.4.0-dev.673 148 12/4/2023
0.4.0-dev.660 139 12/4/2023
0.4.0-dev.650 177 11/13/2023
0.4.0-dev.649 136 11/13/2023
0.4.0-dev.648 131 11/13/2023
0.4.0-dev.629 130 11/6/2023
0.4.0-dev.627 128 11/6/2023
0.4.0-dev.615 151 10/31/2023
0.4.0-dev.608 157 10/17/2023
0.4.0-dev.601 129 10/11/2023
0.4.0-dev.597 163 10/2/2023
0.4.0-dev.581 157 10/2/2023
0.3.0 3,103 10/2/2023
0.3.0-dev.573 149 9/27/2023
0.3.0-dev.569 147 9/27/2023
0.3.0-dev.556 152 9/26/2023
0.3.0-dev.540 138 9/26/2023
0.3.0-dev.483 164 9/18/2023
0.3.0-dev.471 180 9/4/2023
0.3.0-dev.467 175 9/4/2023
0.3.0-dev.445 184 8/24/2023
0.3.0-dev.441 182 8/21/2023
0.3.0-dev.440 145 8/21/2023
0.3.0-dev.427 185 8/11/2023
0.2.0 3,967 8/11/2023
0.2.0-dev.419 154 8/7/2023
0.2.0-dev.418 153 8/7/2023
0.2.0-dev.405 176 8/7/2023
0.2.0-dev.360 198 7/26/2023
0.2.0-dev.353 173 7/25/2023
0.2.0-dev.337 200 7/17/2023
0.2.0-dev.327 194 7/10/2023
0.2.0-dev.314 189 6/29/2023
0.2.0-dev.310 186 6/29/2023
0.2.0-dev.306 172 6/28/2023
0.2.0-dev.299 190 6/27/2023
0.2.0-dev.295 189 6/27/2023
0.2.0-dev.285 184 6/23/2023
0.2.0-dev.278 213 6/13/2023
0.2.0-dev.271 180 6/12/2023
0.2.0-dev.264 209 6/9/2023
0.1.0 1,227 6/9/2023
0.1.0-dev.258 204 6/9/2023
0.1.0-dev.242 202 6/8/2023
0.1.0-dev.235 195 6/8/2023
0.1.0-dev.2 199 6/8/2023
0.1.0-dev.1 203 6/8/2023