Soenneker.Nws.OpenApiClient
4.0.50
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Nws.OpenApiClient --version 4.0.50
NuGet\Install-Package Soenneker.Nws.OpenApiClient -Version 4.0.50
<PackageReference Include="Soenneker.Nws.OpenApiClient" Version="4.0.50" />
<PackageVersion Include="Soenneker.Nws.OpenApiClient" Version="4.0.50" />
<PackageReference Include="Soenneker.Nws.OpenApiClient" />
paket add Soenneker.Nws.OpenApiClient --version 4.0.50
#r "nuget: Soenneker.Nws.OpenApiClient, 4.0.50"
#:package Soenneker.Nws.OpenApiClient@4.0.50
#addin nuget:?package=Soenneker.Nws.OpenApiClient&version=4.0.50
#tool nuget:?package=Soenneker.Nws.OpenApiClient&version=4.0.50
Soenneker.Nws.OpenApiClient
Typed request builders and models for forecasts, alerts, stations, observations, and other National Weather Service data.
Installation
dotnet add package Soenneker.Nws.OpenApiClient
Usage
The NWS API requires an identifying User-Agent:
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Nws.OpenApiClient;
var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.UserAgent.ParseAdd(
"my-weather-app/1.0 (contact@example.com)");
var adapter = new HttpClientRequestAdapter(
new AnonymousAuthenticationProvider(),
httpClient: httpClient);
var client = new NwsOpenApiClient(adapter);
var alertTypes = await client.Alerts.Types.GetAsync(cancellationToken: cancellationToken);
The generated client defaults to https://api.weather.gov.
For application registration, configuration-based User-Agent values, and managed client reuse, use Soenneker.Nws.OpenApiClientUtil.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.0.0)
- Microsoft.Kiota.Serialization.Form (>= 2.0.0)
- Microsoft.Kiota.Serialization.Json (>= 2.0.0)
- Microsoft.Kiota.Serialization.Multipart (>= 2.0.0)
- Microsoft.Kiota.Serialization.Text (>= 2.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Nws.OpenApiClient:
| Package | Downloads |
|---|---|
|
Soenneker.Nws.OpenApiClientUtil
Provides a configured National Weather Service client and reuses it for the registered service lifetime. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.56 | 31 | 9/8/2026 |
| 4.0.55 | 158 | 9/4/2026 |
| 4.0.54 | 74 | 9/4/2026 |
| 4.0.53 | 194 | 9/3/2026 |
| 4.0.52 | 85 | 9/3/2026 |
| 4.0.51 | 121 | 8/31/2026 |
| 4.0.50 | 136 | 8/31/2026 |
| 4.0.49 | 311 | 8/15/2026 |
| 4.0.48 | 107 | 8/14/2026 |
| 4.0.47 | 246 | 8/1/2026 |
| 4.0.46 | 240 | 7/28/2026 |
| 4.0.45 | 115 | 7/27/2026 |
| 4.0.44 | 377 | 7/16/2026 |
| 4.0.43 | 118 | 7/16/2026 |
| 4.0.42 | 268 | 7/10/2026 |
| 4.0.41 | 125 | 7/9/2026 |
| 4.0.40 | 131 | 7/7/2026 |
| 4.0.39 | 126 | 7/4/2026 |
| 4.0.38 | 169 | 6/27/2026 |
| 4.0.37 | 131 | 6/25/2026 |