随机二次元图片

调用此api会随机返回电脑端或手机端的图片

请求URL

https://www.loliapi.com/bg/

URL中的 bg 是Background的简写

请求参数(get)

请求示例

最基本调用格式

https://www.loliapi.com/bg/

访问会返回一个随机图片

高级调用格式

如果想获取 id 为 23 的图片的 json 数据,就应该访问

https://www.loliapi.com/bg/?id=23&type=json

访问会返回

{
    "site": "www.Loliapi.com",
    "imgurl": "https:\/\/tva1.sinaimg.cn\/large\/0075ueBvly1gxct1fxp2ij31hc0u0qq0.jpg",
    "width": "1920",
    "height": "1080"
}

{
    "site": "www.Loliapi.com",
    "imgurl": "https:\/\/tva1.sinaimg.cn\/large\/0075ueBvly1gxcsxrhtsdj312z1kwtiu.jpg",
    "width": "1403",
    "height": "2048"
}

Last updated