Queries the recording length data for one or more specified domain names.

Note

The daily recording length data includes the total recording length of a day and the recording length of different recording formats.

You can query the recording length data that is collected in the last 31 days.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeLiveDomainRecordData

The operation that you want to perform. Set the value to DescribeLiveDomainRecordData.

StartTime String Yes 2018-01-01T00:00:00Z

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

EndTime String Yes 2018-01-02T00:00:00Z

The end of the time range to query. The end time must be later than the start time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

DomainName String No www.example.com

The main streaming domain.

Separate multiple domain names with commas (,).

RecordType String No MP4

The recording format. Valid values:

  • TS
  • MP4
  • FLV

Response parameters

Parameter Type Example Description
RecordDataInfos Array of RecordDataInfo

The daily statistics on the recording length.

RecordDataInfo
Date String 20180202

The date when the statistics were generated.

Total Integer 4710

The total recording length on the day. Unit: seconds.

Detail Struct

The recording length of different recording formats.

FLV Integer 100

The length of the recording in the FLV format. Unit: seconds.

MP4 Integer 230

The length of the recording in the MP4 format. Unit: seconds.

TS Integer 456

The length of the recording in the TS format. Unit: seconds.

RequestId String B955107D-E658-4E77-B913-E0AC3D31693F

The ID of the request.

Examples

Sample requests

http(s)://live.aliyuncs.com/? Action=DescribeLiveDomainRecordData
&StartTime=2018-01-01T00:00:00Z
&EndTime=2018-01-02T00:00:00Z
&<Common request parameters>

Sample success responses

XML format

<RequestId>6B54F8D2-1907-45FB-BCF8-C2E697EAEBC2</RequestId>
<RecordDataInfos>
    <RecordDataInfo>
        <Total>703552</Total>
        <Date>20200101</Date>
        <Detail>
            <MP4>259129</MP4>
            <FLV>86102</FLV>
            <TS>358321</TS>
        </Detail>
    </RecordDataInfo>
    <RecordDataInfo>
        <Total>710461</Total>
        <Date>20200102</Date>
        <Detail>
            <MP4>259724</MP4>
            <FLV>85882</FLV>
            <TS>364855</TS>
        </Detail>
    </RecordDataInfo>
</RecordDataInfos>

JSON format

{
    "RequestId": "6B54F8D2-1907-45FB-BCF8-C2E697EAEBC2",
    "RecordDataInfos": {
        "RecordDataInfo": [
            {
                "Total": 703552,
                "Date": "20200101",
                "Detail": {
                    "MP4": 259129,
                    "FLV": 86102,
                    "TS": 358321
                }
            },
            {
                "Total": 710461,
                "Date": "20200102",
                "Detail": {
                    "MP4": 259724,
                    "FLV": 85882,
                    "TS": 364855
                }
            }
        ]
    }
}

Error codes

HttpCode Error code Error message Description
400 InvalidStartTime.Malformed Specified StartTime is malformed. The error message returned because the format of the start time is invalid. Check whether the value of the StartTime parameter is correct.
400 InvalidEndTime.Malformed Specified EndTime is malformed. The error message returned because the format of the end time is invalid. Check whether the value of the EndTime parameter is correct.

For a list of error codes, visit the API Error Center.