抖音视频榜

最后更新于:2022-04-02 08:19:56

## 抖音视频榜 >[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/b6/99/b699b0a4873f2223fa932f8d48964c15_200x200.png) > 接口实时返回20条抖音视频榜单详情数据,包含视频标题简介、发布时间、热度指数、视频播放地址和分享地址、作者相关信息等。 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/hot/video ``` ### 请求参数 无 ### 返回`data`参数 | 名称 | 类型 | 示例值 | 说明 | | --- | --- | --- | --- | | hotindex | int | 46438239 | 热榜指数 | | createtime | int | 1575271793 | 发布时间戳 | | duration | int | 292015 | 视频时长秒数 | | playaddr | string | https://aweme.snssdk.com/aweme/v1/playwm/?video\_id=v0200fe00000bnibokhum7lnrb46ns0g&line=0&ratio=540p&media\_type=4&vr\_type=0&improve\_bitrate=0&is\_play\_url=1 | 播放地址 | | coverurl | string | https://p9-dy.byteimg.com/img/tos-cn-p-0015/8f5f39c794804218af85bcfecfa676bf\_1575271860~c5\_300x400.jpeg?from=2563711402\_large | 视频封面 | | title | string | 我很庆幸我有一双健全的手,可以做我想做的事,2019充实,激动,感叹#改变生活 | 视频标题简介 | | shareurl | string | https://www.iesdouyin.com/share/video/6765740644339174669/?region=&mid=6765693082286541581&u\_code=0&titleType=title | 抖音分享地址 | | author | string | 村生莫 | 作者抖音昵称 | | signature | string | 山里有村,村里有莫。 | 作者抖音个人签名 | | avatar | string | https://p9-dy.byteimg.com/aweme/100x100/2e19c000644305538b6ab.jpeg | 作者抖音头像 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->hotVideo() ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "hotindex":13402443, "createtime":1575259604, "duration":44500, "playaddr":"https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0200f830000bni8rhdjfrmrhopvph4g&line=0&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0&is_play_url=1", "coverurl":"https://p9-dy.byteimg.com/img/tos-cn-p-0015/a826f1b25ef44545b28bac56982c5c0b~c5_300x400.jpeg?from=2563711402_large", "title":"你背不下来的书,做不了的题,总有人能做到。那么不好意思,你喜欢的学校,也只能别人上!不吃学习的苦就要吃生活的苦", "shareurl":"https://www.iesdouyin.com/share/video/6765688466677288200/?region=&mid=6765627220623887111&u_code=0&titleType=title", "author":"蔡蔡家商贸店", "signature":"35岁安徽省马鞍山市", "avatar":"https://p9-dy.byteimg.com/aweme/100x100/26eb70003a297ba2830ea.jpeg" }, { "hotindex":12063919, "createtime":1575312402, "duration":224167, "playaddr":"https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0200fa10000bnilmvikr6g7m3jh25mg&line=0&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0&is_play_url=1", "coverurl":"https://p1-dy.byteimg.com/img/tos-cn-p-0015/dd92480546b04077a7a6fdaab2dc3e56_1575312411~c5_300x400.jpeg?from=2563711402_large", "title":"#任贤齐#刘宇宁《爱江山更爱美人》纯享版#我们的歌", "shareurl":"https://www.iesdouyin.com/share/video/6765915015938608387/?region=&mid=6765844901860313869&u_code=0&titleType=title", "author":"东方卫视", "signature":"《我们的歌》、《第二次也很美》等热播中", "avatar":"https://p9-dy.byteimg.com/aweme/100x100/286190003461bb10556af.jpeg" } ] } ~~~
';