Skip to main content
.NETStandard2.0.NETStandard2.1

.NET API for Swiss national weather provider MeteoSwiss

Published
Apr 21, 2026
6mo ago
Total Downloads
32.0K
32,012

Install

dotnet add package MeteoSwissApi --version 4.0.10-pre
ProductVersions
.NET Standard
netstandard2.0netstandard2.1

README

MeteoSwissApi

Version Downloads Buy Me a Coffee

.NET client for easy access of Swiss national weather data. This library is a private, non-commercial project and is by no means related to or maintained by the Federal Office of Meteorology and Climatology MeteoSwiss.

Download and Install MeteoSwissApi

This library is available on NuGet: https://www.nuget.org/packages/MeteoSwissApi Use the following command to install MeteoSwissApi using NuGet package manager console:

PM> Install-Package MeteoSwissApi

You can use this library in any .NET project which is compatible to .NET Standard 2.0 and higher.

API Usage

The following sections document basic use cases of this library. The following code excerpts can also be found in the sample applications.

Request weather info by PLZ

MeteoSwissWeatherService is the main entry point of this library. Create an instance of MeteoSwissWeatherService or inject IMeteoSwissWeatherService using dependency injection techniques.

IMeteoSwissWeatherService weatherService = new MeteoSwissWeatherService(logger, weatherServiceConfiguration);

Request weather information for any Swiss zip code (plz):

var weatherInfo = await weatherService.GetCurrentWeatherAsync(plz: 6330);

Links

Federal Office of Meteorology and Climatology MeteoSwiss https://www.meteoschweiz.admin.ch

WSL Institute for Snow and Avalanche Research SLF www.slf.ch

Contribution

Contributors welcome! If you find a bug or you want to propose a new feature, feel free to do so by opening a new issue on github.com.

Links

Changes from Previous Version

No structural changes between v4.0.9-pre and v4.0.10-pre.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.The published metadata declares 20 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.