logo
On this page

Query User Pull Stream Quality and Performance Details


Description

This interface can be used to query the pull stream quality and device performance based on the user ID, time period, room ID, and stream ID.

Request method and endpoint

  • Request method: GET
  • Request URL: https://analytics-api.zego.im/?Action=GetPlayQualityDetail
  • Transfer protocol: HTTPS
  • QPS limit (same AppID): 3 times/second, 10000 times/day

Request parameters

The following request parameter list only lists the interface request parameters and some common parameters. Please refer to Accessing Server APIs - Public Request Parameters for the complete common parameter list.

ParameterTypeRequiredDescription
RoomIdStringYesRoom ID.
UserIdStringYesUser ID.
StreamIdStringYesStream ID.
Metrics[]Array of StringYesThe list of metrics to be queried, please refer to Pull Stream Quality Indicator Description for details.
StartTsNumberYesStart time, UTC timestamp in milliseconds.
EndTsNumberYesEnd time, UTC timestamp in milliseconds. If the push stream is not ended, it can be represented as 0 or the current timestamp to indicate in progress.

Pull Stream Quality Indicator Description

Indicator NameField NameData TypeRemark
Audio Bitrateaudio_bitrateIntUnit: Kbps
Audio Network FPSaudio_network_fpsFloatUnit: fps
Audio Break Percentageaudio_break_percentageFloatRange: 0-100
Video Bitratevideo_bitrateFloatUnit: Kbps
Video Network FPSvideo_network_fpsFloatUnit: fps
Video Break Percentagevideo_break_percentageFloatRange: 0-100
Decode Resolutiondecode_resolutionStringFormat: Width*Height
Peer to Peer Delaypeer_to_peer_delayFloatUnit: ms
Peer to Peer PLRpeer_to_peer_plrIntRange: 0-100
Downlink Delaydownlink_delayIntUnit: ms
Downlink Packet Loss Ratedownlink_packet_loss_rateIntRange: 0-100
Rendered Sound Levelrendered_sound_levelIntRange: 0-100
Audio MOS ScoremosFloatRange: 0-5
  • Greater than 4.0: Excellent, high-quality audio, clear and smooth.
  • 3.5-4.0: Good, good audio quality, occasional audio quality damage, but still clear.
  • 3.0-3.5: Medium, average audio quality, occasional stuttering, not very smooth, need to pay attention to listen.
  • 2.5-3.0: Poor audio quality, frequent stuttering, need to concentrate to listen to clearly.
  • 2.0-2.5: Very poor audio quality, occasional noise, part of the semantic loss, difficult to communicate.
  • Less than 2.0: Very poor audio quality, noise frequently appears,a lot of semantics are lost and communication is completely impossible。
System Memory Usagesys_mem_usedIntUnit: MB
App Memory Usageapp_mem_usedIntUnit: MB

Request Example

https://analytics-api.zego.im/?Action=GetPlayQualityDetail
&RoomId=room
&UserId=userA
&StreamId=streamA
&Metrics[]=audio_bitrate
&Metrics[]=downlink_delay
&StartTs=1672565276000
&EndTs=1672565456000
&<Public Request Parameters>

Response Parameters

ParameterTypeDescription
CodeNumberReturn code.
MessageStringOperation result description.
RequestIdStringRequest ID.
DataObjectResponse data.
└MetricsArray of ObjectMetric list.
  └MetricStringMetric name.
  └ValuesArray of ObjectMetric value list.
    └ValueSee Pull Stream Quality Indicator DescriptionMetric value.
    └TimestampNumberUTC timestamp, unit: milliseconds.

Response Example

{
    "Code": 0,
    "Data": {
        "Metrics": [
            {
                "Metric": "audio_bitrate",
                "Values": [
                    {
                        "Timestamp": 1659411660000,
                        "Value": 0
                    },
                    {
                        "Timestamp": 1659411720000,
                        "Value": 0
                    },
                    {
                        "Timestamp": 1659411780000,
                        "Value": 0
                    },
                    {
                        "Timestamp": 1659411840000,
                        "Value": 0
                    },
                    {
                        "Timestamp": 1659411900000,
                        "Value": 0
                    }
                ]
            }
        ]
    },
    "Message": "success",
    "RequestId": 1659512998878671000
}

Return Code

Return CodeDescriptionAction
0Success.-
500Interface error.Contact ZEGOCLOUD Technical Support.
10001Parameter format error.Check parameters.
10002Parameter error or parameter invalid.Check parameters.
30002Interface request frequency exceeds the limit.Please confirm the QPS limit of the corresponding interface and reduce the request frequency.

Previous

Query User Push Stream Quality and Performance

Next

Query Regional Quality Real-time Data

On this page

Back to top