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?
向 https://api.sandbase.ai/v1/api/kuaishou/app/user-post-v2 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 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 key 吗?
不需要。Kuaishou User Video List (V2) 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Kuaishou API 访问权限。
