随机图片api
JUST FOR FUN
http://miku.ueuo.com/(无稳定性保证)
https://crazy-white.github.io/Random-Picture/description.html
https://crazy-white.github.io/Random-Picture/show.html
./url.txt务必一行一个url,不要留空格什么的
./test/show.php用于展示url.txt的所有图片
./test/mini.php只会转至url.txt的随机1张
./test/360.php会从360壁纸取得图片(约200kb,自行测试质量)
访问api.php即可,跳转至图片地址
访问?id=数字,跳转至指定图片
服务器输出json
不建议使用
服务器随机输出
{"code":"200","url":"https:\/\/fp1.fghrsh.net\/2019\/07\/15\/c2549aaa63db078834ead6a92fe63b61.jpg"}
服务器读取图片信息后输出json,如非需要图片信息不建议使用
{"code":"200","url":"https:\/\/fp1.fghrsh.net\/2019\/07\/15\/c2549aaa63db078834ead6a92fe63b61.jpg","width":"1920","height":"1080","mime":"image\/jpeg","size":"821735"}