Skip to content

/bing/wallpaper ​

概述 ​

获取当日 bing 壁纸

终端点 ​

  • Endpoint: /bing/wallpaper
  • 方法: GET

参数 ​

名称类型默认值必须说明
type'large' | 'mini'large否返回的图片尺寸,'large' 代表 1920x1080,'mini' 代表 768x1366

示例 ​

获取标准大小壁纸 ​

bash
curl https://api.imyan.ren/bing/wallpaper -O image.jpg

获取小尺寸竖屏壁纸 ​

bash
curl https://api.imyan.ren/bing/wallpaper?type=mini -O image-mini.jpg

响应 ​

标准尺寸 ​

小尺寸 ​

错误 ​

Invalid type ​

type 参数类型错误

json
{  
    "code": 5001,
    "message": "Invalid type, must be one of large, mini",
    "data": null,
    "success": false
}