Skip to content

Get Live Room View Trends

GET
/analytics/202502/live_rooms/{live_room_id}/view_trend_performances

Returns viewer count trend data points for the specified live room, grouped by online, entering, and leaving viewers.

live_room_id
required
string

The ID of the live streaming room whose viewer trend data is requested. The live room must be associated with the authorized creator.

Success

Media typeapplication/json
object
code

Status code; 0 means success.

integer format: int64
message

Success or failure message.

string
request_id

Request log ID.

string
data
object
view_trend_performances

Viewer count trends of the live streaming room

Array<object>
object
stats_type

The viewer trend category. TREND_ONLINE_VIEWER: Viewers who are watching the live streaming room. TREND_ENTER_VIEWER: Viewers who enter the live streaming room. TREND_LEFT_VIEWER: Viewers who left the live streaming room.

string
data_points

Viewer count data points for the corresponding trend category.

Array<object>
object
value

The value of the metric identified by stats_type at this data point.

string
timestamp

The time of the data points

integer format: int64
Example
{
"code": 0,
"data": {
"view_trend_performances": [
{
"stats_type": "TREND_ONLINE_VIEWER",
"data_points": [
{
"value": "123",
"timestamp": 1623812664
}
]
}
]
},
"message": "Success",
"request_id": "202203070749000101890810281E8C70B7"
}