Find an API

Search public APIs with auth details & Postman guides

← All APIs

Hetzner Cloud API

hetzner · Company

Company No Auth Free & Open hosting

This is the official API documentation for the Public Hetzner Cloud. ## Introduction The Hetzner Cloud API operates over HTTPS and uses JSON as its data format. The API is a RESTful API and utilizes HTTP methods and HTTP status codes to specify requests and responses. As an alternative to working directly with our API you may also consider to use: * Our CLI program [hcloud](https://github.com/hetznercloud/cli) * Our [library for Go](https://github.com/hetznercloud/hcloud-go) * Our [library fo

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Get all Actions

Returns all Action objects. You can `sort` the results by using the sort URI parameter, and filter them with the `status` parameter.

https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/actions?id=1&sort=id&status=running

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/actions?id=1&sort=id&status=running"
import requests
params = {
    "id": "1",
    "sort": "id",
    "status": "running"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/actions",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/actions');
url.searchParams.set('id', '1');
url.searchParams.set('sort', 'id');
url.searchParams.set('status', 'running');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/actions")
	q := baseURL.Query()
	q.Set("id", "1")
	q.Set("sort", "id")
	q.Set("status", "running")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/actions")
uri.query = URI.encode_www_form({
  "id" => "1",
  "sort" => "id",
  "status" => "running"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/actions?" . http_build_query([
    "id" => "1",
    "sort" => "id",
    "status" => "running"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Get all Certificates

Returns all Certificate objects.

https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/certificates?name=test&sort=id&type=uploaded&label_selector=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/certificates?name=test&sort=id&type=uploaded&label_selector=example"
import requests
params = {
    "name": "test",
    "sort": "id",
    "type": "uploaded",
    "label_selector": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/certificates",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/certificates');
url.searchParams.set('name', 'test');
url.searchParams.set('sort', 'id');
url.searchParams.set('type', 'uploaded');
url.searchParams.set('label_selector', 'example');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/certificates")
	q := baseURL.Query()
	q.Set("name", "test")
	q.Set("sort", "id")
	q.Set("type", "uploaded")
	q.Set("label_selector", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/certificates")
uri.query = URI.encode_www_form({
  "name" => "test",
  "sort" => "id",
  "type" => "uploaded",
  "label_selector" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/certificates?" . http_build_query([
    "name" => "test",
    "sort" => "id",
    "type" => "uploaded",
    "label_selector" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Get all Datacenters

Returns all Datacenter objects.

https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/datacenters?name=test

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/datacenters?name=test"
import requests
params = {
    "name": "test"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/datacenters",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/datacenters');
url.searchParams.set('name', 'test');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/datacenters")
	q := baseURL.Query()
	q.Set("name", "test")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/datacenters")
uri.query = URI.encode_www_form({
  "name" => "test"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/hetzner.cloud/1.0.0/datacenters?" . http_build_query([
    "name" => "test"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Hetzner Cloud API?

Hetzner Cloud API is a Company API. Developers commonly use company APIs for:

  • enriching CRM records with company firmographics
  • building lead-generation and prospecting tools
  • verifying business identity and registration details
  • monitoring competitors and market intelligence
  • powering B2B data enrichment pipelines

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Hetzner Cloud API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide · Learn about API keys · What is REST?

Open documentation ↗