t
value specified in an API request or notification, the request or notification is considered invalid. This can prevent network replay attacks. The value of t
is a Unix timestamp, i.e., the number of seconds that have elapsed since 00:00:00 UTC/GMT, January 1, 1970.sign
= MD5 (key + t). This means splicing the encryption key and t
into a string and calculating its MD5 checksum. The encryption key is the CGI calling key, which can be specified in the CSS console. The directions below show how to configure authentication for stream publishing.t
and sign
values, they cannot calculate the keys and therefore cannot launch spoofing attacks.t
value after 11:47:00, July 21, 2021 would be considered invalid.t = "2021-07-21 11:47:00" = 1626839220
sign = MD5(5d41402abc4b2a76b9719d911017c5921626839220)= 5ee8ca6c28cbe415b40352969cdf8249
Error Code | Error Message | Description |
403 | Forbidden | To ensure security, verification is required for API calls. If this error occurs during browser verification, check whether there is skey in the cookies. |
404 | Not Found | Check whether the request includes a host. |
Error Message | Description |
appid is invalid | appid is invalid because the feature is not activated. |
Error Message | Description |
cmd is invalid | cmd is invalid because the feature is not activated. |
sign invalid | |
time expired |
Error Code | Error Message | Description |
0 | query data successfully | The query is successful and the data queried is returned. |
1000 | user is not registered for statapi | The user has not registered statapi. Please submit a ticket to activate it. |
1001 | user service for statapi was stopped | The statapi access service is suspended for the user. |
1201 | internal/system error | |
1202 | invalid request/request frequency exceeds limit | The request is invalid, usually because the API rate limit is reached. You can apply to relax the limit. |
1204 | invalid input param | The request parameters are invalid. Check whether the parameters passed in meet the requirements. |
1301 | has not live stream | This error code is returned if there is no active stream when a real-time API is called. |
10003 | query data is empty | Query is successful at the backend, but no data is returned. For example, if no audio/video is played for some time and the Get_LivePlayStatHistory API is called, this error code will be returned. |
Was this page helpful?