ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## **3.3 视频** ### **视频列表** GET: ~~~ /api/v1/info/videos ~~~ 接口概述:查询视频列表 建议频率:查询时调用 | 请求参数 | 数据类型 | 是否必填 | 说明 | 备注 | | --- | --- | --- | --- | --- | | token | string | 是 | 令牌 | | | page | int | 是 | 页码 | | | per_page | int | 是 | 页大小 | | | profile_id | int | 否 | 作者 id | | | game_id | int | 否 | 游戏ID | 足球:102,篮球:101 | | recent_hours| int | 否 | 1-24小时内获取到的数据| 支持传值1-24 | | language | string | 否 | 语言 |不传该参数或没有对应译文则返回中文,详细见接口说明注释:语言枚举值 | 请求 URL 示例 ~~~ /api/v1/info/videos?page=1&per_page=20&token=XXX ~~~ ### **视频详情** GET: ~~~ /api/v1/info/videos/{id} ~~~ 接口概述:查询视频 建议频率:查询时调用 | 请求参数 | 说明 | 数据类型 | 是否必填 | | --- | --- | --- | --- | | token | 令牌 | string | 是 | | id | 视频 id | string | 是 | 请求 URL 示例 ~~~ /api/v1/info/videos/1?token=XXX ~~~ 返回格式 ~~~json { "id": 73981, //视频 id "source": "toutiao", "profile_id": 1593, "url": "https://xxx.mp4", "caption": "盘点欧洲杯VAR硬控名场面,莱万点球太赖皮#欧洲杯  ", "cover_url": "https://xxx.jpg", "duration_millis": 281000, "publish_time": "2024-07-01T00:36:18+08:00", "like_count": 135, "game_id": 102, "match_id": 0, "language": "" } ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | id | int | 视频 id | | | profile_id | int | 作者 id | | | url | string | 视频地址 | | | caption | string | 说明 | | | cover_url | string | 封面 | | | duration_millis | string | 时长 | Millisecond,毫秒 | | publish_time | string | 发布时间 | | | like_count | int | 点赞数 | | | game_id | int | 游戏 id | | ### 视频评论(废弃) GET: ~~~ /api/v1/info/video_comments ~~~ 接口概述:查询视频评论 建议频率:查询时调用 | 请求参数 | 数据类型 | 是否必填 | 说明 | 备注 | | --- | --- | --- | --- | --- | | token | string | 是 | 令牌 | | | page | int | 是 | 页码 | | | per\_page | int | 是 | 页大小 | | | item\_id | int | 是 | 视频 id | | 请求 URL 示例 ~~~ /api/v1/info/video_comments?page=1&per_page=20&token=XXX&item_id=25 ~~~ 返回格式 ~~~json [ { "id": 233, "item_id": 25, "content": "韩国队", "user_source_id": "", "user_name": "平常好先生", "avatar": "https://sf1-.image", "like_count": "0", "publish_time": "2021-06-25T07:05:15+08:00", "replies": [ { "id": 234, "item_id": 25, "content": "还有一个?", "user_source_id": "", "user_name": "victimnnnnn", "avatar": "https://sf6-cdn-t.image", "like_count": "2", "publish_time": "0001-01-01T00:00:00Z", "reply_to_comment_id": 233, "reply_to_user_source_id": "110278401686", "reply_to_user_name": "平常好先生" } ] }, { "id": 235, "item_id": 25, "content": "真不错", "user_source_id": "", "user_name": "Hello", "avatar": "https://sf3-cdn", "like_count": "1", "publish_time": "2021-06-25T02:40:22+08:00" } ] ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | id | int | 评论 id | | | item\_id | int | **视频 id** | | | content | string | 内容 | | | user\_source\_id | string | 评论人 Id | | | user\_name | string | 评论人名称 | | | avatar | string | 评论人头像 | | | like\_count | int | 点赞数 | | | publish\_time | string | 评论时间 | | | replies | | 回复列表 | | | reply\_to\_comment\_id | int | 回复哪一条评论 | | | reply\_to\_user\_source\_id | string | 回复谁 | | | reply\_to\_user\_name | string | 回复谁 |