Last updated: 2021-05-12 19:14:33

1. API Description

Domain name for API request:

This API is used to query streaming events.

Note: This API can filter by IsFilter and return the push history.

A maximum of 300 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DescribeLiveStreamEventList.
Version Yes String Common parameter. The value used for this API: 2018-08-01.
Region No String Common parameter. This parameter is not required for this API.
StartTime Yes String Start time.
In UTC format, such as 2018-12-29T19:00:00Z.
This supports querying the history of 60 days.
EndTime Yes String End time.
In UTC format, such as 2018-12-29T20:00:00Z.
This cannot be after the current time and cannot be more than 30 days after the start time.
AppName No String Push path, which is the same as the AppName in push and playback addresses and is "live" by default.
DomainName No String Push domain name.
StreamName No String Stream name; query with wildcard (*) is not supported; fuzzy match by default.
The IsStrict field can be used to change to exact query.
PageNum No Integer Page number to get.
Default value: 1.
Note: Currently, query for up to 10,000 entries is supported.
PageSize No Integer Number of entries per page.
Maximum value: 100.
Value range: any integer between 1 and 100.
Default value: 10.
Note: currently, query for up to 10,000 entries is supported.
IsFilter No Integer Whether to filter. No filtering by default.
0: No filtering at all.
1: Filter out the failing streams and return only the successful ones.
IsStrict No Integer Whether to query exactly. Fuzzy match by default.
0: Fuzzy match.
1: Exact query.
Note: This parameter takes effect when StreamName is used.
IsAsc No Integer Whether to display in ascending order by end time. Descending order by default.
0: Descending.
1: Ascending.

3. Output Parameters

Parameter Name Type Description
EventList Array of StreamEventInfo List of streaming events.
PageNum Integer Page number.
PageSize Integer Number of entries per page.
TotalNum Integer Total number of eligible ones.
TotalPage Integer Total number of pages.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Sample request

Input Example
&<Common request parameters>

Output Example

  "Response": {
    "EventList": [
        "AppName": "live",
        "ClientIp": "",
        "DomainName": "",
        "Duration": 0,
        "Resolution": "640*352",
        "StopReason": "The client actively interrupts the stream",
        "StreamEndTime": "2019-01-04T11:59:58Z",
        "StreamName": "stream",
        "StreamStartTime": "2019-01-04T11:59:58Z"
    "PageNum": 1,
    "PageSize": 10,
    "TotalNum": 1,
    "TotalPage": 1,
    "RequestId": "8e50cdb5-56dc-408b-89b0-31818958d424"

5. Developer Resources


TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
FailedOperation.CallOtherSvrFailed Failed to call the internal service.
InternalError Internal error.
InvalidParameterValue Invalid parameter value.
MissingParameter Parameter missing.
ResourceNotFound.UserNotExist The LVB service has not been activated.