Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Kuaishou Single Video Details (V2)

Dokumentasi API
https://api.sandbase.ai/v1/api/kuaishou/web/one-video-v2

Retrieves video streaming manifests and media details for a specific Kuaishou video using its unique identifier.

Harga
$0.002USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 0 opsional

Playground

Input
OutputContoh
Responsoutputs · 15.4 KB · 355 baris
[
  {
    "data": {
      "counts": {
        "collectionCount": 9969,
        "fanCount": 362287,
        "followCount": 2,
        "photoCount": 676
      },
      "photo": {
        "adminTags": [],
        "caption": "哥哥我会魔法一人就能变成两@李秀妍u #李秀妍u #为自己代言",
        "commentCount": 3053,
        "commentShowType": 2,
        "coverUrls": [
          {
            "cdn": "p2.a.yximgs.com",
            "url": "https://p2.a.yximgs.com/upic/2024/12/29/22/BMjAyNDEyMjkyMjE1NDJfMzc5NTIxNDQxMV8xNTI1Mjk4MzQyMTZfMV8z_Bc5df74ce09a74cf24d0a32f663ff3665.jpg?clientCacheKey=3xgqdzu8cnrpmqq.jpg&di=3ac2a8d0&bp=10000"
          },
          {
            "cdn": "p23.a.yximgs.com",
            "url": "https://p23.a.yximgs.com/upic/2024/12/29/22/BMjAyNDEyMjkyMjE1NDJfMzc5NTIxNDQxMV8xNTI1Mjk4MzQyMTZfMV8z_Bc5df74ce09a74cf24d0a32f663ff3665.jpg?clientCacheKey=3xgqdzu8cnrpmqq.jpg&di=3ac2a8d0&bp=10000"
          }
        ],
        "duration": 30266,
        "exp_tag": "1_i/2006353974990195570_s0",
        "ext_params": {
          "color": "1B140F",
          "h": 960,
          "interval": 60,
          "mtype": 3,
          "sound": 30210,
          "video": 30266,
          "w": 720
        },
        "forcePublic": "H4sIAAAAAAAA%2F%2BNQEmCQeLHw0%2BwdLADBVRUjCwAAAA%3D%3D",
        "forwardCount": 0,
        "headUrl": "https://p2-pro.a.yximgs.com/uhead/AB/2024/11/24/18/BMjAyNDExMjQxODI2MzJfMzc5NTIxNDQxMV8xX2hkMjc4XzUyNg==_s.jpg",
        "headUrls": [
          {
            "cdn": "p2-pro.a.yximgs.com",
            "url": "https://p2-pro.a.yximgs.com/uhead/AB/2024/11/24/18/BMjAyNDExMjQxODI2MzJfMzc5NTIxNDQxMV8xX2hkMjc4XzUyNg==_s.jpg"
          },
          {
            "cdn": "p1-pro.a.yximgs.com",
            "url": "https://p1-pro.a.yximgs.com/uhead/AB/2024/11/24/18/BMjAyNDExMjQxODI2MzJfMzc5NTIxNDQxMV8xX2hkMjc4XzUyNg==_s.jpg"
          }
        ],
        "height": 960,
        "likeCount": 91759,
        "mainMvUrls": [
          {
            "cdn": "tymov2.a.kwimgs.com",
            "url": "https://tymov2.a.kwimgs.com/upic/2024/12/29/22/BMjAyNDEyMjkyMjE1NDJfMzc5NTIxNDQxMV8xNTI1Mjk4MzQyMTZfMV8z_b_B169ca308d01b75ca8c934f88fdd25804.mp4?clientCacheKey=3xgqdzu8cnrpmqq_b.mp4&tt=b&di=3ac2a8d0&bp=10000"
          },
          {
            "cdn": "txmov2.a.kwimgs.com",
            "url": "https://txmov2.a.kwimgs.com/upic/2024/12/29/22/BMjAyNDEyMjkyMjE1NDJfMzc5NTIxNDQxMV8xNTI1Mjk4MzQyMTZfMV8z_b_B169ca308d01b75ca8c934f88fdd25804.mp4?clientCacheKey=3xgqdzu8cnrpmqq_b.mp4&tt=b&di=3ac2a8d0&bp=10000"
          }
        ],
        "manifest": {
          "adaptationSet": [
            {
              "duration": 30333,
              "id": 1,
              "representation": [
                {
                  "agc": false,
                  "avgBitrate": 1339,
                  "backupUrl": [
                    "https://v23-3.kwaicdn.com/upic/2024/12/29/22/BMjAyNDEyMjkyMjE1NDJfMzc5NTIxNDQxMV8xNTI1Mjk4MzQyMTZfMV8z_b_B169ca308d01b75ca8c934f88fdd25804.mp4?pkey=AAUGatr8_12ZbJ78VYx_vgGzovFVjQ3luQsDa-srEpVHerph45QGHAI4JMRkzThAEMDkq96husZvCB9Z9qe8B3qR_V5G6EY-wMoSoXi-uFXJapTBe_YCy3SQB6Uz08Ec2f8&tag=1-1791290501-unknown-1-sdyqrnx44r-9a123f07c62a35fd&clientCacheKey=3xgqdzu8cnrpmqq_b.mp4&di=3ac2a8d0&bp=10000&kwai-not-alloc=38&tt=b&ss=vpm"
                  ],
                  "bitratePattern": [
                    1512,
                    1299,
                    1713,
                    "… 2 more items in the full response"
                  ],
                  "colorInfo": {},
                  "comment": "videoId=aae0a1df7ea3b7f0/ttExplain=AVC_VeryFast_720P_高码率_Basic/tt=b",
                  "defaultSelect": false,
                  "disableAdaptive": false,
                  "featureP2sp": false,
                  "fileSize": 5069145,
                  "frameRate": 60,
                  "hdrType": 0,
                  "height": 960,
                  "hidden": false,
                  "id": 1,
                  "kvqScore": {
                    "FR": -1,
                    "FRPost": -1,
                    "NR": -1,
                    "NRPost": -1,
                    "blur": 0.7045000195503235,
                    "kvqVersion": "v7",
                    "nnvcScore": -1,
                    "sharpness": 0.09300000220537186
                  },
                  "makeupGain": 0,
                  "maxBitrate": 4900,
                  "minorInfo": "-b1f1",
                  "mute": false,
                  "normalizeGain": 0,
                  "oriLoudness": 0,
                  "p2spCode": "{\"fRsn\":0,\"fixOpt\":-1,\"schTask\":\"\",\"schCode\":-1,\"schRes\":\"\",\"pushTask\":\"v=0&p=0&s=0&d=0\",\"pushCode\":-1}",
                  "quality": 1.5,
                  "qualityLabel": "高清",
                  "qualityType": "720p",
                  "realLoudness": -10.074,
                  "realNormalizeGain": 1,
                  "url": "https://v1.kwaicdn.com/upic/2024/12/29/22/BMjAyNDEyMjkyMjE1NDJfMzc5NTIxNDQxMV8xNTI1Mjk4MzQyMTZfMV8z_b_B169ca308d01b75ca8c934f88fdd25804.mp4?pkey=AAXwBvJqzPqgUnYFm26mN-gk_jcbZWt8-QqojzviZ4Bqh-9KFCZwZHJ68LwG-fXVLOLn4pZOR7CETR7qRBpvWHZ17VtlyUfewbpNOO72FDMGjXfwobZ19z7i2c7hH9VH0Zs&tag=1-1791290501-unknown-0-4c5gigpfxd-0c446f0e8910c097&clientCacheKey=3xgqdzu8cnrpmqq_b.mp4&di=3ac2a8d0&bp=10000&kwai-not-alloc=38&tt=b&ss=vpm",
                  "videoCodec": "avc",
                  "width": 720
                },
                {
                  "agc": true,
                  "avgBitrate": 432,
                  "backupUrl": [
                    "https://v23-3.kwaicdn.com/bs2/photo-video-mz/5193494945927590140_aae0a1df7ea3b7f0_6496_v6HighV5.mp4?pkey=AAVL4PiTUL-ThlWboycaUBq0ZAbC3tpOCXqyBBpsHng3R6bmjk0g_GL-k3EJuvgflCVVCNrOVFzTvP4v4zymz-iIo5dM4OqMvvVrLN-i2iMWhXbcj4FxtP3Oxo3IFoCvPnU&tag=1-1791290501-unknown-1-dgct5jxmy4-436f65eeb9bade10&clientCacheKey=3xgqdzu8cnrpmqq_535cd351&di=3ac2a8d0&bp=10000&kwai-not-alloc=38&tt=v6HighV5&ss=vpm"
                  ],
                  "bitratePattern": [
                    462,
                    415,
                    556,
                    "… 2 more items in the full response"
                  ],
                  "colorInfo": {},
                  "comment": "videoId=aae0a1df7ea3b7f0/ttExplain=HEVC_VenusV6_720P_高码率/tt=v6HighV5",
                  "defaultSelect": false,
                  "disableAdaptive": false,
                  "featureP2sp": false,
                  "fileSize": 1639109,
                  "frameRate": 30.00033,
                  "hdrType": 0,
                  "height": 962,
                  "hidden": false,
                  "id": 2,
                  "kvqScore": {
                    "FR": -1,
                    "FRPost": -1,
                    "NR": -1,
                    "NRPost": -1,
                    "blur": 0.7006000280380249,
                    "kvqVersion": "v7",
                    "nnvcScore": -1,
                    "sharpness": 0.09220000356435776
                  },
                  "makeupGain": 1.513,
                  "maxBitrate": 3300,
                  "minorInfo": "-b1f1",
                  "mute": false,
                  "normalizeGain": 1,
                  "oriLoudness": -13.599,
                  "p2spCode": "{\"fRsn\":0,\"fixOpt\":-1,\"schTask\":\"\",\"schCode\":-1,\"schRes\":\"\",\"pushTask\":\"v=0&p=0&s=0&d=0\",\"pushCode\":-1}",
                  "quality": 1.6,
                  "qualityLabel": "高清",
                  "qualityType": "720p",
                  "realLoudness": -10.073,
                  "realNormalizeGain": 1,
                  "url": "https://v1.kwaicdn.com/bs2/photo-video-mz/5193494945927590140_aae0a1df7ea3b7f0_6496_v6HighV5.mp4?pkey=AAV-r2GX0dkbla6EquGJw2HrmDvppWKgb4XHIW6lCInHa_zWKHWqy_HHugyYn5EsiygT09rtj6AugyU0k_r2iu0EfhtRE8uHMjxED97y0ef8rr-WTUsWl0aR98CJRnaDxTU&tag=1-1791290501-unknown-0-teung2o0vc-1b37b8cc3d7e244a&clientCacheKey=3xgqdzu8cnrpmqq_535cd351&di=3ac2a8d0&bp=10000&kwai-not-alloc=38&tt=v6HighV5&ss=vpm",
                  "videoCodec": "hevc",
                  "width": 720
                },
                {
                  "agc": true,
                  "avgBitrate": 671,
                  "backupUrl": [
                    "https://v23-3.kwaicdn.com/bs2/photo-video-mz/5193494945927590140_aae0a1df7ea3b7f0_6496_v6UltraV5.mp4?pkey=AAWqOqkxdxvRBKVg1kFcpvq2WKyhqjP9xKcVl0U6ZhojAyrEnY0v9gGbOuvgDTx6OTL0ELcicrxm0VO29dCdmegEniqSi96p1sB2VQJs24gw96Ai-6lGSQEltHOdrAaRU5Y&tag=1-1791290501-unknown-1-lxq8adnhtn-bc1855f42eb5a052&clientCacheKey=3xgqdzu8cnrpmqq_ed5d95cd&di=3ac2a8d0&bp=10000&kwai-not-alloc=38&tt=v6UltraV5&ss=vpm"
                  ],
                  "bitratePattern": [
                    718,
                    649,
                    867,
                    "… 2 more items in the full response"
                  ],
                  "colorInfo": {},
                  "comment": "videoId=aae0a1df7ea3b7f0/ttExplain=HEVC_VenusV6_1080P_高码率/tt=v6UltraV5",
                  "defaultSelect": false,
                  "disableAdaptive": false,
                  "featureP2sp": false,
                  "fileSize": 2546922,
                  "frameRate": 30.00033,
                  "hdrType": 0,
                  "height": 1442,
                  "hidden": false,
                  "id": 3,
                  "kvqScore": {
                    "FR": -1,
                    "FRPost": -1,
                    "NR": -1,
                    "NRPost": -1,
                    "blur": 0.701200008392334,
                    "kvqVersion": "v7",
                    "nnvcScore": -1,
                    "sharpness": 0.053199999034404755
                  },
                  "makeupGain": 1.513,
                  "maxBitrate": 6500,
                  "minorInfo": "-b1f1",
                  "mute": false,
                  "normalizeGain": 1,
                  "oriLoudness": -13.599,
                  "p2spCode": "{\"fRsn\":0,\"fixOpt\":-1,\"schTask\":\"\",\"schCode\":-1,\"schRes\":\"\",\"pushTask\":\"v=0&p=0&s=0&d=0\",\"pushCode\":-1}",
                  "quality": 2,
                  "qualityLabel": "1080p",
                  "qualityType": "1080p",
                  "realLoudness": -10.073,
                  "realNormalizeGain": 1,
                  "url": "https://v1.kwaicdn.com/bs2/photo-video-mz/5193494945927590140_aae0a1df7ea3b7f0_6496_v6UltraV5.mp4?pkey=AAXRAx1-cR85NDRzlemwWlJADtvGbwakv0j4D-9602hiRZFTYkBWgEHNL1894FVauBcZQ3GzBfUyYPWqSrBgf_lsbhoeFj-B8D6Tic_L8a8HFj_H4Buz49I1vtas66F5oRo&tag=1-1791290501-unknown-0-tuwnvynnni-e049902f5824bdbf&clientCacheKey=3xgqdzu8cnrpmqq_ed5d95cd&di=3ac2a8d0&bp=10000&kwai-not-alloc=38&tt=v6UltraV5&ss=vpm",
                  "videoCodec": "hevc",
                  "width": 1080
                }
              ]
            }
          ],
          "audioFeature": {
            "audioClip": 0,
            "audioQuality": 63.684,
            "audioSnr": 60,
            "backgroundSoundProbability": 0,
            "dialogProbability": 0.0207,
            "effectiveBandwidthInHz": 13638.333,
            "musicProbability": 0.9793,
            "stereophonicRichness": 0
          },
          "businessType": 2,
          "hideAuto": false,
          "manualDefaultSelect": false,
          "mediaType": 2,
          "playInfo": {
            "bizType": 0,
            "cdnTimeRangeLevel": 0,
            "strategyBus": "{\n  \"CDNTimeRangeRatio\" : {\n    \"1080p-b1f1\" : 100\n  }\n}"
          },
          "stereoType": 0,
          "version": "2.0.0",
          "videoFeature": {
            "avgEntropy": 5.405688607692719,
            "blockyProbability": 0.40822291374206543,
            "blurProbability": 0.4877685606479645,
            "capSrc": 2.7120115e-7,
            "contrast": 0.54781187,
            "mosScore": 0.3985188603401184,
            "overExposed": 0.000001937151,
            "underExposed": 0.13861924
          },
          "videoId": "aae0a1df7ea3b7f0"
        },
        "photoId": "5193494945927590140",
        "photoStatus": 0,
        "photoType": "VIDEO",
        "sameFrame": {
          "allow": true,
          "availableDepth": 7
        },
        "serverExpTag": "feed_photo|5193494945927590140|3795214411|1_i/2006353974990195570_s0",
        "shareCount": 5780,
        "share_info": "userId=3xsmy336jkzj6ii&photoId=3xgqdzu8cnrpmqq",
        "singlePicture": false,
        "soundTrack": {
          "artist": "秀妍日记",
          "audioType": 1,
          "audioUrls": [
            {
              "cdn": "hw.a.yximgs.com",
              "url": "https://hw.a.yximgs.com/bs2/ost/MTUyNTI5ODM0MjE2XzM3OTUyMTQ0MTE.m4a"
            },
            {
              "cdn": "ali2.a.yximgs.com",
              "url": "https://ali2.a.yximgs.com/bs2/ost/MTUyNTI5ODM0MjE2XzM3OTUyMTQ0MTE.m4a"
            }
          ],
          "avatarUrls": [
            {
              "cdn": "hw.a.yximgs.com",
              "url": "https://hw.a.yximgs.com/bs2/ost/MTUyNTI5ODM0MjE2XzM3OTUyMTQ0MTE.jpg"
            },
            {
              "cdn": "ali2.a.yximgs.com",
              "url": "https://ali2.a.yximgs.com/bs2/ost/MTUyNTI5ODM0MjE2XzM3OTUyMTQ0MTE.jpg"
            }
          ],
          "disableEnhancedEntry": true,
          "finalStatus": 0,
          "genreId": 0,
          "hasCopyright": true,
          "id": 22234760812,
          "imageUrls": [
            {
              "cdn": "hw.a.yximgs.com",
              "url": "https://hw.a.yximgs.com/bs2/ost/MTUyNTI5ODM0MjE2XzM3OTUyMTQ0MTE.jpg"
            },
            {
              "cdn": "ali2.a.yximgs.com",
              "url": "https://ali2.a.yximgs.com/bs2/ost/MTUyNTI5ODM0MjE2XzM3OTUyMTQ0MTE.jpg"
            }
          ],
          "isOffline": false,
          "loudness": -15,

Contoh

Pilih contoh untuk memuat input dan hasilnya ke playground.

README API

Kuaishou Single Video Details (V2) API

Returns details for one Kuaishou video: caption, engagement counts, author info, cover and video file URLs, a stream manifest with several encodings, and the soundtrack. It needs the video's photo_id.

Use cases

  • Download or preview a Kuaishou video by picking a file URL from photo.mainMvUrls or the manifest.
  • Compare the encodings listed in the manifest, such as AVC and HEVC at different bitrates, before choosing one to play.
  • Track a post's viewCount, likeCount, commentCount and shareCount over repeated lookups.
  • Collect the soundtrack name, artist and audio file URLs used in a video.

Request

curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/web/one-video-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"photo_id": "5193494945927590140"}'

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

Parameters

NameTypeRequiredDescription
photo_idstringYes

Example response

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

{
  "counts": {
    "collectionCount": 9947,
    "fanCount": 359746,
    "followCount": 2,
    "photoCount": 683
  },
  "photo": {
    "adminTags": [],
    "caption": "哥哥我会魔法一人就能变成两@李秀妍u #李秀妍u #为自己代言",
    "commentCount": 3053,
    "commentShowType": 2,
    "coverUrls": [
      {
        "cdn": "p23.a.yximgs.com",
        "url": "https://p23.a.yximgs.com/upic/2024/12/29/22/BMjAyNDEyMjkyMjE1NDJfMzc5NTIxNDQxMV8…"
      }
    ],
    "duration": 30266,
    "exp_tag": "1_i/2010302189902940289_s0",
    "ext_params": {
      "color": "1B140F",
      "h": 960,
      "interval": 60,
      "mtype": 3,
      "sound": 30210,
      "video": 30266,
      "w": 720
    },
    "forcePublic": "H4sIAAAAAAAA%2F%2BNQEmCQeLHw0%2BwdLADBVRUjCwAAAA%3D%3D",
    "forwardCount": 0,
    "headUrl": "https://p66.a.kwimgs.com/uhead/AB/2024/11/24/18/BMjAyNDExMjQxODI2MzJfMzc5NTIxNDQ…",
    "headUrls": [
      {
        "cdn": "p66.a.kwimgs.com",
        "url": "https://p66.a.kwimgs.com/uhead/AB/2024/11/24/18/BMjAyNDExMjQxODI2MzJfMzc5NTIxNDQ…"
      }
    ]
  },
  "result": 1
}

Response fields

FieldMeaning
photo.captionText posted with the video, including the @mentions and hashtags.
photo.viewCount / photo.likeCount / photo.commentCount / photo.shareCount / photo.forwardCountEngagement counts for the video.
photo.durationVideo length as a number. The value 30266 matches photo.ext_params.video, so it looks like milliseconds.
photo.width / photo.heightFrame size of the video in pixels.
photo.timestampTime value for the post, as a 13-digit number (looks like Unix milliseconds).
photo.mainMvUrls[].urlDirect MP4 links to the video, one for each CDN host in cdn.
photo.manifest.adaptationSet[].representation[]Available encodings of the video. Each entry has avgBitrate, a backupUrl list and a comment that names the codec and resolution tier.
photo.coverUrls[].url / photo.webpCoverUrls[].urlCover image links in JPEG and WebP form, one for each CDN host.
photo.userId / photo.userEid / photo.userNameNumeric ID, string ID and display name of the author.
photo.soundTrack.name / photo.soundTrack.artist / photo.soundTrack.audioUrls[].urlName, artist and audio file links (m4a) of the sound used in the video.
counts.fanCount / counts.followCount / counts.photoCount / counts.collectionCountCounts shown for the author's account: fans, accounts followed, posts and collections.

Notes

  • photo_id is a string of digits, for example 5193494945927590140. The same value comes back in photo.photoId.
  • photo.share_info holds the author and post IDs in the short form used in share links.
  • To start from a share link instead of an ID, use Kuaishou Single Video by URL.
  • To read the comments on this video, call Kuaishou Video Comments (Web).

Pricing

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

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Kuaishou$0.002 per panggilanJSON
Kuaishou$0.001 per panggilanJSON
Kuaishou$0.001 per panggilanJSON
Kuaishou$0.001 per panggilanJSON
Kuaishou$0.001 per panggilanJSON
Kuaishou$0.002 per panggilanJSON

Panduan:Best Kuaishou API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Kuaishou Single Video Details (V2)?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/kuaishou/web/one-video-v2 dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Kuaishou Single Video Details (V2)?

$0.002 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Kuaishou Single Video Details (V2)?

Wajib: photo_id (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Kuaishou Single Video Details (V2)?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Kuaishou?

Tidak. Kuaishou Single Video Details (V2) berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Kuaishou secara terpisah.