随机图片API Version:3.9

API文档


IMG调用格式

https://api.fw1028.top/acg.php?return=img(随机动漫图)
https://api.fw1028.top/car.php?return=img(随机跑车图)
https://api.fw1028.top/heal.php?return=img(随机小清新图)
https://api.fw1028.top/model.php?return=img(随机模特图)
https://api.fw1028.top/scenery.php?return=img(随机风景图)
https://api.fw1028.top/beast_ear.php?return=img(随机兽耳娘)
https://api.fw1028.top/choosen.php?return=img(随机精选图)
https://api.fw1028.top/hd.php?return=img(随机横屏图)
https://api.fw1028.top/phone.php?return=img(随机竖屏图)
https://api.fw1028.top/bing.php?return=img(随机必应壁纸)
https://api.fw1028.top/game_wallpaper.php?return=img(随机游戏壁纸)

JSON调用格式

https://api.fw1028.top/acg.php?return=json(随机动漫图)
https://api.fw1028.top/car.php?return=json(随机跑车图)
https://api.fw1028.top/heal.php?return=json(随机小清新图)
https://api.fw1028.top/model.php?return=json(随机模特图)
https://api.fw1028.top/scenery.php?return=json(随机风景图)
https://api.fw1028.top/beast_ear.php?return=json(随机兽耳娘)
https://api.fw1028.top/choosen.php?return=json(随机精选图)
https://api.fw1028.top/hd.php?return=json(随机横屏图)
https://api.fw1028.top/phone.php?return=json(随机竖屏图)
https://api.fw1028.top/bing.php?return=img(随机必应壁纸)
https://api.fw1028.top/game_wallpaper.php?return=json(随机游戏壁纸)

返回格式

字段 描述
return=img 默认 直接返回图片格式
网页链接不变
return=json 可选 返回一张随机图片的json信息
包括API名称,图片url,图片比例这三个信息

实例

GET https://api.fw1028.top/acg.php

302  http://cdn-hw-static.shanhutech.cn/bizhi/staticwp/202209/2dc994569b66128eb072c7977b5afe0d--1810753957.jpg

GET https://api.fw1028.top/acg.php?return=img

200  https://api.fw1028.top/acg.php?return=img

GET https://api.fw1028.top/acg.php?return=json

200
{
    "API_name": "FANG_API",
    "imgurl": "http:\/\/cdn-hw-static.shanhutech.cn\/bizhi\/staticwp\/202211\/9a375ec14bb9ef507eed3fb209b958c8--3804415225.jpg",
    "width": "3840",
    "height": "2160"
}