Go Pterodactyl API Wrapper
A Go wrapper for the Pterodactyl Panel API, providing a simple and efficient way to interact with the panel programmatically.
Overview
This package was built to simplify integration with the Pterodactyl Game Server Management Panel. It abstracts the raw HTTP requests into clean, typed Go functions, making it easier to manage servers, users, and other resources from your Go applications.
Key Features
- Wrapper around the official Pterodactyl API (client + application endpoints).
- Simple, idiomatic Go interface for interacting with servers, users, and nodes.
- Error handling with clear Go-style return values.
- Lightweight, no unnecessary dependencies.
Installation
go get github.com/DavidArkless/go-pterodactyl
Example
package main
import (
"fmt"
ptero "github.com/DavidArkless/go-pterodactyl"
)
func main() {
client := ptero.NewClient("https://panel.example.com", "API_KEY_HERE")
servers, err := client.GetServers()
if err != nil {
panic(err)
}
for _, s := range servers {
fmt.Println("Server:", s.Name)
}
}