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