List game types

Live
GET/api/v1/games/types

Game categories with at least one playable game on your site, with a game count per category, sorted by count descending. Use it to build category tabs dynamically.

Responds with Cache-Control: public, max-age=60 — cache it on your side for 60 seconds. Categories with no games are omitted.

Headers

FieldTypeRequiredDescription
Authorizationstring—Not used — this endpoint is public; no member token required
X-Api-KeystringYesAgent API key (ak_…) from the bo screen
X-TimestampstringYesSigning time in unix milliseconds (±300s skew allowed)
X-NoncestringYesUnique per-request value (UUIDv4) for replay protection
X-SignaturestringYeshex(HMAC-SHA256(secret, canonical)) — see the Authentication page
X-Player-IPstring—The player's real IP (IPv4/IPv6) — recommended (used in login history)
X-Player-UAstring—The player's User-Agent (optional — recorded in login history)
X-Request-Idstring—Your correlation id — echoed back as request_uuid (recommended)
x-langstring—th (default) or en — the language of message

Response

Fields in data

FieldTypeRequiredDescription
data[]array<object>—Category list, sorted by game count descending
└ typestring—Game categorySLOT | ARCADE | LIVE_CASINO | TABLE | FISHING | SPORT | LOTTERY | ESPORT | KENO | COCKFIGHT
└ countnumber—Number of playable games in this category
Response example
{
  "success": true,
  "code": 0,
  "message": "สำเร็จ",
  "data": [
    { "type": "SLOT", "count": 812 },
    { "type": "LIVE_CASINO", "count": 96 },
    { "type": "FISHING", "count": 41 },
    { "type": "SPORT", "count": 3 }
  ],
  "request_uuid": "9f2b7d1e-4a83-4c1f-b2ce-6d5a0e8f3c21"
}

Possible error codes

codeNameHTTPMessage
4002BAD_REQUEST400Bad requestThe request's agent could not be resolved (unknown domain/credential)