GET
random-image
公开接口 累计 370 次/api/v1/demo/random-image
随机返回一张 ACG 图片地址(JSON / 302 / 200 三种模式)
/api/v1/demo/random-image
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
redirect |
integer |
可选 | 0 |
0=JSON;302=跳转到图片;200=纯文本图片地址 |
{
"ok": true,
"data": {
"result": {
"url": "https://...",
"total": 93,
"index": 42
}
}
}
curl -X GET '/api/v1/demo/random-image?redirect=0'