cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/tiktok/live/trend/analytics?room_id=7655115968440175381&page_num=1&page_size=10' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/tiktok/live/trend/analytics',
params={"room_id": "7655115968440175381", "page_num": "1", "page_size": "10"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"room_id": "7655115968440175381", "page_num": "1", "page_size": "10"});
const response = await fetch(`https://api.keyapi.ai/v1/tiktok/live/trend/analytics?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": [
{
"room_id": "7655115968440175381",
"snapshot_time": 1782355500,
"total_enter_count_cnt": 46862,
"total_followers_cnt": 2287429,
"total_followers_incr_cnt": 0,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 1278
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782355800,
"total_enter_count_cnt": 0,
"total_followers_cnt": 0,
"total_followers_incr_cnt": 0,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 0
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782356400,
"total_enter_count_cnt": 51682,
"total_followers_cnt": 2287474,
"total_followers_incr_cnt": 45,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 703
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782358200,
"total_enter_count_cnt": 56623,
"total_followers_cnt": 2287543,
"total_followers_incr_cnt": 69,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 551
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782359100,
"total_enter_count_cnt": 58775,
"total_followers_cnt": 2287544,
"total_followers_incr_cnt": 1,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 1581,
"total_sale_incr_cnt": 168,
"total_user_count_cnt": 586
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782360900,
"total_enter_count_cnt": 65703,
"total_followers_cnt": 2287655,
"total_followers_incr_cnt": 111,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 977
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782361800,
"total_enter_count_cnt": 75022,
"total_followers_cnt": 2287724,
"total_followers_incr_cnt": 69,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 1027
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782362800,
"total_enter_count_cnt": 0,
"total_followers_cnt": 0,
"total_followers_incr_cnt": 0,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 1581,
"total_sale_incr_cnt": 168,
"total_user_count_cnt": 0
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782363600,
"total_enter_count_cnt": 81794,
"total_followers_cnt": 2287839,
"total_followers_incr_cnt": 115,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 685
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782364500,
"total_enter_count_cnt": 84600,
"total_followers_cnt": 2287880,
"total_followers_incr_cnt": 41,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 679
}
],
"requestId": "ea477151-a2cd-455a-a186-c338d6abdb5e"
}{
"code": 400,
"data": null,
"message": "Missing required parameter"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}TikTok Content
Live Trend Analytics
Get snapshot trend data for a TikTok live room by room_id. The response includes snapshot time, online users, followers, new followers, sales, GMV, incremental GMV, incremental sales, and total views, making it useful for reviewing live performance over time.
GET
/
v1
/
tiktok
/
live
/
trend
/
analytics
cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/tiktok/live/trend/analytics?room_id=7655115968440175381&page_num=1&page_size=10' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/tiktok/live/trend/analytics',
params={"room_id": "7655115968440175381", "page_num": "1", "page_size": "10"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"room_id": "7655115968440175381", "page_num": "1", "page_size": "10"});
const response = await fetch(`https://api.keyapi.ai/v1/tiktok/live/trend/analytics?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": [
{
"room_id": "7655115968440175381",
"snapshot_time": 1782355500,
"total_enter_count_cnt": 46862,
"total_followers_cnt": 2287429,
"total_followers_incr_cnt": 0,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 1278
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782355800,
"total_enter_count_cnt": 0,
"total_followers_cnt": 0,
"total_followers_incr_cnt": 0,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 0
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782356400,
"total_enter_count_cnt": 51682,
"total_followers_cnt": 2287474,
"total_followers_incr_cnt": 45,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 703
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782358200,
"total_enter_count_cnt": 56623,
"total_followers_cnt": 2287543,
"total_followers_incr_cnt": 69,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 551
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782359100,
"total_enter_count_cnt": 58775,
"total_followers_cnt": 2287544,
"total_followers_incr_cnt": 1,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 1581,
"total_sale_incr_cnt": 168,
"total_user_count_cnt": 586
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782360900,
"total_enter_count_cnt": 65703,
"total_followers_cnt": 2287655,
"total_followers_incr_cnt": 111,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 977
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782361800,
"total_enter_count_cnt": 75022,
"total_followers_cnt": 2287724,
"total_followers_incr_cnt": 69,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 1027
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782362800,
"total_enter_count_cnt": 0,
"total_followers_cnt": 0,
"total_followers_incr_cnt": 0,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 1581,
"total_sale_incr_cnt": 168,
"total_user_count_cnt": 0
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782363600,
"total_enter_count_cnt": 81794,
"total_followers_cnt": 2287839,
"total_followers_incr_cnt": 115,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 685
},
{
"room_id": "7655115968440175381",
"snapshot_time": 1782364500,
"total_enter_count_cnt": 84600,
"total_followers_cnt": 2287880,
"total_followers_incr_cnt": 41,
"total_sale_cnt": 16784,
"total_sale_gmv_amt": 158066,
"total_sale_gmv_incr_amt": 0,
"total_sale_incr_cnt": 0,
"total_user_count_cnt": 679
}
],
"requestId": "ea477151-a2cd-455a-a186-c338d6abdb5e"
}{
"code": 400,
"data": null,
"message": "Missing required parameter"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}🪙1 creditper request
Copy for AI
🤖 Why Code When AI Can Do It For You?
Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.
Authorizations
Query Parameters
Live room ID.
Example:
"7655115968440175381"
Page number.
Example:
"1"
Page size.
Example:
"10"
⌘I

