快手视频API解析最新版

发布于 / 教程 / 24 条评论

快手视频的url地址目前已经变更,BerryAPI的原快手视频解析接口目前仍然能解析到视频的真实地址,但是url必须是原来的地址格式,本次更新接口支持了最新视频地址的解析。

关于原接口使用你可以参考:

快手视频API解析接口

快手视频接口一枚,无限制免费调用,但是需要AppK ...
https://www.lylares.com/kuaishou-video-api.html

更新

2019.09.21
–快手小视频及直播解析重新开放,接口文档详情参考:


https://api.cn.berryapi.net/docs.html?s=Parse/Video&detail=1

2018.08.26:
接口修复。
2018.07.22:
调整单个用户feeds接口:
之前需要POST方式提交以获取单个用户所有视频,现在你只需要GET就行,cursor参数为接口返回值,相当于翻页,首次为空即可。
接口地址:


https://api.cn.berryapi.net/docs.html?s=Parse/Video&detail=1

2018.06.09:

  1. 增加用户评论信息输出
  2. 接口内容更新
  3. 增加查询某用户所有视频:

接口地址


https://api.cn.berryapi.net/docs.html?s=Parse/Video&detail=1

 

请求方式

获取用户所有视频列表使用GET请求

请求参数

参数是否必须说明
u{$uid}用户ID
cursor{$pcursor}返回的用户视频数量,默认返回最近10条

说明

用户UID的获取:
浏览器点击进入某一用户主页,url地址像这样:https://live.kuaishou.com/profile/wzz7777777
则用户UID为:wzz7777777


已增加对多种格式的URL解析支持

支持列表

  1. http://www.gifshow.com/s/jcW3A6XG
  2. https://live.kuaishou.com/u/Na656565/3xp6zvmaq8c8wku/?fid=927116296&cc=share_copylink&groupName=E_1_180528180044152_G_2&docId=1&photoId=3xp6zvmaq8c8wku&shareId=528136243712780530&userId=3xk6eeezj72v8aa&shareType=1&et=1_i%2F1602358108872847367_h88&timestamp=1528136243725
  3. http://www.gifshow.com/photo/3xk6eeezj72v8aa/3xp6zvmaq8c8wku?fid=927116296&cc=share_copylink&groupName=E_1_180528180044152_G_2&docId=1&photoId=3xp6zvmaq8c8wku&shareId=528136243712780530&userId=3xk6eeezj72v8aa&shareType=1&et=1_i%2F1602358108872847367_h88&timestamp=1528136243725
  4. https://www.gifshow.com/photo/3xthwujiajm6gts/3x9hchdfy4tis3q?userId=3xthwujiajm6gts&photoId=3x9hchdfy4tis3q
  5. http://www.gifshow.com/i/photo/lwx?userId=3xthwujiajm6gts&photoId=3x9hchdfy4tis3q&&timestap=1528117736547&cc=share_copylink&et=1_i%2F1602346219005587468_f80&fid=542265044
  6. https://www.kuaishou.com/photo/1XPaCXnlajP7KqkHYZReZ3JQ/1XYbUaSReeL-tE-WesiCqcRA

示例效果

你可以前往视频解析平台查看所有解析效果:Parse Video

更新信息

  1. 增加最新url解析
  2. 增加输出用户信息
  3. 增加输出视频相关信息
  4. 支持输出当前用户最新视频列表

调用示例

快手视频接口地址没有更改,只是添加了新的参数以支持最新视频地址解析:


https://api.cn.berryapi.net/video/kuaishou/?t=list&AppKey={$AppKey}&url=http://www.gifshow.com/s/jcW3A6XG

参数说明

参数说明
t t=list 时返回当前用户最新视频列表,共计24个,不带参数t将只返回当前url视频信息及用户信息

带t参数接口返回:


{
    "result": 1,
    "list": [
        {
            "eid": "3xk6eeezj72v8aa",
            "photoId": "3xhpga7bybwxhps",
            "caption": "...",
            "thumbnailUrl": "https://ali2.a.yximgs.com/upic/2018/06/04/21/BMjAxODA2MDQyMTU2MjFfODI1MDkwMDg1XzY1NTE1NTA4NDNfMV8z_Bbd1490303e06b88b0f2bad899be9371b.jpg?x-oss-process=image/crop,x_0,y_140,w_360,h_360",
            "viewCount": "7.2w",
            "likeCount": "799",
            "realLikeCount": 799,
            "commentCount": "83",
            "timestamp": 1528120589491,
            "workType": "video",
            "type": "work",
            "playUrl": "https://txmov2.a.yximgs.com/upic/2018/06/04/21/BMjAxODA2MDQyMTU2MjFfODI1MDkwMDg1XzY1NTE1NTA4NDNfMV8z_b_B4f8179dd02838811ceddd7357ecfb62b.mp4",
            "imgUrls": [],
            "imgSizes": [],
            "musicName": "好货不散 浪货不染 (EA7)"
        },
        {
            "eid": "3xk6eeezj72v8aa",
            "photoId": "3xqrx9gd5m3hqi2",
            "caption": "...",
            "thumbnailUrl": "https://ali2.a.yximgs.com/upic/2018/06/04/21/BMjAxODA2MDQyMTMxNDNfODI1MDkwMDg1XzY1NTEyMTc4MThfMV8z_B79ed814c5b5b0535dd60aa33a667a19e.jpg?x-oss-process=image/crop,x_0,y_140,w_360,h_360",
            "viewCount": "9.3w",
            "likeCount": "869",
            "realLikeCount": 869,
            "commentCount": "55",
            "timestamp": 1528119110846,
            "workType": "video",
            "type": "work",
            "playUrl": "https://txmov2.a.yximgs.com/upic/2018/06/04/21/BMjAxODA2MDQyMTMxNDNfODI1MDkwMDg1XzY1NTEyMTc4MThfMV8z_b_B5a038c3db812651cdb1457d463d5ef57.mp4",
            "imgUrls": [],
            "imgSizes": [],
            "musicName": "哇去昂比浪 (Remix)"
        },
    ...
    ],
    "pcursor": "1.527916829199E12",
    "userInfo": {
        "eid": "3xk6eeezj72v8aa",
        "kwaiId": "Na656565",
        "userId": 825090085,
        "id": "Na656565",
        "profile": "https://tx2.a.yximgs.com/uhead/AB/2018/05/26/06/BMjAxODA1MjYwNjQyNDFfODI1MDkwMDg1XzFfaGQ5NDZfNjU1_s.jpg",
        "name": "赵晓曼、",
        "description": "感谢?快手官方提供绿色平台!梦想和男友走遍世界各地的每个角落! 吃遍所有地球?美食、让天下所有天下帅哥认识小妹! 哈哈?哈哈?牛皮! 爱你们?❤️❤️。 VX:zlh15865458310",
        "sex": "F",
        "cityName": "澳门",
        "following": 0,
        "living": false,
        "isNew": false,
        "privacy": false,
        "countsInfo": {
            "fan": "12.3w",
            "follow": "56",
            "photo": "139"
        }
    }
}

不带t参数接口返回:


{
    "url": "https://txmov2.a.yximgs.com/upic/2018/06/04/18/BMjAxODA2MDQxODIxNTlfODI1MDkwMDg1XzY1NDg3NTQ5NjFfMV8z_b_Bef0cb5634f7671e7655c845ccb9d8633.mp4",
    "videoInfo": {
        "playurl": "https://txmov2.a.yximgs.com/upic/2018/06/04/18/BMjAxODA2MDQxODIxNTlfODI1MDkwMDg1XzY1NDg3NTQ5NjFfMV8z_b_Bef0cb5634f7671e7655c845ccb9d8633.mp4",
        "thumbnailUrl": "https://ali2.a.yximgs.com/upic/2018/06/04/18/BMjAxODA2MDQxODIxNTlfODI1MDkwMDg1XzY1NDg3NTQ5NjFfMV8z_Bae9f6d0fc0a9a50666ff3fd5a00452dd.jpg?x-oss-process=image/crop,x_0,y_140,w_360,h_360",
        "viewCount": "77.9w",
        "realLikeCount": 11932,
        "likeCount": "1.2w",
        "commentCount": "1586",
        "pcursor": "1.527917460986E12"
    },
    "userInfo": {
        "eid": "3xk6eeezj72v8aa",
        "kwaiId": "Na656565",
        "userId": 825090085,
        "id": "Na656565",
        "profile": "https://tx2.a.yximgs.com/uhead/AB/2018/05/26/06/BMjAxODA1MjYwNjQyNDFfODI1MDkwMDg1XzFfaGQ5NDZfNjU1_s.jpg",
        "name": "赵晓曼、",
        "description": "感谢?快手官方提供绿色平台!梦想和男友走遍世界各地的每个角落! 吃遍所有地球?美食、让天下所有天下帅哥认识小妹! 哈哈?哈哈?牛皮! 爱你们?❤️❤️。 VX:zlh15865458310",
        "sex": "F",
        "cityName": "澳门",
        "following": 0,
        "living": false,
        "isNew": false,
        "privacy": false,
        "countsInfo": {
            "fan": "12.4w",
            "follow": "56",
            "photo": "139"
        }
    }
}
转载原创文章请注明,转载自: LYLARES'S BLOG » 快手视频API解析最新版
  1. avatar

    https://api.cn.berryapi.net/video/kuaishou/?t=list&AppKey={$AppKey}&url=show.com/s/jcW3A6XG,安装这个调用例子用不了