Kuaishou User Video List (V2)
https://api.sandbase.ai/v1/api/kuaishou/app/user-post-v2Retrieves a list of video feeds posted by a specific Kuaishou user. Supports sorting by latest or hot posts and cursor-based pagination.
- 價格
- $0.01美元/次呼叫
- 方法
- POST
- 回應
- JSON
- 參數
- 1 個必填 · 2 個選填
Playground
您的輸出會顯示在這裡
完成輸入後,點擊執行。
API README
Kuaishou User Video List (V2) API
Returns a list of videos posted by one Kuaishou user, with captions, engagement counts, duration, cover images and author avatar URLs. It needs the user's user_id, and you can sort by latest or hot.
Use cases
- Track new uploads from a Kuaishou creator by polling the
latestsort. - Compare
like_count,comment_countandcollect_countacross one creator's videos. - Collect cover image URLs and captions to build a gallery of a creator's posts.
- Pull a creator's top videos with
sortset tohot.
Request
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/app/user-post-v2" \
-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 | |
pcursor | string | No | Video cursor, empty for the first request, and use the pcursor value in the returned response for subsequent requests. |
sort | string | No | Sort type, latest (default) / hot. |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"feeds": [
{
"adminTags": [],
"bottomEntryInfo": {
"bizExtraData": {},
"bottomBizType": 14,
"bottomStyleInfo": {
"bottomStrongStyle": {
"actionUrl": "",
"backgroundColor": "",
"bottomStrongStyleType": 0,
"enableForceClose": false,
"fontColor": "",
"fontSize": 0,
"iconHeight": 0,
"iconUrl": ""
},
"bottomWeakStyle": {
"actionUrl": "kwai://search?keyword=李秀妍&sessionId=MzIwXzBfMTc5MzY5MTM3MTM2Nl9fODE5OA&source=se…",
"backgroundColor": "#444444",
"bottomWeakStyleType": 0,
"enableForceClose": false,
"fontColor": "#FFFFFF",
"fontSize": 13,
"iconHeight": 48,
"iconRightMargin": 4.0
},
"delayShowWeakStyle": false,
"playVideoEndToStrongMillis": 0,
"showStrongVideoCountdownMillis": 0,
"showStrongVideoMillis": 0,
"strongStyleCloseHideWeakStyle": false,
"styleTriggers": []
},
"eventTrackData": {
"all_source": "p2q_semantic_recall_v8,p2q_semantic_recall_v4,p2q_recall_exp_v16,p2q_recall_exp_…",
"entry_source": "search_entrance_featured_bottom_bar_profile",
"is_hotbar": "\u0000",
"query_id": "b2cff3d98343317003b3003769567d54",
"query_list_id": "MzIwXzBfMTc5MzY5MTM3MTM2Nl9fODE5OA",
"query_name": "李秀妍",
"rel_score": "0.059634",
"stg_recall_source": "p2q_recall_exp_v12"
}
},
"canShowQuickCommentGuide": true,
"caption": "#李秀妍u #刘屹琦 #喜爱度激励计划",
"captionToComment": "#李秀妍u #刘屹琦 #喜爱度激励计划",
"collect_count": 9,
"commentGuessSearch": {
"displayPrefix": "相关搜索:",
"extParams": "{\"all_source\":\"p2q_semantic_recall_v8,p2q_semantic_recall_v4,p2q_recall_exp_v16,…",
"iconUrl": "https://ali2.a.kwimgs.com/udata/pkg/se-cdn/search_blue3x.png",
"searchWord": "李秀妍",
"searchWordMD5": "b2cff3d98343317003b3003769567d54",
"searchWordUrl": "kwai://search?keyword=李秀妍&sessionId=MzIwXzBfMTc5MzY5MTM3MTM2Nl9fODE5OA&source=se…",
"sessionId": "MzIwXzBf…"
},
"commentInfo": {
"commentEducationGuide": {
"guideType": 0,
"triggerCharCount": 0
},
"enableAIPresetGuide": false,
"permissions": 191
},
"commentTopBarPriority": [
{
"bizType": "PLC",
"subBizType": "51"
}
],
"comment_count": 2,
"contactRelationFriend": false,
"coronaCaption": {
"captionSource": 1,
"detailCaption": {
"caption": "#李秀妍u #刘屹琦 #喜爱度激励计划",
"captionSource": 1,
"tagClickable": false
},
"tabCaption": "#李秀妍u #刘屹琦 #喜爱度激励计划"
}
}
],
"host-name": "public-bjx-c26-kce-node1143.idchb1az1.hb1.kwaidc.com",
"isUnfollowFeeds": false,
"llsid": "2010240768896749585",
"pcursor": "1.789836380852E12",
"result": 1
}
Response fields
| Field | Meaning |
|---|---|
feeds[] | One posted video. The list holds one entry per video on the page. |
feeds[].caption | Caption text of the video, including hashtags. |
feeds[].like_count / feeds[].comment_count / feeds[].collect_count / feeds[].forward_count | Counts of likes, comments, saves and shares for the video. |
feeds[].duration | Length of the video. The value 28266 suggests milliseconds, but the response does not state the unit. |
feeds[].ext_params.w / feeds[].ext_params.h | Width and height of the video. |
feeds[].cover_thumbnail_urls[].url | Cover image URL for the video. Each entry lists the cdn host it is served from. |
feeds[].headurls[].url | Avatar image URL of the posting user. Each entry lists the cdn host. |
feeds[].exp_tag | Tag string for the item. It contains an ID with a _p0 suffix. |
feeds[].liked / feeds[].following | Flags for whether the current viewer liked the video or follows the author. Both are 0 in this response. |
Notes
- Leave
pcursorempty on the first call. For later pages, pass thepcursorvalue from the previous response. sortacceptslatest(default) orhot.- To find a
user_idfrom a name, try Kuaishou User Search (V2). - For a creator's profile details, call Kuaishou Single User Data (V2).
Pricing
$0.01 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-post-v2" \
-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. 參數
pcursorstring
Video cursor, empty for the first request, and use the pcursor value in the returned response for subsequent requests.
sortstring
Sort type, latest (default) / hot.
可能值:latest, hot
4. 回應
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
相關 APIs
| API | 價格 | 回應 |
|---|---|---|
Kuaishou | 每次呼叫 $0.01 | JSON |
Kuaishou | 每次呼叫 $0.001 | JSON |
Kuaishou | 每次呼叫 $0.001 | JSON |
Kuaishou | 每次呼叫 $0.001 | JSON |
Kuaishou | 每次呼叫 $0.001 | JSON |
Kuaishou | 每次呼叫 $0.001 | JSON |
問題
常見問題
我要如何使用 Kuaishou User Video List (V2) API?
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/kuaishou/app/user-post-v2。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
Kuaishou User Video List (V2) API 的費用是多少?
每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
Kuaishou User Video List (V2) API 接受哪些參數?
必要:user_id (string)。 選填:pcursor (string) 和 sort(latest, hot 之一)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
Kuaishou User Video List (V2) API 會回傳什麼?
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
我需要 Kuaishou 開發者帳號或 API 金鑰嗎?
不需要。Kuaishou User Video List (V2) 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Kuaishou API 存取權。
