Live state of an account
get_user_liveWhether one TikTok account, by username or sec_uid, is live now. When it is: the room id, title, viewers now, start time and cover. When it is not: live false and no room fields. No stream addresses. The cache window is 1 minute. 1 credit either way.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user": "<user>"
},
"name": "get_user_live"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | Username, with or without the leading @ (for example tiktok), or the sec_uid of the account. The sec_uid stays the same when the username changes. | |
| fresh | No | Read TikTok again and skip the cache. Costs 2x credits for an item that has a cached copy, the normal price for one that has none. |