Queries the numbers of online users of all live streams under a main streaming domain.

  • Use this operation instead of the DescribeLiveStreamOnlineUserNum operation that is provided in earlier versions.
  • This operation can query only the number of users that use HTTP-FLV, RTS or RTMP to play live streams. This operation cannot query the number of users that use HLS to play live streams.
  • A latency exists in data collection and statistics. We recommend that you query the data that is generated 5 minutes ago. This operation can be called up to three times per second.


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 DescribeLiveDomainOnlineUserNum

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

DomainName String Yes example.com

The main streaming domain.

RegionId String No cn-shanghai

The ID of the region where the main streaming domain resides.

QueryTime String No 2018-12-27T13:09:21Z

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

Response parameters

Parameter Type Example Description
OnlineUserInfo Array of LiveStreamOnlineUserNumInfo

The numbers of online users of the live streams that were queried.

Infos Array of Info

The information about a live stream.

TranscodeTemplate String origin

The name of the transcoding template. A value of origin indicates that the live stream is not transcoded.

UserNumber Long 1

The number of online users of the live stream.

StreamName String StreamTest

The name of the live stream.

RequestId String 3A3A8C3D-F8B2-4FBF-9319-771A11B855FA

The ID of the request.

StreamCount Integer 1

The number of live streams that were queried.

UserCount Integer 1

The total number of online users of all the live streams under the main streaming domain at the specified point in time.


Sample requests

http(s)://live.aliyuncs.com/? Action=DescribeLiveDomainOnlineUserNum
&<Common request parameters>

Sample success responses

XML format


JSON format

    "UserCount": 1,
    "OnlineUserInfo": {
        "LiveStreamOnlineUserNumInfo": [{
            "StreamName": "rtmp://example.com/test/livestream_3_1",
            "Infos": {
                "Info": [{
                    "TranscodeTemplate": "origin",
                    "UserNumber": 1
    "RequestId": "3A3A8C3D-F8B2-4FBF-9319-771A11B855FA",
    "StreamCount": 1

Error codes

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