javascript怎么实现视频搜索功能

发布时间:2022-03-21 16:32:49 作者:iii
来源:亿速云 阅读:515

本文小编为大家详细介绍“javascript怎么实现视频搜索功能”,内容详细,步骤清晰,细节处理妥当,希望这篇“javascript怎么实现视频搜索功能”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。

视频搜索

请求API

http://主机地址/kwshow/search/videos?token=xxx&keyword=美女

请求方式

GET

参数

字段类型说明
tokenstring接口授权码
keywordstring搜索关键词
cursorint翻页游标,根据结果返回的cursor传入作为下一页翻页参数,初始为0

返回示例

{
    "code": 200,
    "data": {
        "result": 1,
        "feeds": [
            {
                "following": 0,
                "video": true,
                "type": 1,
                "forwardCount": 0,
                "headUrls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240177.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240178.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/07/10/14/BMjAyMDA3MTAxNDEzMjZfMTgwNTgxNjIyNF8yX2hkNzM0XzE0NA==_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "webpCoverUrls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240179.jpg?clientCacheKey=3x76e7k52hd8r66.jpg&di=3a65aec6&bp=14150"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240180.jpg?clientCacheKey=3x76e7k52hd8r66.jpg&di=3a65aec6&bp=14150"
                    }
                ],
                "userId": 1805816224,
                "viewCount": 18538638,
                "headUrl": "https://cache.yisu.com/upload/information/20210521/347/240177.jpg",
                "verifiedDetail": {
                    "description": "贵州台《综艺最前沿》官方帐号",
                    "iconType": 2,
                    "musicCompany": false,
                    "newVerified": true,
                    "type": 7
                },
                "verified": true,
                "width": 720,
                "height": 1280,
                "commentCount": 17548,
                "likeCount": 705187,
                "userSex": "M",
                "shareCount": 6418,
                "coverUrls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240179.jpg?clientCacheKey=3x76e7k52hd8r66.jpg&di=3a65aec6&bp=14150"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240180.jpg?clientCacheKey=3x76e7k52hd8r66.jpg&di=3a65aec6&bp=14150"
                    }
                ],
                "mainMvUrls": [
                    {
                        "cdn": "txmov2.a.yximgs.com",
                        "url": "https://txmov2.a.yximgs.com/upic/2020/09/13/10/BMjAyMDA5MTMxMDIzNTJfMTgwNTgxNjIyNF8zNTk1OTgyNDMwNF8wXzM=_b_B3e50ac8eab647a570a4cc1eb5d0a8079.mp4?clientCacheKey=3x76e7k52hd8r66_b.mp4&tt=b&di=3a65aec6&bp=14150"
                    },
                    {
                        "cdn": "jsmov2.a.yximgs.com",
                        "url": "https://jsmov2.a.yximgs.com/upic/2020/09/13/10/BMjAyMDA5MTMxMDIzNTJfMTgwNTgxNjIyNF8zNTk1OTgyNDMwNF8wXzM=_b_B3e50ac8eab647a570a4cc1eb5d0a8079.mp4?clientCacheKey=3x76e7k52hd8r66_b.mp4&tt=b&di=3a65aec6&bp=14150"
                    }
                ],
                "singlePicture": false,
                "timestamp": 1599967226758,
                "userName": "贵州台综艺最前沿",
                "isSubscribe": false,
                "liked": 0,
                "webShareInfo": {
                    "smartCorpUrl": "https://cache.yisu.com/upload/information/20210521/347/240181.jpg?clientCacheKey=3x76e7k52hd8r66_crop_intelli.jpg&di=3a65aec6&bp=14150",
                    "preCorpUrl": "https://cache.yisu.com/upload/information/20210521/347/240181.jpg?tag=1-1605317582-unknown-0-mtmax5juyg-b557c206623934a8&clientCacheKey=3x76e7k52hd8r66_crop_intelli.jpg&di=3a65aec6&bp=13463",
                    "webShareTitle": "##非常完美 # ##美女 # ##男神 #",
                    "webShareVerifyData": {
                        "shareUserId": "1753183896",
                        "objectId": "35959824304",
                        "timestamp": 1605317582898,
                        "verifyData": "8730ebc3610a32081b2b0db633ac2989"
                    }
                },
                "share_info": "userId=3xfrkacxd7a8qba&photoId=3x76e7k52hd8r66",
                "photoId": "5249508350589478128",
                "userEid": "3xfrkacxd7a8qba",
                "sameFrame": {
                    "allow": false
                },
                "adminTags": [],
                "exp_tag": "1_u/0_unknown0",
                "ext_params": {
                    "mtype": 3,
                    "color": "5E5557",
                    "w": 720,
                    "sound": 148866,
                    "h": 1280,
                    "interval": 29,
                    "video": 148866
                },
                "caption": "##非常完美 # ##美女 # ##男神 #",
                "serverExpTag": "feed_photo|5249508350589478128|1805816224|1_u/0_unknown0"
            },
            {
                "following": 0,
                "video": true,
                "type": 1,
                "forwardCount": 0,
                "headUrls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240177.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240178.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/07/10/14/BMjAyMDA3MTAxNDEzMjZfMTgwNTgxNjIyNF8yX2hkNzM0XzE0NA==_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "webpCoverUrls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240182.jpg?clientCacheKey=3x6jdw47b7hs8ck.jpg&di=3a65aec6&bp=14150"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240183.jpg?clientCacheKey=3x6jdw47b7hs8ck.jpg&di=3a65aec6&bp=14150"
                    }
                ],
                "userId": 1805816224,
                "viewCount": 1513038,
                "headUrl": "https://cache.yisu.com/upload/information/20210521/347/240177.jpg",
                "verifiedDetail": {
                    "description": "贵州台《综艺最前沿》官方帐号",
                    "iconType": 2,
                    "musicCompany": false,
                    "newVerified": true,
                    "type": 7
                },
                "verified": true,
                "width": 720,
                "height": 1280,
                "commentCount": 239,
                "likeCount": 17351,
                "userSex": "M",
                "coverUrls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240182.jpg?clientCacheKey=3x6jdw47b7hs8ck.jpg&di=3a65aec6&bp=14150"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240183.jpg?clientCacheKey=3x6jdw47b7hs8ck.jpg&di=3a65aec6&bp=14150"
                    }
                ],
                "mainMvUrls": [
                    {
                        "cdn": "txmov2.a.yximgs.com",
                        "url": "https://txmov2.a.yximgs.com/upic/2020/10/20/23/BMjAyMDEwMjAyMzIyMTZfMTgwNTgxNjIyNF8zODAwMDE4NTU5M18wXzM=_b_Bf9406657b75838348eaeafe2da6539d7.mp4?clientCacheKey=3x6jdw47b7hs8ck_b.mp4&tt=b&di=3a65aec6&bp=14150"
                    },
                    {
                        "cdn": "jsmov2.a.yximgs.com",
                        "url": "https://jsmov2.a.yximgs.com/upic/2020/10/20/23/BMjAyMDEwMjAyMzIyMTZfMTgwNTgxNjIyNF8zODAwMDE4NTU5M18wXzM=_b_Bf9406657b75838348eaeafe2da6539d7.mp4?clientCacheKey=3x6jdw47b7hs8ck_b.mp4&tt=b&di=3a65aec6&bp=14150"
                    }
                ],
                "singlePicture": false,
                "timestamp": 1603208190240,
                "userName": "贵州台综艺最前沿",
                "isSubscribe": false,
                "liked": 0,
                "webShareInfo": {
                    "smartCorpUrl": "https://cache.yisu.com/upload/information/20210521/347/240184.jpg?clientCacheKey=3x6jdw47b7hs8ck_crop_5x4.jpg&di=3a65aec6&bp=14150",
                    "preCorpUrl": "https://cache.yisu.com/upload/information/20210521/347/240184.jpg?tag=1-1605317582-unknown-0-djohiklnpr-7df4d6e424b1977d&clientCacheKey=3x6jdw47b7hs8ck_crop_5x4.jpg&di=3a65aec6&bp=13463",
                    "webShareTitle": "#非常完美 # #美女 # #男神 #",
                    "webShareVerifyData": {
                        "shareUserId": "1753183896",
                        "objectId": "38000185593",
                        "timestamp": 1605317582898,
                        "verifyData": "5274dd5fd5f275f7fd479f112bf6a5ee"
                    }
                },
                "share_info": "userId=3xfrkacxd7a8qba&photoId=3x6jdw47b7hs8ck",
                "photoId": "5255419325724830468",
                "userEid": "3xfrkacxd7a8qba",
                "sameFrame": {
                    "allow": false
                },
                "adminTags": [],
                "exp_tag": "1_u/0_unknown0",
                "ext_params": {
                    "mtype": 3,
                    "color": "0C154B",
                    "w": 720,
                    "sound": 101717,
                    "h": 1280,
                    "interval": 30,
                    "video": 101686
                },
                "caption": "#非常完美 # #美女 # #男神 #",
                "serverExpTag": "feed_photo|5255419325724830468|1805816224|1_u/0_unknown0"
            },
            {
                "following": 0,
                "video": true,
                "type": 1,
                "forwardCount": 0,
                "headUrls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240177.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240178.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/07/10/14/BMjAyMDA3MTAxNDEzMjZfMTgwNTgxNjIyNF8yX2hkNzM0XzE0NA==_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "webpCoverUrls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240185.jpg?clientCacheKey=3xj2fnqrjs3vtww.jpg&di=3a65aec6&bp=14150"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240186.jpg?clientCacheKey=3xj2fnqrjs3vtww.jpg&di=3a65aec6&bp=14150"
                    }
                ],
                "userId": 1805816224,
                "viewCount": 162810,
                "headUrl": "https://cache.yisu.com/upload/information/20210521/347/240177.jpg",
                "verifiedDetail": {
                    "description": "贵州台《综艺最前沿》官方帐号",
                    "iconType": 2,
                    "musicCompany": false,
                    "newVerified": true,
                    "type": 7
                },
                "verified": true,
                "width": 720,
                "height": 1280,
                "commentCount": 7,
                "likeCount": 1392,
                "userSex": "M",
                "coverUrls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240185.jpg?clientCacheKey=3xj2fnqrjs3vtww.jpg&di=3a65aec6&bp=14150"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240186.jpg?clientCacheKey=3xj2fnqrjs3vtww.jpg&di=3a65aec6&bp=14150"
                    }
                ],
                "mainMvUrls": [
                    {
                        "cdn": "txmov2.a.yximgs.com",
                        "url": "https://txmov2.a.yximgs.com/upic/2020/11/01/23/BMjAyMDExMDEyMzEwNTJfMTgwNTgxNjIyNF8zODYxNDQ4MTM4MF8wXzM=_b_Bf10e2e1a5febbfd26afe5a2df37bff0c.mp4?clientCacheKey=3xj2fnqrjs3vtww_b.mp4&tt=b&di=3a65aec6&bp=14150"
                    },
                    {
                        "cdn": "jsmov2.a.yximgs.com",
                        "url": "https://jsmov2.a.yximgs.com/upic/2020/11/01/23/BMjAyMDExMDEyMzEwNTJfMTgwNTgxNjIyNF8zODYxNDQ4MTM4MF8wXzM=_b_Bf10e2e1a5febbfd26afe5a2df37bff0c.mp4?clientCacheKey=3xj2fnqrjs3vtww_b.mp4&tt=b&di=3a65aec6&bp=14150"
                    }
                ],
                "singlePicture": false,
                "timestamp": 1604243873731,
                "userName": "贵州台综艺最前沿",
                "isSubscribe": false,
                "liked": 0,
                "webShareInfo": {
                    "smartCorpUrl": "https://cache.yisu.com/upload/information/20210521/347/240187.jpg?clientCacheKey=3xj2fnqrjs3vtww_crop_5x4.jpg&di=3a65aec6&bp=14150",
                    "preCorpUrl": "https://cache.yisu.com/upload/information/20210521/347/240187.jpg?tag=1-1605317582-unknown-0-xznwi7slul-e07fc9c11b60b3e3&clientCacheKey=3xj2fnqrjs3vtww_crop_5x4.jpg&di=3a65aec6&bp=13463",
                    "webShareTitle": "#非常完美 #美女 #男神 #",
                    "webShareVerifyData": {
                        "shareUserId": "1753183896",
                        "objectId": "38614481380",
                        "timestamp": 1605317582898,
                        "verifyData": "8df572d4bf4e041c564c698ccbad4b27"
                    }
                },
                "share_info": "userId=3xfrkacxd7a8qba&photoId=3xj2fnqrjs3vtww",
                "photoId": "5212072179702248920",
                "userEid": "3xfrkacxd7a8qba",
                "sameFrame": {
                    "allow": false
                },
                "adminTags": [],
                "exp_tag": "1_u/0_unknown0",
                "ext_params": {
                    "mtype": 3,
                    "color": "21202D",
                    "w": 720,
                    "sound": 101675,
                    "h": 1280,
                    "interval": 30,
                    "video": 101633
                },
                "caption": "#非常完美 #美女 #男神 #",
                "serverExpTag": "feed_photo|5212072179702248920|1805816224|1_u/0_unknown0"
            }
        ],
        "pcursor": "3",
        "host-name": "bjfk-rs7180.yz02",
        "ussid": "MTRfMTc1MzE4Mzg5Nl8xNjA1MzE3NTgyNTAwX18xOTcw"
    },
    "msg": "success",
    "app": "kwshow"
}

读到这里,这篇“javascript怎么实现视频搜索功能”文章已经介绍完毕,想要掌握这篇文章的知识点还需要大家自己动手实践使用过才能领会,如果想了解更多相关内容的文章,欢迎关注亿速云行业资讯频道。

推荐阅读:
  1. javascript实现简单搜索功能
  2. JavaScript实现的搜索及高亮显示功能示例

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

javascript

上一篇:python怎么实现直播开播查询功能

下一篇:java unidbg Ollvm字符串加密解析的方法

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》