搜索-资讯视频组
通过视频编号、关键词或其他筛选条件获取视频结果集合
接口地址(URI):/api/videos/search/group
HTTP请求方式:GET
请求值字段 | 必选 | 类型 | 说明 |
---|---|---|---|
group_id | false | string | 视频组编号 |
keyword | false | string | 关键词搜索。支持多关键词搜索,多关键词用空格分隔 |
sort_by | false | string | 排序方式:正序、倒序,输入:asc/desc(仅time排序有效) |
channel_id | false | string | 根据频道id进行筛选,最多输入20个channel_id,多个channel_id之间用,分隔 |
page | false | integer | 第几页.最小1.最大1000 |
nums | false | integer | 每页数据的最大条目数,默认为100(字段为空时),仅支持输入数字 |
返回字段 | 说明 |
---|---|
list | 视频组列表 下列是具体值 |
id | 组编号 |
title | 组标题 |
caption | 组说明 |
online_time | 组上线时间 |
total_count | 组内视频数 |
first_pic_res_id | 封面视频-编号 |
width | 封面视频-原视频尺寸:宽 |
height | 封面视频-原视频尺寸:高 |
clip_length | 封面视频-时长(时分秒) |
small_jpg_https | 封面视频-预览图地址https |
preview_video_https | 封面视频-预览视频地址https |
total_count | 返回结果总数 |
total_page | 返回结果总页数 |
per_page | 每页结果总数 |
cur_page | 当前页码 |
Curl -X GET --header 'Accept: application/json' --header 'api-key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' --header 'authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' 'https://api.fotomore.com/api/videos/search/group?keyword=test&page=1&nums=10' Request URL: https://api.fotomore.com/api/videos/search/group?keyword=test&page=1&nums=10
{ "status_code": 1, "message": "ok", "data": { "list": [ { "id": "526319739", "title": "国内首次掺氢天然气管道燃爆试验成功 我国加速氢能产业布局", "caption": "2023年11月10日,国内首次全尺寸掺氢天然气管道,封闭空间泄漏燃爆试验成功实施。填补了我国长输天然气管道掺氢燃爆验证试验的空白,为实现天然气长输管道掺氢输送技术自主可控奠定了基础。\n我国首次对掺入氢气的天然气管道进行的管道泄放喷射火试验,以及封闭空间泄漏燃爆试验的视频画面公布。这次实验选用323.9毫米管径管道,最大掺氢比例为30%,是我国最大尺度的管道掺氢天然气燃爆试验。", "online_time": "2023-11-20 22:06:34", "total_count": 1, "first_res_id": "VCG1225631482", "width": 1920, "height": 1080, "clip_length": "00:00:45", "small_jpg_https": "https://video-static-api.fotomore.com/videos/snapshot/7fc9330f23f048a8971e29d5084634ce.jpg?uid=484×tamp=1708584701&sign=594d9e701903084d1db8fc22f40db2e9", "preview_video_https": "https://video-static-api.fotomore.com/videos/mts_videos/preview/VCG1225631482.mp4?uid=484×tamp=1708584701&sign=594d9e701903084d1db8fc22f40db2e9" }, { ...... }, { "id": "526335125", "title": "黑龙江漠河:国产大型民用直升机AC313A完成首次高寒试飞", "caption": "黑龙江大兴安岭地区,漠河,国产大型民用直升机AC313A完成首次高寒试飞。", "online_time": "2024-01-31 13:48:33", "total_count": 5, "first_res_id": "VCG1227011564", "width": 1920, "height": 1080, "clip_length": "00:00:31", "small_jpg_https": "https://video-static-api.fotomore.com/videos/snapshot/94b90c644d7742a9ba2713c3e005e21b.jpg?uid=484×tamp=1708584701&sign=594d9e701903084d1db8fc22f40db2e9", "preview_video_https": "https://video-static-api.fotomore.com/videos/mts_videos/preview/VCG1227011564.mp4?uid=484×tamp=1708584701&sign=594d9e701903084d1db8fc22f40db2e9" } ], "total_count": 104, "total_page": 11, "per_page": 10, "cur_page": 1 } }