随机图片API

说明文档

现有1212张ACG图片

假定 API 部署到 https://example.net/

php

访问 https://example.net/api ,跳转至图片地址

示例 https://example.net/api/?id=3

示例 https://example.net/api/?id=3&json

访问 https://example.net/api/?raw

服务器读取后输出,默认关闭

访问 https://example.net/api/?json

输出json

                    {"id":156,"url":"https:\/\/b2-storage.miko.pw\/Storage\/uploads\/part01\/Miko_Part01_0156.webp"}

如您需要爬取所有图片,请

curl -C --O https://b2-storage.miko.pw/Storage/uploads/part01/Miko_Part01_[0000-1212].webp
不要频繁请求本api