Game Data API Documentation

Fetch Endpoints:

GET
GET /fetch/all
Fetches all game data and organizes them by category
This will fetch data from external API and save only category files

Game Endpoints:

POST
POST /game/start
Starts a game for a user
Required fields: username, gameID, provider, tab
Optional fields: redirectUrl, language, device, ip

Example request body:
{
  "username": "playerUsername",
  "gameID": "60b894f210323a16c1094872",
  "provider": "MGS",
  "tab": "Card",
  "device": "desktop",
  "language": "th",
  "redirectUrl": "https://www.example.com"
}
					
GET
GET /game/start/{provider}
Starts a game for a specific provider using default values
URL Path: Replace {provider} with one of the supported providers (e.g., WON, VIVO, PTGC)

Parameters:

Parameter Description Default Example
username Username to start the game with (optional) Auto-rotated test user testopupallbbot5
game Specific game to start (optional) Baccarat SexyBaccarat
device Device type (optional) desktop mobile
language Game language (optional) en th
redirect Whether to redirect to game (optional) true false
delay Redirect delay in seconds (optional) 3 5

Examples:

Supported Providers:

VIVO, PTGC, CGC, PTG, ONC, WINF, PMT, YB, MG, AB, SAG, SEX, DGM, XPG, BETG, GD, BIGG, AG, WON

Data Access Endpoints:

GET
GET /data/category/{category}
Retrieves data for a specific category as JSON
Available categories: sport, slot, casino, card, esport, poker, trading, fish

Output:

All data is saved to JSON files in the game_data directory.