接口地址
https://ffapi.cn/int/v1/randhvideo
返回格式
json/text/
请求方式
get/post
请求示例
https://ffapi.cn/int/v1/randhvideo?act=list&format=url
参数说明
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| act | 否 | string | 输出类型(new=最新、list=分类、ai=AI、留空=站长精选) |
| id | 否 | string | act参数=list时,输出分类(1=动漫、2=风景、3=美女、4=赛车、5=科幻、6=动物、7=明星、8=游戏、9=其他、17=小清新) |
| format | 否 | string | 输出格式(json、text、url) |
返回数据
{
"code": 200,
"msg": "success",
"url": "https://img-baofun.zhhainiao.com/pcwallpaper_ugc/preview/ecc836bcc67b6a777d5632fe7a279a44_preview.mp4"
}
示例代码
<video width="100%" height="100%" autoplay>
<source src="https://ffapi.cn/int/v1/randhvideo?format=url" type="video/mp4">
您的浏览器不支持视频标签。
</video>