keywordstringจำเป็น
The search keyword to find videos.
https://api.sandbase.ai/v1/api/kuaishou/search-videoSearch public Kuaishou videos by keyword with cursor-based pagination. Use it to discover relevant videos and continue through additional result pages.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns a page of public Kuaishou video results for a search keyword. Each result is a feed item with caption, rank and some engagement data. The only required input is keyword.
collect_count across results to spot videos that viewers save often.cursor to build a larger set of videos for one keyword.curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/search-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "美食"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | The search keyword to find videos. |
cursor | string | No | Pagination cursor returned by the previous response. Omit or leave blank for the first page; maximum 256 characters. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"cursor": "dks_7d02ffa7e12141128d4dcf3d058f9447",
"mixFeeds": [
{
"atmosphereType": 0,
"extInfo": {
"clickTriggerInnerStream": false,
"ext_params": {
"relevance_score": "0.9887988"
},
"feedback": {
"contentList": [
{
"id": "search_quality2",
"text": "内容违规、血腥、低俗"
}
],
"otherContent": {
"id": "search_other",
"text": "其他"
},
"unInterestList": [
{
"id": "search_seenlonger",
"text": "不再看到该作者"
}
]
},
"recallSource": "0",
"screenItemKey": "PHOTO$$1$$0",
"showPlcFeatureEntry": false,
"showPoiInfo": false
},
"feed": {
"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=MzIwXzBfMTc5MzY5MTM3NzE2OF9fMzI3Ng&source=se…",
"backgroundColor": "#333333",
"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_v1,p2q_query_extend",
"entry_source": "search_entrance_featured_bottom_bar_search",
"is_hotbar": "\u0000",
"query_id": "24e3f6c493a47d34d831d5623556fbd3",
"query_list_id": "MzIwXzBfMTc5MzY5MTM3NzE2OF9fMzI3Ng",
"query_name": "吃套餐",
"rel_score": "0.736762",
"stg_recall_source": "p2q_query_extend"
}
},
"canShowQuickCommentGuide": true,
"caption": "天天下雨都不知道更新什么了😔,希望不要挑剔…记录生活📝",
"captionToComment": "天天下雨都不知道更新什么了😔,希望不要挑剔…记录生活📝",
"clearScreenSameAuthorCount": 3218,
"collect_count": 3558,
"commentGuessSearch": {
"displayPrefix": "相关搜索:",
"extParams": "{\"all_source\":\"p2q_semantic_recall_v4,p2q_query_extend\",\"entrySource\":\"search_en…",
"iconUrl": "https://ali2.a.kwimgs.com/udata/pkg/se-cdn/search_blue_ios_3x.png",
"searchWord": "农村小石犯了什么罪",
"searchWordMD5": "3b004fb7d70f1cbe187c5eb1f0108c83",
"searchWordUrl": "kwai://search?keyword=农村小石犯了什么罪&sessionId=MzIwXzBfMTc5MzY5MTM3NzE2OF9fMzI3Ng&sou…",
"sessionId": "MzIwXzBf…"
}
},
"feedLogCtx": {
"stidContainer": "IpgBMXwyMDEwMjY4MDU2MjYxMDU5MjgxfHBob3RvOjUyMjI3NjgyMTk1NjA4MDE4NzB8eyJwZyI6InNj…"
},
"isSingleColumnMode": false,
"itemTransferInfo": "{\"refer_single_double_type\":0}",
"itemType": 5,
"rank": 0,
"searchTitleInfo": {
"actionType": 1,
"colorDark": "#E6E6E6",
"colorLight": "#222222",
"enableBgColor": true,
"fontSize": 14,
"fontWeight": 500,
"keywordList": [
{
"colorDark": "#F73B68",
"colorLight": "#FE3666",
"fontSize": 14,
"fontWeight": 500,
"keyword": "热评",
"keywordMode": 1
}
],
"maxLines": 2
}
}
]
}
| Field | Meaning |
|---|---|
cursor | Pagination token for the next page. Send it back as the cursor parameter. |
mixFeeds[] | List of search result items for the current page. |
mixFeeds[].feed.caption | Video caption text, including hashtags and emoji. |
mixFeeds[].feed.collect_count | Number of collects (saves) the video has. It appears only on some items. |
mixFeeds[].feed.clearScreenSameAuthorCount | A count tied to the same author as the video. The response does not explain it further. |
mixFeeds[].rank | Position of the item in the result list, starting at 0. |
mixFeeds[].extInfo.ext_params.relevance_score | Relevance score of the item for the keyword, as a string such as 0.9887988. |
mixFeeds[].feed.captionSearchInfo.searchWordList[] | Search phrases the platform extracted from the caption. |
mixFeeds[].feed.bottomEntryInfo.eventTrackData.query_name | Suggested related search phrase shown with the video, such as 吃套餐. |
mixFeeds[].itemType | Numeric item type code. All items in this sample use 5. |
cursor for the first page. For the next page, pass the top-level cursor value from the previous response, for example dks_7d02ffa7e12141128d4dcf3d058f9447. The maximum length is 256 characters.feed object first.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/search-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "美食"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
keywordstringจำเป็นThe search keyword to find videos.
cursorstringPagination cursor returned by the previous response. Omit or leave blank for the first page; maximum 256 characters.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Kuaishou Video SearchAPI นี้ Kuaishou | $0.014286 ต่อการเรียก | JSON |
Kuaishou | $0.001 ต่อการเรียก | JSON |
Kuaishou | $0.001 ต่อการเรียก | JSON |
Kuaishou | $0.001 ต่อการเรียก | JSON |
Kuaishou | $0.001 ต่อการเรียก | JSON |
Kuaishou | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/kuaishou/search-video โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: keyword (string). ตัวเลือก: cursor (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Kuaishou Video Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Kuaishou API แยกต่างหาก