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.001USD / 回
- メソッド
- POST
- レスポンス
- JSON
- パラメータ
- 必須 1 件 · 任意 0 件
プレイグラウンド
[
{
"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
}
}
]例
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
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 |
質問
FAQ
Kuaishou User Broadcast Details API はどのように使いますか?
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/kuaishou/app/user-live-info に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
Kuaishou User Broadcast Details API の料金はいくらですか?
1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが 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 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Kuaishou の API アクセスを別途申請する必要はありません。
