接口地址: http://api.ilingku.com/int/v1/randsimg

返回格式: json/text

请求方式: get/post

请求示例: http://api.ilingku.com/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 string 返回状态码
msg string 返回错误提示
url string 返回图片地址

返回示例:

{
    "code": 200,
    "msg": "success",
    "url": "https://img-baofun.zhhainiao.com/fs/mobile/static/6cbb72522eebeda256bfcadecc1e6b02.jpg"
}

错误码格式说明:

名称 类型 说明
code string 错误代码
msg string 错误提示

代码示例:

<img src="http://api.ilingku.com/int/v1/randsimg?act=list&format=ur">
. 领酷API接口大全 Inc All Rights Reserved.蜀ICP备2023019253号-2