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.
- Giá
- $0.01USD / lượt gọi
- Phương thức
- POST
- Phản hồi
- JSON
- Tham số
- 1 bắt buộc · 2 tùy chọn
Phòng thử nghiệm
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
README API
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.
Bắt đầu xây dựng
Gửi request đầu tiên của bạn
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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. Xác thực
Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
3. Tham số
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.
Giá trị có thể dùng: latest, hot
4. Phản hồi
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
APIs liên quan
| API | Giá | Phản hồi |
|---|---|---|
Kuaishou | $0.01 mỗi lần gọi | JSON |
Kuaishou | $0.001 mỗi lần gọi | JSON |
Kuaishou | $0.001 mỗi lần gọi | JSON |
Kuaishou | $0.001 mỗi lần gọi | JSON |
Kuaishou | $0.001 mỗi lần gọi | JSON |
Kuaishou | $0.001 mỗi lần gọi | JSON |
Câu hỏi
FAQ
Làm thế nào để dùng API Kuaishou User Video List (V2)?
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/kuaishou/app/user-post-v2 với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
API Kuaishou User Video List (V2) có giá bao nhiêu?
$0.01 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
API Kuaishou User Video List (V2) chấp nhận những tham số nào?
Bắt buộc: user_id (string). Tùy chọn: pcursor (string) và sort (một trong số latest, hot). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
API Kuaishou User Video List (V2) trả về gì?
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Tôi có cần tài khoản nhà phát triển hoặc API key của Kuaishou không?
Không. Kuaishou User Video List (V2) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Kuaishou.
