Kuaishou Video Details by URL
https://api.sandbase.ai/v1/api/kuaishou/app/one-video-by-urlReturns video and photo information for a single Kuaishou post using its shared link. Input the full share URL to retrieve media metadata.
- Giá
- $0.001USD / lượt gọi
- Phương thức
- POST
- Phản hồi
- JSON
- Tham số
- 1 bắt buộc · 0 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 Video Details by URL API
Returns metadata for a single Kuaishou post: caption, engagement counts, duration, cover images, author avatar and video file URLs. It needs one input, share_text, which is the full share URL of the post.
Use cases
- Fetch the caption, hashtags and like count of a post from a shared Kuaishou link.
- Get the video file URLs of a post so you can archive or preview the media.
- Track
like_count,comment_countandcollect_countfor a specific post over time. - Pull cover image URLs to build link previews for Kuaishou posts.
Request
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/app/one-video-by-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"share_text": "https://v.kuaishou.com/cNYP0Z"}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
share_text | string | Yes |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"host-name": "public-bjx-c34-kce-node832.idchb1az1.hb1.kwaidc.com",
"photos": [
{
"adminTags": [],
"canShowQuickCommentGuide": true,
"caption": "哥哥我会魔法一人就能变成两@李秀妍u(O4489551526) #李秀妍u #为自己代言",
"captionSearchInfo": {
"actionUrlList": [
"kwai://search?keyword=%E5%93%A5%E5%93%A5%E6%88%91%E4%BC%9A%E9%AD%94%E6%B3%95&ses…"
],
"captionSearchType": 2,
"dataSource": 0,
"extParams": "{\"entrySourceList\":[\"search_entrance_cap_keyword\"]}\n",
"offsetList": [
0
],
"queryIdList": [
"12884d6cc3162e18e00d3f66e82dc247"
],
"searchWordList": [
"哥哥我会魔法"
],
"sessionId": "MzIwXzBf…"
},
"captionToComment": "哥哥我会魔法一人就能变成两@李秀妍u(O4489551526) #李秀妍u #为自己代言",
"collect_count": 9947,
"commentGuessSearch": {
"displayPrefix": "相关搜索:",
"extParams": "{\"all_source\":\"p2q_semantic_recall_v8\",\"entrySource\":\"search_entrance_comment_tr…",
"iconUrl": "https://ali2.a.kwimgs.com/udata/pkg/se-cdn/search_blue3x.png",
"searchWord": "李秀妍跳舞后背录屏",
"searchWordMD5": "1f4a5960222268ee00ee0f66d2039d43",
"searchWordUrl": "kwai://search?keyword=李秀妍跳舞后背录屏&sessionId=MzIwXzBfMTc5MzY5MTM3MDY4OV9fNTc4OA&sou…",
"sessionId": "MzIwXzBf…"
},
"commentInfo": {
"commentCountSpecialEffect": true,
"commentEducationGuide": {
"guideType": 0,
"triggerCharCount": 0
},
"commentIconType": 0,
"enableAIPresetGuide": false,
"permissions": 191
},
"commentTopBarPriority": [
{
"bizType": "PLC",
"subBizType": "51"
}
],
"comment_count": 3053,
"coronaVipInfo": {
"enableFilmAd": false,
"filmAdInfo": {
"pageId": 100014436,
"posId": 9777,
"subPageId": 100017199
},
"inspireAdInfo": {
"pageId": 100011251,
"posId": 20578,
"subPageId": 100024209
},
"vipPhoto": false
},
"cover_thumbnail_urls": [
{
"cdn": "zj66.a.kwimgs.com",
"url": "http://zj66.a.kwimgs.com/upic/2024/12/29/22/BMjAyNDEyMjkyMjE1NDJfMzc5NTIxNDQxMV8…"
}
]
}
],
"result": 1
}
Response fields
| Field | Meaning |
|---|---|
photos[] | List of posts found for the link. A single share URL returns one item. |
photos[].caption | Post text, including mentions and hashtags. |
photos[].like_count / comment_count / collect_count / forward_count | Engagement counts for the post: likes, comments, collects and forwards. |
photos[].duration | Video length. The value 30266 matches ext_params.video, so it looks like milliseconds, which fits a clip of about 30 seconds. |
photos[].main_mv_urls[].url | Direct video file URL. Each item also has a cdn host name, so the same file is listed on several hosts. |
photos[].cover_thumbnail_urls[].url | Cover image URL for the post, listed once per CDN host. |
photos[].headurls[].url | Avatar image URL, listed once per CDN host. |
photos[].ext_params.w / h | Width and height of the video in pixels. |
photos[].captionSearchInfo.searchWordList | Search keywords parsed from the caption. |
photos[].commentTopBarPriority[] | Order of the bars shown above the comments, each with bizType and subBizType. |
Notes
- Pass the full share link, such as
https://v.kuaishou.com/cNYP0Z, inshare_text. - The response has
resultset to1in the example call. - Video and cover URLs include a
pkeyortagquery value, so use the full URL as returned. - To read the comments of the post, call Kuaishou Video Comments (App).
Pricing
$0.001 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/one-video-by-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"share_text": "https://v.kuaishou.com/cNYP0Z"
}'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ố
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.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 |
Kuaishou | $0.001 mỗi lần gọi | JSON |
Câu hỏi
FAQ
Làm thế nào để dùng API Kuaishou Video Details by URL?
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/kuaishou/app/one-video-by-url 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 Video Details by URL có giá bao nhiêu?
$0.001 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 Video Details by URL chấp nhận những tham số nào?
Bắt buộc: share_text (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
API Kuaishou Video Details by URL 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 Video Details by URL 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.
