随机图片API

图片默认均为http,用的是新浪微博图床,高速访问

API调用:

动漫:https://code.xulgr.com/api/img/dm
风景:https://code.xulgr.com/api/img/fj
宇宙:https://code.xulgr.com/api/img/yz
雷姆:https://code.xulgr.com/api/img/rem

 

参数:

return=json/http/https/img

 

JSON调用格式

动漫:https://code.xulgr.com/api/img/dm/?return=json
风景:https://code.xulgr.com/api/img/fj/?return=json
宇宙:https://code.xulgr.com/api/img/yz/?return=json
雷姆:https://code.xulgr.com/api/img/rem/?return=json

 

JSON数据

{
    "code":"200" #图片状态码
    "acgurl":"https:\/\/tva4.sinaimg.cn\/large\/0062YWwEgy1ggea0o6t90j311y0lc40h.jpg" #图片地址
    "width":"1366" #图片宽
    "height":"768" #图片高
}

 

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容