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
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | Operation subtype (fixed at 16) |
| startTime | Integer | ✅ | Query start timestamp, Unix timestamp in milliseconds |
| endTime | Integer | ✅ | Query end timestamp, Unix timestamp in milliseconds |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (116 = pull bet records interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.code | Integer | Response code |
| d.start | Integer | Query start time |
| d.end | Integer | Query end time |
| d.count | Integer | Number of records returned |
| d.list | Object | Data list (Column-oriented) |
| d.list.GameID | Array<String> | Game round ID (minor round) |
| d.list.Accounts | Array<String> | Player account |
| d.list.ServerID | Array<String> | Game round ID (major round) |
| d.list.KindID | Array<Int> | Game type code (see Game List) |
| d.list.TableID | Array<Int> | Table number |
| d.list.ChairID | Array<Int> | Seat number |
| d.list.UserCount | Array<Int> | Number of players at the table |
| d.list.CellScore | Array<String> | Valid bet amount |
| d.list.AllBet | Array<String> | Total cost (total bet amount + entry fee) |
| d.list.TicketFee | Array<String> | Entry fee |
| d.list.Profit | Array<String> | Total profit (win/loss amount - entry fee) |
| d.list.Revenue | Array<String> | Rake amount |
| d.list.GameStartTime | Array<String> | Game start time |
| d.list.GameEndTime | Array<String> | Game end time |
| d.list.CardValue | Array<String> | Raw round data |
| d.list.ChannelID | Array<Int> | Agent ID |
| d.list.Currency | Array<String> | Currency |
| d.list.Language | Array<String> | Game language list |
| d.list.RecordId | Array<Int> | Record ID |
| d.list.CurScore | Array<String> | Initial score |
| d.list.CreateTime | Array<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
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | Operation subtype (fixed at 16) |
| startTime | Integer | ✅ | Query start timestamp, Unix timestamp in milliseconds |
| endTime | Integer | ✅ | Query end timestamp, Unix timestamp in milliseconds |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (116 = pull bet records interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.code | Integer | Response code |
| d.start | Integer | Query start time |
| d.end | Integer | Query end time |
| d.count | Integer | Number of records returned |
| d.list | Array<Object> | Data list (Row-oriented) |
| d.list[].GameID | String | Game round ID (minor round) |
| d.list[].Accounts | String | Player account |
| d.list[].ServerID | String | Game round ID (major round) |
| d.list[].KindID | Int | Game type code (see Game List) |
| d.list[].TableID | Int | Table number |
| d.list[].ChairID | Int | Seat number |
| d.list[].UserCount | Int | Number of players at the table |
| d.list[].CellScore | String | Valid bet amount |
| d.list[].AllBet | String | Total cost (total bet amount + entry fee) |
| d.list[].TicketFee | String | Entry fee |
| d.list[].Profit | String | Total profit (win/loss amount - entry fee) |
| d.list[].Revenue | String | Rake amount |
| d.list[].GameStartTime | String | Game start time |
| d.list[].GameEndTime | String | Game end time |
| d.list[].CardValue | String | Raw round data |
| d.list[].ChannelID | Int | Agent ID |
| d.list[].Currency | String | Currency |
| d.list[].Language | String | Game language list |
| d.list[].RecordId | Int | Record ID |
| d.list[].CurScore | String | Initial score |
| d.list[].CreateTime | String | Record 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| s | Integer | ✅ | Operation subtype (fixed at 19) |
| id | Integer | ✅ | Original record ID (the RecordId from the bet record response) |
| gameuserno | String | ✅ | Game round ID (the GameID from the bet record response) |
| Lang | String | ❌ | Language (0 = Chinese (default), 1 = English) |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| s | Integer | Service identifier (119 = game log parsing (URL) interface) |
| m | String | Interface path |
| d | Object | Data object |
| d.code | Integer | Response code |
| d.gameLogURL | String | Embeddable 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.
