接口地址
https://ffapi.cn/int/v1/randsimg
返回格式
json/text
请求方式
get/post
请求示例
https://ffapi.cn/int/v1/randsimg?act=list&format=url
参数说明
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| act | 否 | string | 输出类型(list=分类、留空=站长精选) |
| id | 否 | string | act参数=list时,输出分类(1=风景、2=动漫、4=游戏、5=美女、6=明星、7=动物、8=小清新、9=科幻、10=汽车、12=体育、13=其他) |
| format | 否 | string | 输出格式(json、text、url) |
| size | 否 | string | 输出图片优先质量(320、640、1k、2k、4k) |
返回数据
{
"code": 200,
"msg": "success",
"url": "https://img-baofun.zhhainiao.com/fs/mobile/static/6cbb72522eebeda256bfcadecc1e6b02.jpg"
}
示例代码
<img src="https://ffapi.cn/int/v1/randsimg?act=list&format=ur">