随机图片API

说明文档

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

php

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

访问 https://example.net/api/?id=数字 ,跳转至指定图片

示例 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":0,url":"https://blog.saop.cc/img/moe/moe_1.webp"}