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

Kuaishou Single Video by URL

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

Retrieves video manifest data and streaming representation details for a specific Kuaishou post using its web link. Returns media properties such as resolution, frame rate, and direct video URLs.

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

Playground

输入
输出就绪

您的输出将显示在这里

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

API README

Kuaishou Single Video by URL API

Returns details for one Kuaishou post, including the author, engagement counts, cover images, direct video URLs and a stream manifest with the available quality representations. It needs a Kuaishou post link in url, such as a v.kuaishou.com short link.

Use cases

  • Download or play a Kuaishou video by taking direct file links from photo.mainMvUrls.
  • Compare the bitrate variants of one video using photo.manifest.adaptationSet[].representation[].
  • Track the views, likes, comments and shares of a post from a shared link.
  • Check who published a post and whether the account is verified.

Request

curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/web/one-video-by-url" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://v.kuaishou.com/GKTpYm"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
urlstringYes

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "counts": {
    "collectionCount": 1836,
    "fanCount": 69651241,
    "followCount": 5,
    "photoCount": 10863
  },
  "photo": {
    "adminTags": [],
    "caption": "现场视频!中央军委政治工作会议在延安召开,习近平出席会议并发表重要讲话。(来源:央视时政)",
    "cccCoverMap": {
      "height": 1155,
      "width": 870
    },
    "commentCount": 2820,
    "commentShowType": 2,
    "coverUrls": [
      {
        "cdn": "p23.a.yximgs.com",
        "url": "https://p23.a.yximgs.com/upic/2024/06/19/21/BMjAyNDA2MTkyMTA5NDJfMTA5NjYzNzQwMV8…"
      }
    ],
    "duration": 15682,
    "exp_tag": "1_u/2006456229091442258_s0",
    "ext_params": {
      "color": "191818",
      "h": 960,
      "interval": 29,
      "mtype": 3,
      "sound": 15701,
      "video": 15682,
      "w": 720
    },
    "forcePublic": "H4sIAAAAAAAA%2F%2BNQEmCQ2Hn35s4fzABK4wL6CwAAAA%3D%3D",
    "forwardCount": 0,
    "headUrl": "https://p4-pro.a.yximgs.com/uhead/AB/2022/12/07/19/BMjAyMjEyMDcxOTEyMzFfMTA5NjYz…"
  },
  "result": 1
}

Response fields

FieldMeaning
photo.photoId / photo.photoTypeThe ID of the post and its type. In this response the type is VIDEO.
photo.captionThe text that the author wrote for the post.
photo.viewCount / likeCount / commentCount / shareCount / forwardCountEngagement counts for the post. Each key is a separate count, for example photo.viewCount for views and photo.likeCount for likes.
photo.timestampThe time of the post as a 13-digit number. It looks like a Unix time in milliseconds.
photo.duration / photo.width / photo.heightThe length and the pixel size of the video. photo.duration is 15682 in this response, which fits milliseconds.
photo.mainMvUrls[].url / photo.mainMvUrls[].cdnDirect MP4 links to the video, each on a different CDN host. The links carry signed query strings.
photo.coverUrls[].url / photo.webpCoverUrls[].urlCover image links in JPG and WebP form, one for each CDN host.
photo.manifest.adaptationSet[].representation[]One entry per available encoding of the video. Each entry has avgBitrate, backupUrl and a comment that names the codec and the resolution tier.
photo.userName / photo.userId / photo.userEid / photo.kwaiIdThe author's display name, numeric ID, encoded ID and Kuaishou ID.
photo.verified / photo.verifiedDetail.descriptionShows whether the author is verified and the verification label. In this response the label is the name of a news organisation.
counts.fanCount / counts.photoCount / counts.followCount / counts.collectionCountCounts for the author's account, such as followers and number of posts.

Notes

  • Pass a Kuaishou share link in url. The example uses the short form https://v.kuaishou.com/GKTpYm.
  • photo.photoId is a numeric string. You can use it with Kuaishou Single Video Details for more post data.
  • Use Kuaishou Video Comments (Web) to read the comments on the post.
  • The result field is 1 in this successful response.

Pricing

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

探索更多

相关 APIs

全部 APIs
API价格响应
Kuaishou$0.002 每次调用JSON
Kuaishou$0.001 每次调用JSON
Kuaishou$0.001 每次调用JSON
Kuaishou$0.001 每次调用JSON
Kuaishou$0.001 每次调用JSON
Kuaishou$0.002 每次调用JSON

指南:Best Kuaishou API in 2026: Pricing Compared

问题

常见问题

如何使用 Kuaishou Single Video by URL API?

向 https://api.sandbase.ai/v1/api/kuaishou/web/one-video-by-url 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Kuaishou Single Video by URL API 的价格是多少?

每次调用 $0.002,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Kuaishou Single Video by URL API 接受哪些参数?

必填:url (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Kuaishou Single Video by URL API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Kuaishou 开发者账户或 API key 吗?

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