基本信息
api文档这个是更新信息快:api.xiaofa520.cn
接口地址:
PC端(横屏)https://api.xiaofa520.cn/PCimg-API/
移动端(竖屏)https://api.xiaofa520.cn/Mimg-API/
返回格式: 图片
请求方式: GET
请求示例
https://api.xiaofa520.cn/PCimg-API/
https://api.xiaofa520.cn/Mimg-API/
请求参数说明
当前API没有需要额外提供的请求参数,只需要发送一个GET请求即可获取随机图片。
返回参数说明
名称 | 类型 | 说明 |
---|---|---|
Content-Type | string | 图片的MIME类型,例如image/jpeg |
format | string | 可选,设置为json 获取元数据 |
图片数据 | binary | 返回的图片文件内容 |
响应示例
成功响应 (200 OK)
{
"status": "success",
"data": {
"filename": "80942286_p0.png",
"url": "https://api.xiaofa520.cn/PCimg-API/PCAPI-Image/80942286_p0.png",
"size": 1500547,
"mime_type": "image/png",
"dimensions": {
"0": 2000,
"1": 1125,
"2": 3,
"3": "width=\"2000\" height=\"1125\"",
"bits": 8,
"mime": "image/png"
},
"timestamp": 1741347103,
"count": 10
},
"error": null,
"timestamp": 1741347103
}
频率限制 (429 Too Many Requests)
{
"status": "error",
"data": null,
"error": {
"error": "请求频率超标",
"unlock_time": "2023-08-20 15:30:00"
},
"timestamp": 1692532800
}
注意事项
- 接口响应时间:接口响应时间可能会根据网络状况有所不同。
效果图如下
PC端(横屏)
移动端(竖屏)
Comments NOTHING