Skip to main content

Generated C# clients for the Hetzner Cloud API, Hetzner API and Hetzner Robot Webservice — one package, three independent typed clients.

Total Downloads
1.2K
1,239
Published
Sep 9, 2026
2mo ago

Get Started

dotnet add package Apigen.Hetzner --version 1.0.8
ProductVersions
.NET
net10.0

README

Apigen.Hetzner

One NuGet package, three generated C# clients for Hetzner's public REST APIs.

dotnet add package Apigen.Hetzner

What's inside

Client Endpoint Auth Credential source
Apigen.Hetzner.Cloud api.hetzner.cloud/v1 Bearer token Cloud Console → Project → API tokens
Apigen.Hetzner.Api api.hetzner.com/v1 Bearer token Hetzner Console → Security → API tokens
Apigen.Hetzner.Robot robot-ws.your-server.de HTTP Basic Robot panel → Settings → Web service user

The three APIs are unrelated services with different base URLs, different credentials and different documentation. Tokens are not shared between them.

Usage

using Apigen.Hetzner.Cloud;
using Apigen.Hetzner.Api;
using Apigen.Hetzner.Robot;

var cloud = HetznerCloudClient.WithBearer("hcloud-token");
var api   = HetznerApiClient.WithBearer("hetzner-account-token");
var robot = HetznerRobotClient.WithBasic("#ws+user", "ws-password");

var cloudServers     = await cloud.Servers.ListAsync();
var dnsZones         = await cloud.Zones.ListAsync();
var dedicatedServers = await robot.Server.ListAsync();
var serverDetail     = (await robot.Server.GetAsync("321")).Server;
Console.WriteLine(serverDetail.ServerIp);

Versioning

major.minor tracks the upstream Hetzner API generation; patch is the client revision.

Source

License

MIT

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

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

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

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