logo
On this page

Query Region Quality Real-time Data


Description

This interface can be used to get the quality data within the specified time period in the last 1 hour for the specified region (or all regions) and specified platform (or all platforms). The data granularity is minutes.

Request method and endpoint

  • Request method: GET
  • Request URL: https://analytics-api.zego.im/?Action=GetRegionQualityDetail
  • Transfer protocol: HTTPS
  • QPS limit (same AppID): 3 times/minute, 480 times/day
  • Data delay: 3 minutes

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
RegionStringNoThe name of the country or region.
  • all: Default value, indicating all countries and regions.
PlatformStringNoPlatform type.
  • all: Default value, indicating all platforms.
  • native: Native platform (excluding Web and mini-programs).
  • web: Web and mini-programs.
Warning
Some indicators may not support the platform type dimension, and the return value may be empty.
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.

Request Example

https://analytics-api.zego.im/?Action=GetRegionQualityDetail
&Region=China
&Platform=all
&StartTs=1659411617260000
&EndTs=1659415320000
&<Public Request Parameters>

Response Parameters

ParameterTypeDescription
CodeNumberReturn code.
MessageStringOperation result description.
RequestIdStringRequest ID.
DataObjectResponse data.
└ListArray of ObjectMetric list.
  └TimestampNumberUTC timestamp in milliseconds.
  └QualityInfoArray of ObjectQuality list.
    └RegionStringThe name of the country or region.
    └P2pDelayDetailObjectEnd-to-end delay.
      └TotalNumberTotal number of minutes samples.
      └Rate1NumberPercentage of samples in the interval (0, 400ms).
      └Rate2NumberPercentage of samples in the interval [400ms, 600ms).
      └Rate3NumberPercentage of samples in the interval [600ms, 800ms).
      └Rate4NumberPercentage of samples in the interval [800ms, +∞).
    └P2pPlrDetailArray of ObjectEnd-to-end packet loss rate distribution.
      └TotalNumberTotal number of minutes samples.
      └Rate1NumberPercentage of samples with a packet loss rate of 0.
      └Rate2NumberPercentage of samples with a packet loss rate in the interval (0, 5%).
      └Rate3NumberPercentage of samples with a packet loss rate in the interval [5%, 10%).
      └Rate4NumberPercentage of samples with a packet loss rate in the interval [10%, 50%).
      └Rate5NumberPercentage of samples with a packet loss rate in the interval [50%, 100%].
    └VideoBreakDetailArray of ObjectVideo stutter rate distribution.
      └TotalNumberTotal number of minutes samples.
      └Rate1NumberPercentage of samples with a stutter rate of 0.
      └Rate2NumberPercentage of samples with a stutter rate in the interval (0, 20%).
      └Rate3NumberPercentage of samples with a stutter rate in the interval [20%, 50%).
      └Rate4NumberPercentage of samples with a stutter rate in the interval [50%, 100%).
      └Rate5NumberPercentage of samples with a stutter rate in the interval [100%, +∞).
    └AudioBreakDetailArray of ObjectAudio stutter rate distribution.
      └TotalNumberTotal number of minutes samples.
      └Rate1NumberPercentage of samples with a stutter rate of 0.
      └Rate2NumberPercentage of samples with a stutter rate in the interval (0, 20%).
      └Rate3NumberPercentage of samples with a stutter rate in the interval [20%, 50%).
      └Rate4NumberPercentage of samples with a stutter rate in the interval [50%, 100%).
      └Rate5NumberPercentage of samples with a stutter rate in the interval [100%, +∞).
    └LoginSuccessRateDetailArray of ObjectLogin success rate.
      └LoginSuccessRateNumberLogin success rate.
      └LoginSuccessRate5sNumberLogin success rate in 5 seconds.
    └VideoFFTDetailArray of ObjectVideo first frame time distribution.
      └TotalNumberTotal number of minutes samples.
      └Rate1NumberPercentage of samples with a time in the interval (0, 500ms].
      └Rate2NumberPercentage of samples with a time in the interval (500ms, 1000ms].
      └Rate3NumberPercentage of samples with a time in the interval (1000ms, 2000ms].
      └Rate4NumberPercentage of samples with a time in the interval (2000, 5000ms].
      └Rate5NumberPercentage of samples with a stutter rate in the interval [5000ms, +∞).
    └AudioFFTDetailArray of ObjectAudio first frame time distribution.
      └TotalNumberTotal number of minutes samples.
      └Rate1NumberPercentage of samples with a time in the interval (0, 500ms].
      └Rate2NumberPercentage of samples with a time in the interval (500ms, 1000ms].
      └Rate3NumberPercentage of samples with a time in the interval (1000ms, 2000ms].
      └Rate4NumberPercentage of samples with a time in the interval (2000, 5000ms].
      └Rate5NumberPercentage of samples with a stutter rate in the interval [5000ms, +∞).

Response Example

{
  "Code": 0,
  "Data": {
    "List": [
      {
        "Timestamp": 1676961480000,
        "QualityInfo": [
          {
            "Region": "China",
            "P2pDelayDetail": {
              "Total": 298,
              "Rate1": 0.9966,
              "Rate2": 0,
              "Rate3": 0,
              "Rate4": 0.0034
            },
            "P2pPlrDetail": {
              "Total": 1123,
              "Rate1": 0.9386,
              "Rate2": 0.0561,
              "Rate3": 0.0018,
              "Rate4": 0.0036,
              "Rate5": 0
            },
            "VideoBreakDetail": {
              "Total": 920,
              "Rate1": 0.9304,
              "Rate2": 0.0022,
              "Rate3": 0.0109,
              "Rate4": 0.0446,
              "Rate5": 0.012
            },
            "AudioBreakDetail": {
              "Total": 1123,
              "Rate1": 0.951,
              "Rate2": 0.016,
              "Rate3": 0.0107,
              "Rate4": 0.0098,
              "Rate5": 0.0125
            },
            "LoginSuccessRateDetail": {
              "LoginSuccessRate": 1,
              "LoginSuccessRate5s": 1
            },
            "VideoFFTDetail": {
              "Total": 39,
              "Rate1": 0.9231,
              "Rate2": 0,
              "Rate3": 0.0513,
              "Rate4": 0.0256,
              "Rate5": 0
            },
            "AudioFFTDetail": {
              "Total": 36,
              "Rate1": 0.9167,
              "Rate2": 0.0278,
              "Rate3": 0.0556,
              "Rate4": 0,
              "Rate5": 0
            }
          }
        ]
      },
      {
        "Timestamp": 1676961540000,
        "QualityInfo": [
          {
            "Region": "China",
            "P2pDelayDetail": {
              "Total": 298,
              "Rate1": 0.9966,
              "Rate2": 0,
              "Rate3": 0,
              "Rate4": 0.0034
            },
            "P2pPlrDetail": {
              "Total": 1123,
              "Rate1": 0.9386,
              "Rate2": 0.0561,
              "Rate3": 0.0018,
              "Rate4": 0.0036,
              "Rate5": 0
            },
            "VideoBreakDetail": {
              "Total": 920,
              "Rate1": 0.9304,
              "Rate2": 0.0022,
              "Rate3": 0.0109,
              "Rate4": 0.0446,
              "Rate5": 0.012
            },
            "AudioBreakDetail": {
              "Total": 1123,
              "Rate1": 0.951,
              "Rate2": 0.016,
              "Rate3": 0.0107,
              "Rate4": 0.0098,
              "Rate5": 0.0125
            },
            "LoginSuccessRateDetail": {
              "LoginSuccessRate": 1,
              "LoginSuccessRate5s": 1
            },
            "VideoFFTDetail": {
              "Total": 39,
              "Rate1": 0.9231,
              "Rate2": 0,
              "Rate3": 0.0513,
              "Rate4": 0.0256,
              "Rate5": 0
            },
            "AudioFFTDetail": {
              "Total": 36,
              "Rate1": 0.9167,
              "Rate2": 0.0278,
              "Rate3": 0.0556,
              "Rate4": 0,
              "Rate5": 0
            }
          }
        ]
      }
    ]
  },
  "Message": "success"
}

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 Pull Stream Quality and Performance

Next

Get Real-time Usage

On this page

Back to top