Developer Preview

24HG Developer Portal Build on the Platform

APIs, SDKs, and tools to integrate with the 24HG ecosystem.

terminal — bash
# Fetch your game servers
$ curl -H "Authorization: Bearer YOUR_KEY" \
  https://api.24hgaming.com/v1/servers
 
# Response: 200 OK
{ "servers": [89], "status": "online" }

Everything You Need to Build

A complete developer toolkit for the 24HG platform.

REST API

Full programmatic access to the 24HG ecosystem. Manage servers, users, clans, tournaments, and more through clean JSON endpoints.

1,700+ endpoints

OAuth 2.0

Secure authentication and authorization. Let users sign in with their 24HG account and grant your app scoped access to their data.

Authorization Code + PKCE

Webhooks

Real-time event notifications pushed to your server. Get notified about player events, server status changes, transactions, and more.

50+ event types

Plugin SDK

Build and distribute plugins for the 24HG Hub. Extend functionality with custom pages, commands, integrations, and widgets.

Hot-reload dev mode

Bot Framework

Create bots for Discord and the 24HG Hub. Command routing, event handling, message parsing, and rich embeds out of the box.

Discord + Hub support

Documentation

Comprehensive guides, tutorials, and API references. From quickstart to advanced usage, everything you need to ship fast.

Interactive examples

Explore the API

RESTful endpoints with consistent patterns, pagination, and detailed error responses.

GET /v1/servers
GET /v1/servers/:id/status
POST /v1/servers/:id/command
GET /v1/users/@me
GET /v1/users/:id/stats
POST /v1/clans
PUT /v1/clans/:id/settings
GET /v1/tournaments
POST /v1/webhooks
DEL /v1/webhooks/:id
GET /v1/economy/balance
POST /v1/economy/transfer
GET /v1/servers — 200 OK
{
  "data": [
    {
      "id": "3ad534a6",
      "name": "No Man's Land | 5x",
      "game": "rust",
      "players": 42,
      "max_players": 100,
      "status": "running",
      "uptime": 99.8,
      "region": "eu-west"
    },
    {
      "id": "98ae841b",
      "name": "Action City | FiveM",
      "game": "fivem",
      "players": 18,
      "max_players": 64,
      "status": "running",
      "uptime": 99.5,
      "region": "eu-west"
    }
  ],
  "meta": {
    "total": 89,
    "page": 1,
    "per_page": 25
  }
}

Available SDKs

First-class client libraries for your language of choice.

JS

JavaScript

Node.js & Browser

npm i @24hg/sdk
Py

Python

3.10+

pip install 24hg
Go

Go

1.21+

go get 24hg.dev/sdk
Rs

Rust

Stable

cargo add 24hg-sdk
Coming Soon

Developer Portal is Under Construction

We are building the full developer experience. API keys, interactive docs, sandbox environments, and more are on the way.

In active development