Analytics
Realtime, usage, quality, call search and data insight endpoints.
Group overview
Generated at build time from the public REST API definition: tag analytics, 7 operations (out of 189). For authentication, envelope and pagination conventions see REST API overview.
| Method | Path | Summary |
|---|---|---|
GET | /v1/analytics/calls | Call search |
GET | /v1/analytics/calls/{channelName} | Call inspector |
GET | /v1/analytics/data-insight | Data insights by dimension |
GET | /v1/analytics/quality | Quality overview (rates + diagnosis) |
POST | /v1/analytics/quality | Ingest SDK quality samples |
GET | /v1/analytics/realtime | Real-time monitoring (last 30 min, 1-min buckets) |
GET | /v1/analytics/usage | Usage overview |
Operation details
GET /v1/analytics/calls
Call search
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
from | query | string | format date-time | |
to | query | string | format date-time | |
channelName | query | string |
Response
| Status codes | Description / schema |
|---|---|
200 | call sessions in the range, newest first — object{ from, to, granularity, total, calls } |
Example call
curl -s -X GET "$NIMEET_API_BASE/v1/analytics/calls?from=%24FROM&to=%24TO&channelName=weekly-sync" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"GET /v1/analytics/calls/{channelName}
Call inspector
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
channelName | path | is | string | length 0..128 |
from | query | string | format date-time | |
to | query | string | format date-time |
Response
| Status codes | Description / schema |
|---|---|
200 | one call session with per-user metrics and the timeline — AnalyticsCallSession |
Example call
curl -s -X GET "$NIMEET_API_BASE/v1/analytics/calls/weekly-sync?from=%24FROM&to=%24TO" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"GET /v1/analytics/data-insight
Data insights by dimension
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
from | query | string | format date-time | |
to | query | string | format date-time | |
granularity | query | enum(minute | hour | day) | default "hour" | |
metric | query | enum(videoFreezeRate | audioFreezeRate | networkDelayRate | loginSuccessRate | login5sSuccessRate) | ||
dimension | query | enum(region | networkType | osType | sdkVersion | deviceType | channelSize) |
Response
| Status codes | Description / schema |
|---|---|
200 | one metric over time plus its breakdown by the requested dimension — object{ metric, dimension, series, breakdown } |
Example call
curl -s -X GET "$NIMEET_API_BASE/v1/analytics/data-insight?from=%24FROM&to=%24TO&granularity=hour&metric=videoFreezeRate&dimension=region" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"GET /v1/analytics/quality
Quality overview (rates + diagnosis)
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
from | query | string | format date-time | |
to | query | string | format date-time | |
granularity | query | enum(minute | hour | day) | default "hour" | |
product | query | enum(native | web) | default "native" |
Response
| Status codes | Description / schema |
|---|---|
200 | quality buckets for the range plus the range totals — object{ from, to, granularity, product, buckets, totals } |
Example call
curl -s -X GET "$NIMEET_API_BASE/v1/analytics/quality?from=%24FROM&to=%24TO&granularity=hour&product=native" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"POST /v1/analytics/quality
Ingest SDK quality samples
Authentication: project credentials (Base64 of customerId:customerSecret)
Request body
| Field | Type | Required | Description |
|---|---|---|---|
samples | array<object> | is | up to 5000 items |
{
"samples": [
{
"channelName": "weekly-sync",
"uid": 10001,
"bucketStart": "$BUCKET_START",
"videoFreezeMs": 0,
"videoDurationMs": 60000,
"audioFreezeMs": 0,
"audioDurationMs": 60000,
"networkDelayMs": 0,
"networkDelayDurationMs": 60000,
"joinAttempt": true,
"joinSuccess": true,
"joinDelayMs": 320,
"dimensions": {
"region": "cn-shanghai",
"networkType": "wifi",
"osType": "web",
"sdkVersion": "1.0.0"
}
}
]
}Response
| Status codes | Description / schema |
|---|---|
202 | how many quality samples were accepted / rejected — object{ accepted, rejected } |
Example call
curl -s -X POST "$NIMEET_API_BASE/v1/analytics/quality" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC" \
-H "Content-Type: application/json" \
-d '{"samples":[{"channelName":"weekly-sync","uid":10001,"bucketStart":"$BUCKET_START","videoFreezeMs":0,"videoDurationMs":60000,"audioFreezeMs":0,"audioDurationMs":60000,"networkDelayMs":0,"networkDelayDurationMs":60000,"joinAttempt":true,"joinSuccess":true,"joinDelayMs":320,"dimensions":{"region":"cn-shanghai","networkType":"wifi","osType":"web","sdkVersion":"1.0.0"}}]}'GET /v1/analytics/realtime
Real-time monitoring (last 30 min, 1-min buckets)
Authentication: project credentials (Base64 of customerId:customerSecret)
Response
| Status codes | Description / schema |
|---|---|
200 | minute buckets for the realtime window plus the latest bucket and any active alarm — object{ windowMinutes, buckets, latest, alarm } |
Example call
curl -s -X GET "$NIMEET_API_BASE/v1/analytics/realtime" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"GET /v1/analytics/usage
Usage overview
Authentication: project credentials (Base64 of customerId:customerSecret)
Parameters
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
from | query | string | format date-time | |
to | query | string | format date-time | |
granularity | query | enum(minute | hour | day) | default "hour" |
Response
| Status codes | Description / schema |
|---|---|
200 | usage summary for the range plus a 7-day forecast — object |
Example call
curl -s -X GET "$NIMEET_API_BASE/v1/analytics/usage?from=%24FROM&to=%24TO&granularity=hour" \
-H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"Schemas used by this group
AnalyticsCallEvent — object{ ts, kind, uid, detail }
| Field | Type | Required | Description |
|---|---|---|---|
ts | string | is | format date-time |
kind | enum(join | leave | network | video-send | audio-send) | is | |
uid | integer | is | |
detail | string |
AnalyticsCallSession — object
| Field | Type | Required | Description |
|---|---|---|---|
projectId | string | is | |
channelName | string | is | |
startedAt | string | is | format date-time |
endedAt | string | null | is | format date-time |
peakUsers | integer | is | |
users | array<object> | is | |
events | array<object{ ts, kind, uid, detail }> | is |
AnalyticsCallUser — object
| Field | Type | Required | Description |
|---|---|---|---|
uid | integer | is | |
userId | string | null | is | |
role | enum(host | audience) | is | |
platform | integer | is | Agora platform code (0 iOS, 1 Android, 2 Windows, 5 Web, 6 macOS, 7 Linux, 8 Other) |
joinedAt | string | is | format date-time |
leftAt | string | null | is | format date-time |
durationSeconds | number | is | |
audioFreezeRate | number | is | |
videoFreezeRate | number | is | |
networkDelayRate | number | is |
AnalyticsDiagnosis — object{ video, audio, network }
| Field | Type | Required | Description |
|---|---|---|---|
video | enum(good | warn | bad) | is | |
audio | enum(good | warn | bad) | is | |
network | enum(good | warn | bad) | is |
AnalyticsQualityBucket — object
| Field | Type | Required | Description |
|---|---|---|---|
bucketStart | string | is | format date-time |
averageLoginTimeMs | number | is | |
audioFreezeRate | number | is | |
videoFreezeRate | number | is | |
networkDelayRate | number | is | |
inCallUsers | integer | is | |
inCallChannels | integer | is | |
joinAttempts | integer | is | |
joinSuccesses | integer | is | |
joinWithin5s | integer | is |
AnalyticsUsageBucket — object{ bucket, type, minutes, channels, users }
| Field | Type | Required | Description |
|---|---|---|---|
bucket | string | is | |
type | enum(audio | video | recording | streaming | transcoding) | is | |
minutes | number | is | |
channels | integer | is | |
users | integer | is |