https://xxxxxx/v4/live_engine_http_srv/get_room_stats?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
Parameter | Description |
xxxxxx | The reserved domain for the country/region where the SDKAppID is located: Others in China: console.tim.qq.comSingapore: adminapisgp.im.qcloud.comSilicon Valley: adminapiusa.im.qcloud.comJakarta: adminapiidn.im.qcloud.com |
v4/live_engine_http_srv/get_room_stats | Get Room Statistics API. |
sdkappid | |
identifier | |
usersig | |
random | Random 32-bit unsigned integer, range 0 - 4294967295. |
contenttype | Request format, fixed value json. |
{"RoomId": "live-room"}
Field | Type | Required | Description |
RoomId | String | Required | Unique room identifier. Up to 48 bytes. |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"RequestId": "Id-8c9858f01e954611ae2d4c1b1ed7d583-O-Seq-52720","Response": {"TotalViewers": 1024,"TotalGiftsSent": 56,"TotalGiftCoins": 8800,"TotalUniqueGiftSenders": 12,"TotalLikesReceived": 3200,"TotalMsgCount": 450}}
Field | Type | Description |
ActionStatus | String | Result of the request: OK: success. FAIL: failure. |
ErrorCode | Integer | Error code: 0: success. Non-zero: failure. |
ErrorInfo | String | Error message. |
RequestId | String | Unique request ID. Provide this RequestId for troubleshooting. |
Response | Object | Room statistics object. See Response fields below. |
Field | Type | Description |
TotalViewers | Integer | Total number of viewers (cumulative). |
TotalGiftsSent | Integer | Total number of gifts received. |
TotalGiftCoins | Integer | Total gift coin value received. |
TotalUniqueGiftSenders | Integer | Total number of unique gift senders. |
TotalLikesReceived | Integer | Total number of likes received. |
TotalMsgCount | Integer | Total number of messages. |
Error Code | Description |
100001 | Internal server error. Please retry. |
100002 | Invalid request parameters. Check the error description and verify your request. |
100004 | Room does not exist. Please verify the Room ID. |
{"RoomId": "live_testA"}
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"RequestId": "Id-abc123def456-O-Seq-10001","Response": {"TotalViewers": 5680,"TotalGiftsSent": 234,"TotalGiftCoins": 46800,"TotalUniqueGiftSenders": 89,"TotalLikesReceived": 12500,"TotalMsgCount": 1830}}
フィードバック