Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Kuaishou Video Details by URL

API 文档
https://api.sandbase.ai/v1/api/kuaishou/app/one-video-by-url

Returns video and photo information for a single Kuaishou post using its shared link. Input the full share URL to retrieve media metadata.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 0 个可选

Playground

输入
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

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_count and collect_count for 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

NameTypeRequiredDescription
share_textstringYes

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

FieldMeaning
photos[]List of posts found for the link. A single share URL returns one item.
photos[].captionPost text, including mentions and hashtags.
photos[].like_count / comment_count / collect_count / forward_countEngagement counts for the post: likes, comments, collects and forwards.
photos[].durationVideo 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[].urlDirect video file URL. Each item also has a cdn host name, so the same file is listed on several hosts.
photos[].cover_thumbnail_urls[].urlCover image URL for the post, listed once per CDN host.
photos[].headurls[].urlAvatar image URL, listed once per CDN host.
photos[].ext_params.w / hWidth and height of the video in pixels.
photos[].captionSearchInfo.searchWordListSearch 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, in share_text.
  • The response has result set to 1 in the example call.
  • Video and cover URLs include a pkey or tag query 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.

探索更多

相关 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 Video Details by URL API?

向 https://api.sandbase.ai/v1/api/kuaishou/app/one-video-by-url 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 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 key 吗?

不需要。Kuaishou Video Details by URL 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Kuaishou API 访问权限。