Skip to content

Bet Record API ​

💡 Usage Recommendations

  • Bet records are based on the game payout time; pull data from more than 10 minutes before the current time. A pull interval of 1–5 minutes is recommended, and must not exceed 90 minutes. Our bet records are updated every two minutes, so it is recommended to pull at least every two minutes, since pulling multiple times within a two-minute window will also return duplicate records. There is also a hard limit of at least 10 seconds between pulls.
  • All timestamps in the response data use the UTC+8 timezone.

🔐 Authentication & Encryption ​

All interfaces require authentication and encryption. For details on the encryption method, see: Authentication Guide

📋 Interface List ​

Pull Bet Records (s:16) ​

This interface pulls game bet records, and provides two response formats for different development needs.


1. Response where d.list is a Column-oriented object ​

  • Endpoint: {host}/getRecordHandle
  • HTTP Method: GET
param Structure ​
ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 16)
startTimeInteger✅Query start timestamp, Unix timestamp in milliseconds
endTimeInteger✅Query end timestamp, Unix timestamp in milliseconds
Response Parameters ​
ParameterTypeDescription
sIntegerService identifier (116 = pull bet records interface)
mStringInterface path
dObjectData object
d.codeIntegerResponse code
d.startIntegerQuery start time
d.endIntegerQuery end time
d.countIntegerNumber of records returned
d.listObjectData list (Column-oriented)
d.list.GameIDArray<String>Game round ID (minor round)
d.list.AccountsArray<String>Player account
d.list.ServerIDArray<String>Game round ID (major round)
d.list.KindIDArray<Int>Game type code (see Game List)
d.list.TableIDArray<Int>Table number
d.list.ChairIDArray<Int>Seat number
d.list.UserCountArray<Int>Number of players at the table
d.list.CellScoreArray<String>Valid bet amount
d.list.AllBetArray<String>Total cost (total bet amount + entry fee)
d.list.TicketFeeArray<String>Entry fee
d.list.ProfitArray<String>Total profit (win/loss amount - entry fee)
d.list.RevenueArray<String>Rake amount
d.list.GameStartTimeArray<String>Game start time
d.list.GameEndTimeArray<String>Game end time
d.list.CardValueArray<String>Raw round data
d.list.ChannelIDArray<Int>Agent ID
d.list.CurrencyArray<String>Currency
d.list.LanguageArray<String>Game language list
d.list.RecordIdArray<Int>Record ID
d.list.CurScoreArray<String>Initial score
d.list.CreateTimeArray<String>Record creation time
Response Example ​
json
{
  "s": 116,
  "m": "/getRecordHandle",
  "d": {
    "code": 0,
    "start": 1760493600000,
    "end": 1760497200000,
    "count": 2,
    "list": {
      "GameID": [
        "50-1760495753-4400040-2916598-6-1",
        "50-1760495753-4400040-2916598-2-2"
      ],
      "ServerID": ["2916598", "2916598"],
      "KindID": [220, 220],
      "TableID": [4400040, 4400040],
      "ChairID": [6, 2],
      "UserCount": [2, 2],
      "CellScore": ["20", "10"],
      "TicketFee": ["0", "0"],
      "AllBet": ["20", "10"],
      "Profit": ["10", "-10"],
      "Revenue": ["0", "0"],
      "GameStartTime": ["2025-10-15 10:35:53", "2025-10-15 10:35:53"],
      "GameEndTime": ["2025-10-15 10:35:59", "2025-10-15 10:35:59"],
      "CardValue": [
        "0000001825240000000000000000002a16226",
        "0000001825240000000000000000002a16226"
      ],
      "ChannelID": [41, 41],
      "RecordId": [3053157, 3053156],
      "CurScore": ["1000000", "1000000"],
      "Currency": ["CNY", "CNY"],
      "CreateTime": ["2025-10-15 10:35:59", "2025-10-15 10:35:59"],
      "Accounts": ["sh1015P001", "sh1015P002"],
      "Language": ["zh_cn", "zh_cn"]
    }
  }
}

2. Response where d.list is a Row-oriented array of objects (List format) ​

  • Endpoint: {host}/getRecordHandle/recordWithList
  • HTTP Method: GET
param Structure ​
ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 16)
startTimeInteger✅Query start timestamp, Unix timestamp in milliseconds
endTimeInteger✅Query end timestamp, Unix timestamp in milliseconds
Response Parameters ​
ParameterTypeDescription
sIntegerService identifier (116 = pull bet records interface)
mStringInterface path
dObjectData object
d.codeIntegerResponse code
d.startIntegerQuery start time
d.endIntegerQuery end time
d.countIntegerNumber of records returned
d.listArray<Object>Data list (Row-oriented)
d.list[].GameIDStringGame round ID (minor round)
d.list[].AccountsStringPlayer account
d.list[].ServerIDStringGame round ID (major round)
d.list[].KindIDIntGame type code (see Game List)
d.list[].TableIDIntTable number
d.list[].ChairIDIntSeat number
d.list[].UserCountIntNumber of players at the table
d.list[].CellScoreStringValid bet amount
d.list[].AllBetStringTotal cost (total bet amount + entry fee)
d.list[].TicketFeeStringEntry fee
d.list[].ProfitStringTotal profit (win/loss amount - entry fee)
d.list[].RevenueStringRake amount
d.list[].GameStartTimeStringGame start time
d.list[].GameEndTimeStringGame end time
d.list[].CardValueStringRaw round data
d.list[].ChannelIDIntAgent ID
d.list[].CurrencyStringCurrency
d.list[].LanguageStringGame language list
d.list[].RecordIdIntRecord ID
d.list[].CurScoreStringInitial score
d.list[].CreateTimeStringRecord creation time
Response Example ​
json
{
  "s": 116,
  "m": "/getRecordHandle/recordWithList",
  "d": {
    "code": 0,
    "start": 1760493600000,
    "end": 1760497200000,
    "count": 2,
    "list": [
      {
        "GameID": "50-1760495753-4400040-2916598-6-1",
        "ServerID": "2916598",
        "KindID": 220,
        "TableID": 4400040,
        "ChairID": 6,
        "UserCount": 2,
        "CellScore": "20",
        "TicketFee": "0",
        "AllBet": "20",
        "Profit": "10",
        "Revenue": "0",
        "GameStartTime": "2025-10-15 10:35:53",
        "GameEndTime": "2025-10-15 10:35:59",
        "CardValue": "0000001825240000000000000000002a16226",
        "ChannelID": 41,
        "RecordId": 3053157,
        "CurScore": "1000000",
        "Currency": "CNY",
        "CreateTime": "2025-10-15 10:35:59",
        "Accounts": "sh1015P001",
        "Language": "zh_cn"
      },
      {
        "GameID": "50-1760495753-4400040-2916598-2-2",
        "ServerID": "2916598",
        "KindID": 220,
        "TableID": 4400040,
        "ChairID": 2,
        "UserCount": 2,
        "CellScore": "10",
        "TicketFee": "0",
        "AllBet": "10",
        "Profit": "-10",
        "Revenue": "0",
        "GameStartTime": "2025-10-15 10:35:53",
        "GameEndTime": "2025-10-15 10:35:59",
        "CardValue": "0000001825240000000000000000002a16226",
        "ChannelID": 41,
        "RecordId": 3053156,
        "CurScore": "1000000",
        "Currency": "CNY",
        "CreateTime": "2025-10-15 10:35:59",
        "Accounts": "sh1015P002",
        "Language": "zh_cn"
      }
    ]
  }
}

Game Log Parsing (URL) Interface (s:19) ​

This interface retrieves the log link for a single round.

  • Endpoint: {host}/getRecordHandle
  • HTTP Method: GET

NOTE

Use the getRecordHandle endpoint with s=19.

param Structure ​

ParameterTypeRequiredDescription
sInteger✅Operation subtype (fixed at 19)
idInteger✅Original record ID (the RecordId from the bet record response)
gameusernoString✅Game round ID (the GameID from the bet record response)
LangString❌Language (0 = Chinese (default), 1 = English)

Response Parameters ​

ParameterTypeDescription
sIntegerService identifier (119 = game log parsing (URL) interface)
mStringInterface path
dObjectData object
d.codeIntegerResponse code
d.gameLogURLStringEmbeddable link

Response Example ​

json
{
  "s": 119,
  "m": "/getRecordHandle",
  "d": {
    "code": 0,
    "gameLogURL": "{consoleHost}/#/gameLog?agent=41param=TP9WILUnSmzwKO0R5lhphO%2BnT54o1%2FEcAt3lOlkfKx2Ci7w0DFf0hluqtH2QJexCc17qAUmZb299IYx3m6swIA%3D%3D"
  }
}

📌 Code Reference ​

📘 Response Code Reference ​

Same as the Response Code Reference in the Transfer Wallet API.