All Products
Search
Document Center

ApsaraVideo Live:DescribeLiveRtcRecordUsageData

Last Updated:Jul 15, 2026

Queries the cloud recording usage of ApsaraVideo Real-time Communication.

Operation description

  • Queries the recording length for each specification of cloud recording on a daily basis.

  • Supports queries at the ApsaraVideo Real-time Communication application granularity.

QPS limit

The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation as needed.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

live:DescribeLiveRtcRecordUsageData

none

*All Resource

*

None None

Request syntax

GET  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

StartTime

string

Yes

The start time for the query. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time).

2017-12-21T08:00:00Z

EndTime

string

Yes

The end time for the query. The query granularity must be ≥ 5 minutes and ≤ 31 days. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time).

2022-10-10T21:00:00Z

AppId

string

Yes

The ID of the ApsaraVideo Real-time Communication application. You can view the ID in ApsaraVideo Real-time Communication application management. Navigate to ApsaraVideo Live > Live+ > Real-time Communication > Application Management to view your application IDs.

intl7f92-a5a8*************7ce4eb44a6

RecordMode

string

Yes

The recording mode. Valid values:

  • 0: single-stream recording mode.

  • 1: stream mixing recording mode.

0

Interval

string

No

The time granularity for the query data. Unit: seconds. Valid values:

  • 3600 (default).

3600

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

16A96B9A-F2*************B92E68F4CD8

RecordMode

string

The recording mode. Valid values:

  • 0: single-stream recording mode.

  • 1: stream mixing recording mode.

0

AppId

string

The ID of the ApsaraVideo Real-time Communication application that was queried.

7fd341b3-c6fa-43e1-96b8-7295a1dd****

TotalSummaryDuration

number

The total summary duration. Unit: seconds.

150

AudioSummaryDuration

number

The audio-only summary duration. Unit: seconds.

20

V480SummaryDuration

number

The summary duration of video at 480p or lower. Unit: seconds.

30

V720SummaryDuration

number

The summary duration of video at 720p or lower. Unit: seconds.

40

V1080SummaryDuration

number

The summary duration of video above 720p (including 1080p). Unit: seconds.

10

Data

array<object>

The usage statistics information.

object

The usage statistics information.

Timestamp

string

The timestamp of the data point. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time).

2022-10-10T20:00:00Z

TotalDuration

number

The total duration. Unit: seconds.

150

AudioDuration

number

The audio-only duration. Unit: seconds.

20

V480Duration

number

The duration of video at 480p or lower. Unit: seconds.

30

V720Duration

number

The duration of video at 720p or lower. Unit: seconds.

40

V1080Duration

number

The duration of video above 720p. Unit: seconds.

10

Examples

Success response

JSON format

{
  "RequestId": "16A96B9A-F2*************B92E68F4CD8",
  "RecordMode": "0",
  "AppId": "7fd341b3-c6fa-43e1-96b8-7295a1dd****",
  "TotalSummaryDuration": 150,
  "AudioSummaryDuration": 20,
  "V480SummaryDuration": 30,
  "V720SummaryDuration": 40,
  "V1080SummaryDuration": 10,
  "Data": [
    {
      "Timestamp": "2022-10-10T20:00:00Z",
      "TotalDuration": 150,
      "AudioDuration": 20,
      "V480Duration": 30,
      "V720Duration": 40,
      "V1080Duration": 10
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidStartTime.ValueNotSupported The specified value of parameter StartTime is not supported. The value specified for the StartTime parameter is invalid.
400 InvalidEndTime.Mismatch Specified end time does not math the specified start time. The end time does not match the start time. Make sure that the start and end times match.
400 InvalidRecordModeParameter RecordMode parameter error. RecordMode parameter error
400 InvalidAppIdParameter AppId parameter error. AppId parameter error
400 InvalidTimeSpan The time span exceeds the limit. The time span exceeds the limit. Please refer to the API documentation to specify a reasonable time span.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.