Kuaishou App Share Link
https://api.sandbase.ai/v1/api/kuaishou/app/generate-share-linkGenerates a shareable URL for Kuaishou application content using a specified object identifier. Returns share link details for the target item.
- 가격
- $0.001USD / 호출
- 메서드
- POST
- 응답
- JSON
- 매개변수
- 필수 1개 · 선택 사항 0개
Playground
[
{
"data": {
"cache-scope": "nocache",
"debug_id": "b29b9231",
"debug_info": "gAAAAABqu8V2eDqb7NVzcWkUknoPfHrYToTHauEsYSX1BYLDfRRiLXGgP3_WGYSROpwzaqK1bYvZAZnnkVW4AALa3CCiYs4pJdSZRrDeCVVmrVURHm-VuMYquA3roVfGMc10m4-T3FvNbXi2kDwneoqGBcH8aVVEroYYUKiv0CCXJQKdxL6RWCFyshBCWWpc1m8afMK-mDV6_Hj94YuHuTLXCGNpR8dlgwrQF6-FcxrTroSYAfmJPU5mrV5uGGCyVww8blaU78V2bdEfqKOO8Ihcn0inhT-Wig==",
"error_msg": null,
"host-name": "public-bjy-c34-kce-node2700.idchb1az2.hb1.kwaidc.com",
"hostName": "public-bjy-c34-kce-node2700.idchb1az2.hb1.kwaidc.com",
"max-age": 0,
"result": 1,
"share": {
"appIconUrl": "https://static.yximgs.com/udata/pkg/ks-share-sdk/cardlogonew.png",
"appName": "as",
"extParams": {
"battleTemplateId": "",
"expTag": "1_i/0_unknown0",
"logExt": "{\"expTag\":\"1_i/0_unknown0\",\"trendingType\":\"\"}",
"shareInfoWrap": "{\"shareTitleInfo\":{\"title\":\"分享一个作品给你\",\"subTitle\":\"推荐你看这个视频\"},\"shareId\":\"19130497630559\",\"docId\":9,\"groupName\":\"\",\"shareType\":\"PHOTO_OTHER\",\"coverUrlKey\":null,\"coverUrl\":null,\"tagType\":null,\"webShareVerifyData\":null}",
"shareMethod": "token",
"shareMode": "app",
"styleKey": "",
"templateGenerationType": "",
"templateStyle": "",
"tokenExtParams": "{}",
"useMmuTitle": false
},
"kpn": "KUAISHOU",
"shareChannel": "COPY_LINK",
"shareMethod": "TOKEN",
"shareMethodType": null,
"shareMode": "APP",
"shareObject": {
"copyPopupWindowType": "DEFAULT",
"copylinkFailedTips": "Copy failed",
"copylinkSuccessTips": "Copied successfully, go share it with friends",
"kwaiToken": "Xfka1TLTmsN1n6",
"shareId": "19130497630559",
"shareMessage": "https://v.kuaishou.com/JeontTKZ 被好的风景收买,剩下的全是好心情”\"手机摄影 \"水下摄影 \"治愈系 This work has been played 302.5Ten thousand times in Kwai and click this link and open 【Kwai】to view!",
"shareObjectId": "3xg5wjqdtekbb3u",
"shareResourceType": "PHOTO_OTHER",
"shortLink": "https://v.kuaishou.com/JeontTKZ",
"toastDisplayTimeMillis": 1000
},
"subBiz": "BROWSE_SLIDE_PHOTO"
}
}
}
]예시
예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
API README
Kuaishou App Share Link API
This API returns a Kuaishou share link for one work. You send the work ID as shareObjectId, and it returns a short link, a share message with a copy-ready caption, and share metadata.
Use cases
- Turn a Kuaishou work ID into a
https://v.kuaishou.com/...short link to post in chats or on other platforms. - Build a share caption for a video from the ready-made
shareMessagetext. - Store the short link next to a work ID in a content tracking sheet.
- Check which share type and resource type Kuaishou assigns to a given work.
Request
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/app/generate-share-link" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"shareObjectId": "3xg5wjqdtekbb3u"}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
shareObjectId | string | Yes |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"cache-scope": "nocache",
"debug_id": "c1b8d08e",
"debug_info": "gAAAAABq6Y7dAVOq-kfXfhMBrCWnwIAjc-dL-69vD4Ur_tjq-1uHCNQygWN0-jpkN1RJuR-tJhcrEiga…",
"error_msg": null,
"host-name": "public-bjx-c34-kce-node9.idchb1az1.hb1.kwaidc.com",
"hostName": "public-bjx-c34-kce-node9.idchb1az1.hb1.kwaidc.com",
"max-age": 0,
"result": 1,
"share": {
"appIconUrl": "https://static.yximgs.com/udata/pkg/ks-share-sdk/cardlogonew.png",
"appName": "as",
"extParams": {
"battleTemplateId": "",
"expTag": "1_i/0_unknown0",
"logExt": "{\"expTag\":\"1_i/0_unknown0\",\"trendingType\":\"\"}",
"shareInfoWrap": "{\"shareTitleInfo\":{\"title\":\"分享一个作品给你\",\"subTitle\":\"推荐你看这个视频\"},\"shareId\":\"19167006…",
"shareMethod": "token",
"shareMode": "app",
"styleKey": "",
"templateGenerationType": "",
"templateStyle": "",
"tokenExtParams": "{}",
"useMmuTitle": false
},
"kpn": "KUAISHOU",
"shareChannel": "COPY_LINK",
"shareMethod": "TOKEN",
"shareMethodType": null,
"shareMode": "APP",
"shareObject": {
"copyPopupWindowType": "DEFAULT",
"copylinkFailedTips": "Copy failed",
"copylinkSuccessTips": "Copied successfully, go share it with friends",
"kwaiToken": "X8XgJpxj…",
"shareId": "19167006876328",
"shareMessage": "https://v.kuaishou.com/KcrZIFsI 被好的风景收买,剩下的全是好心情”\"手机摄影 \"水下摄影 \"治愈系 This work has …",
"shareObjectId": "3xg5wjqdtekbb3u",
"shareResourceType": "PHOTO_OTHER",
"shortLink": "https://v.kuaishou.com/KcrZIFsI",
"toastDisplayTimeMillis": 1000
},
"subBiz": "BROWSE_SLIDE_PHOTO"
}
}
Response fields
| Field | Meaning |
|---|---|
share.shareObject.shortLink | Short URL for the work, on the v.kuaishou.com domain. |
share.shareObject.shareMessage | Full share text. It holds the short link, the work caption with hashtags, and a play count line. |
share.shareObject.shareObjectId | The work ID you sent in the request. |
share.shareObject.kwaiToken | Token string tied to this share. Kuaishou uses it for the token share method. |
share.shareObject.shareId | ID of this share action. |
share.shareObject.shareResourceType | Type of the shared resource, for example PHOTO_OTHER. |
share.shareChannel / share.shareMethod / share.shareMode | How the share is made. The sample shows COPY_LINK, TOKEN and APP. |
share.shareObject.copylinkSuccessTips / share.shareObject.copylinkFailedTips | Text the app shows after a copy succeeds or fails. |
share.extParams.shareInfoWrap | JSON string with extra share details, such as the share title and subtitle text. Parse it before you read it. |
result | Status code of the call. The sample returns 1. |
Notes
- Use the work ID from a video response as
shareObjectId. The ID in the example looks like3xg5wjqdtekbb3u. - Call Kuaishou Video Details (V1) to check the work before you build its share link.
- Use Kuaishou Web Share Short URL if you need a share link from the web side.
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/generate-share-link" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"shareObjectId": "3xg5wjqdtekbb3u"
}'2. 인증
서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
3. 파라미터
4. 응답
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"data": {
"cache-scope": "nocache",
"debug_id": "b29b9231",
"debug_info": "gAAAAABqu8V2eDqb7NVzcWkUknoPfHrYToTHauEsYSX1BYLDfRRiLXGgP3_WGYSROpwzaqK1bYvZAZnnkVW4AALa3CCiYs4pJdSZRrDeCVVmrVURHm-VuMYquA3roVfGMc10m4-T3FvNbXi2kDwneoqGBcH8aVVEroYYUKiv0CCXJQKdxL6RWCFyshBCWWpc1m8afMK-mDV6_Hj94YuHuTLXCGNpR8dlgwrQF6-FcxrTroSYAfmJPU5mrV5uGGCyVww8blaU78V2bdEfqKOO8Ihcn0inhT-Wig==",
"error_msg": null,
"host-name": "public-bjy-c34-kce-node2700.idchb1az2.hb1.kwaidc.com",
"hostName": "public-bjy-c34-kce-node2700.idchb1az2.hb1.kwaidc.com",
"max-age": 0,
"result": 1,
"share": {
"appIconUrl": "https://static.yximgs.com/udata/pkg/ks-share-sdk/cardlogonew.png",
"appName": "as",
"extParams": {
"battleTemplateId": "",
"expTag": "1_i/0_unknown0",
"logExt": "{\"expTag\":\"1_i/0_unknown0\",\"trendingType\":\"\"}",
"shareInfoWrap": "{\"shareTitleInfo\":{\"title\":\"分享一个作品给你\",\"subTitle\":\"推荐你看这个视频\"},\"shareId\":\"19130497630559\",\"docId\":9,\"groupName\":\"\",\"shareType\":\"PHOTO_OTHER\",\"coverUrlKey\":null,\"coverUrl\":null,\"tagType\":null,\"webShareVerifyData\":null}",
"shareMethod": "token",
"shareMode": "app",
"styleKey": "",
"templateGenerationType": "",
"templateStyle": "",
"tokenExtParams": "{}",
"useMmuTitle": false
},
"kpn": "KUAISHOU",
"shareChannel": "COPY_LINK",
"shareMethod": "TOKEN",
"shareMethodType": null,
"shareMode": "APP",
"shareObject": {
"copyPopupWindowType": "DEFAULT",
"copylinkFailedTips": "Copy failed",
"copylinkSuccessTips": "Copied successfully, go share it with friends",
"kwaiToken": "Xfka1TLTmsN1n6",
"shareId": "19130497630559",
"shareMessage": "https://v.kuaishou.com/JeontTKZ 被好的风景收买,剩下的全是好心情”\"手机摄影 \"水下摄影 \"治愈系 This work has been played 302.5Ten thousand times in Kwai and click this link and open 【Kwai】to view!",
"shareObjectId": "3xg5wjqdtekbb3u",
"shareResourceType": "PHOTO_OTHER",
"shortLink": "https://v.kuaishou.com/JeontTKZ",
"toastDisplayTimeMillis": 1000
},
"subBiz": "BROWSE_SLIDE_PHOTO"
}
}
}
]더 살펴보기
관련 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 App Share Link API를 어떻게 사용하나요?
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/kuaishou/app/generate-share-link에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
Kuaishou App Share Link API 비용은 얼마인가요?
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
Kuaishou App Share Link API는 어떤 매개변수를 받나요?
필수: shareObjectId (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
Kuaishou App Share Link API는 무엇을 반환하나요?
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
Kuaishou 개발자 계정이나 API 키가 필요한가요?
아니요. Kuaishou App Share Link은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Kuaishou API 액세스를 별도로 신청할 필요는 없습니다.
