Kuaishou User Broadcast Details
https://api.sandbase.ai/v1/api/kuaishou/app/user-live-infoReturns broadcast information and stream status for a specified Kuaishou account. Requests target a creator profile using the unique user identifier.
- 价格
- $0.001美元 / 次调用
- 方法
- POST
- 响应
- JSON
- 参数
- 1 个必填 · 0 个可选
Playground
[
{
"data": {
"dynamicIconV2": {
"isLive": false,
"photoCount": 676,
"result": 1,
"type": 3
},
"host-name": "public-bjzey-c34-kce-node465.idchb1az3.hb1.kwaidc.com",
"llsid": 2006352265622127400,
"result": 1,
"shieldNextPhoto": false
}
}
]示例
选择一个示例,将其输入和结果加载到 playground 中。
API README
Kuaishou User Broadcast Details API
This API returns the live status and a short activity summary for one Kuaishou account. It needs the numeric user_id of the creator.
Use cases
- Check whether a Kuaishou creator is streaming right now using the
isLiveflag. - Track how many videos a creator has posted by reading
photoCounton a schedule. - Filter a list of creator IDs down to the ones that are live before you fetch more data.
- Confirm that a lookup for a
user_idsucceeded by reading theresultvalue.
Request
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/app/user-live-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "3795214411"}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"debug_id": "36c5a730",
"debug_info": "gAAAAABq6Y77fQhzwkkN1X2BZxqssPoHtERg4092vXpG5Nv1xPwYXM2t_9PpgPb6KX17A8Jcs-2zGXeJ…",
"dynamicIconV2": {
"isLive": false,
"photoCount": 683,
"result": 1,
"type": 3
},
"host-name": "public-bjmt-c56-kce-node76.idchb1az4.hb1.kwaidc.com",
"llsid": 2010206515696162481,
"result": 1,
"shieldNextPhoto": false
}
Response fields
| Field | Meaning |
|---|---|
dynamicIconV2.isLive | Shows whether the account is broadcasting right now. In the sample it is false. |
dynamicIconV2.photoCount | Number of posts counted for the account. The sample shows 683. |
dynamicIconV2.type | Numeric type code for the profile icon state. The sample shows 3. The response does not explain what each code means. |
dynamicIconV2.result / result | Result codes for the icon block and the whole request. The sample shows 1 for both. |
shieldNextPhoto | Boolean flag in the response. The sample shows false. The response does not explain its effect. |
llsid | Large numeric ID attached to this response. It looks like a request or session identifier. |
debug_id / debug_info / host-name | Diagnostic values for the request and the server that handled it. Most integrations can ignore them. |
Notes
- Pass
user_idas a string, for example3795214411. - If you only have a username or profile link, call Kuaishou User ID Lookup first to get the ID.
- To see past streams for the same account, call Kuaishou User Broadcast Replay.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
发送您的第一条请求
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/app/user-live-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "3795214411"
}'2. 身份验证
将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
3. 参数
4. 响应
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"data": {
"dynamicIconV2": {
"isLive": false,
"photoCount": 676,
"result": 1,
"type": 3
},
"host-name": "public-bjzey-c34-kce-node465.idchb1az3.hb1.kwaidc.com",
"llsid": 2006352265622127400,
"result": 1,
"shieldNextPhoto": false
}
}
]探索更多
相关 APIs
| API | 价格 | 响应 |
|---|---|---|
Kuaishou | $0.001 每次调用 | JSON |
Kuaishou | $0.001 每次调用 | JSON |
Kuaishou | $0.001 每次调用 | JSON |
Kuaishou | $0.001 每次调用 | JSON |
Kuaishou | $0.001 每次调用 | JSON |
Kuaishou | $0.001 每次调用 | JSON |
问题
常见问题
如何使用 Kuaishou User Broadcast Details API?
向 https://api.sandbase.ai/v1/api/kuaishou/app/user-live-info 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
Kuaishou User Broadcast Details API 的价格是多少?
每次调用 $0.001。每个组织在每个 UTC 日可获得 100 次免费调用,适用于包括此接口在内的所有符合条件的 SandBase APIs;超过后,每次调用将按此价格从您的 SandBase 余额中扣费。无需订阅。
Kuaishou User Broadcast Details API 接受哪些参数?
必填:user_id (string)。 Parameters 表和本页的 Playground 列出了每个字段。
Kuaishou User Broadcast Details API 返回什么?
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
我需要 Kuaishou 开发者账户或 API key 吗?
不需要。Kuaishou User Broadcast Details 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Kuaishou API 访问权限。
