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.
- 가격
- $0.001USD / 호출
- 메서드
- POST
- 응답
- JSON
- 매개변수
- 필수 1개 · 선택 사항 0개
Playground
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
API README
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.
빌드를 시작하세요
첫 요청 보내기
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
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. 인증
서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
3. 파라미터
4. 응답
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
관련 API
| API | 가격 | 응답 |
|---|---|---|
Kuaishou | $0.001 / 호출 | JSON |
Kuaishou | $0.001 / 호출 | JSON |
Kuaishou | $0.001 / 호출 | JSON |
Kuaishou | $0.001 / 호출 | JSON |
Kuaishou | $0.001 / 호출 | JSON |
Kuaishou | $0.001 / 호출 | JSON |
질문
FAQ
Kuaishou Video Details by URL API를 어떻게 사용하나요?
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/kuaishou/app/one-video-by-url에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
Kuaishou Video Details by URL API 비용은 얼마인가요?
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
Kuaishou Video Details by URL API는 어떤 매개변수를 받나요?
필수: share_text (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
Kuaishou Video Details by URL API는 무엇을 반환하나요?
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
Kuaishou 개발자 계정이나 API 키가 필요한가요?
아니요. Kuaishou Video Details by URL은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Kuaishou API 액세스를 별도로 신청할 필요는 없습니다.
