稳定、快速、免费的 API 接口服务
每次刷新都是不同的图片
接口地址: https://api.qlwc.cn/api/beauty_image
返回格式: JSON/IMG
请求方式: GET
请求示例: https://api.qlwc.cn/api/beauty_image?m=1
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
?m=1 | 是 | string | JSON格式 |
?m=2 | 是 | string | 图片格式 |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{ "code": 200, "message": "获取成功", "data": { "image": { "url": "https://img.btstu.cn/api/images/5a587391dca97.jpg", "type": "image/jpeg", "size": { "bytes": 196608, "formatted": "192 KB" } }, "time": { "timestamp": 1734364369, "formatted": "2024-12-16 23:52:49" }, "html": { "img": "\u003Cimg src=\"https://img.btstu.cn/api/images/5a587391dca97.jpg\" alt=\"随机图片\" loading=\"lazy\" referrerpolicy=\"no-referrer\" crossorigin=\"anonymous\"\u003E", "attributes": { "src": "https://img.btstu.cn/api/images/5a587391dca97.jpg", "alt": "随机图片", "loading": "lazy", "referrerpolicy": "no-referrer", "crossorigin": "anonymous" } } }, "api_info": { "version": "1.0", "endpoint": "/beauty_image.php", "methods": { "json": "/beauty_image.php?m=1", "image": "/beauty_image.php?m=2" } } }
请求参数设置:
参数名称 | 参数值 |
---|---|
{ "code": 200, "message": "获取成功", "data": { "image": { "url": "https://img.btstu.cn/api/images/5a587391dca97.jpg", "type": "image/jpeg", "size": { "bytes": 196608, "formatted": "192 KB" } }, "time": { "timestamp": 1734364369, "formatted": "2024-12-16 23:52:49" }, "html": { "img": "\u003Cimg src=\"https://img.btstu.cn/api/images/5a587391dca97.jpg\" alt=\"随机图片\" loading=\"lazy\" referrerpolicy=\"no-referrer\" crossorigin=\"anonymous\"\u003E", "attributes": { "src": "https://img.btstu.cn/api/images/5a587391dca97.jpg", "alt": "随机图片", "loading": "lazy", "referrerpolicy": "no-referrer", "crossorigin": "anonymous" } } }, "api_info": { "version": "1.0", "endpoint": "/beauty_image.php", "methods": { "json": "/beauty_image.php?m=1", "image": "/beauty_image.php?m=2" } } }
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
https://api.qlwc.cn/api/beauty_image?m=1 {json}
https://api.qlwc.cn/api/beauty_image?m=2 {图片}