NAME
WWW::Hetzner::Cloud::API::Pricing - Hetzner Cloud Pricing API
VERSION
version 0.101
SYNOPSIS
use WWW::Hetzner::Cloud;
my $cloud = WWW::Hetzner::Cloud->new(token => $ENV{HETZNER_API_TOKEN});
my $pricing = $cloud->pricing->get;
printf "Currency: %s (VAT %s%%)\n", $pricing->currency, $pricing->vat_rate;
for my $type (@{ $pricing->server_types }) {
for my $price (@{ $type->{prices} }) {
printf "%s @ %s: %s/month\n",
$type->{name}, $price->{location}, $price->{price_monthly}{gross};
}
}
DESCRIPTION
This module provides access to Hetzner Cloud pricing. Unlike the other Cloud resources /pricing is not a collection but a single object, so this controller offers only get -- there is no list and nothing to look up by id or name.
get
my $pricing = $cloud->pricing->get;
Returns the current prices as a single WWW::Hetzner::Cloud::Pricing object.
SEE ALSO
WWW::Hetzner::Cloud - Main Cloud API client
WWW::Hetzner::Cloud::Pricing - Pricing entity class
WWW::Hetzner::CLI::Cmd::Pricing - Pricing CLI commands
WWW::Hetzner - Main umbrella module
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-hetzner/issues.
IRC
Join #kubernetes on irc.perl.org or message Getty directly.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.