Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Kuaishou App Share Link

เอกสาร API
https://api.sandbase.ai/v1/api/kuaishou/app/generate-share-link

Generates a shareable URL for Kuaishou application content using a specified object identifier. Returns share link details for the target item.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 2.3 KB · 49 บรรทัด
[
  {
    "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"
      }
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

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 shareMessage text.
  • 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

NameTypeRequiredDescription
shareObjectIdstringYes

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

FieldMeaning
share.shareObject.shortLinkShort URL for the work, on the v.kuaishou.com domain.
share.shareObject.shareMessageFull share text. It holds the short link, the work caption with hashtags, and a play count line.
share.shareObject.shareObjectIdThe work ID you sent in the request.
share.shareObject.kwaiTokenToken string tied to this share. Kuaishou uses it for the token share method.
share.shareObject.shareIdID of this share action.
share.shareObject.shareResourceTypeType of the shared resource, for example PHOTO_OTHER.
share.shareChannel / share.shareMethod / share.shareModeHow the share is made. The sample shows COPY_LINK, TOKEN and APP.
share.shareObject.copylinkSuccessTips / share.shareObject.copylinkFailedTipsText the app shows after a copy succeeds or fails.
share.extParams.shareInfoWrapJSON string with extra share details, such as the share title and subtitle text. Parse it before you read it.
resultStatus code of the call. The sample returns 1.

Notes

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
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

คู่มือ:Best Kuaishou API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Kuaishou App Share Link API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/kuaishou/app/generate-share-link โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Kuaishou App Share Link API ราคาเท่าไร?

$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Kuaishou App Share Link API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: shareObjectId (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Kuaishou App Share Link API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Kuaishou ไหม?

ไม่จำเป็น Kuaishou App Share Link ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Kuaishou API แยกต่างหาก