bing壁纸获取
获取bing每日壁纸

接口地址: https://api.4qb.cn/api/bingimg

返回格式: JSON/IMG

请求方式: GET/POST

请求示例: https://api.4qb.cn/api/bingimg

请求参数说明:

名称 必填 类型 说明
type string 返回格式:json返回JSON,img直接返回图片,text返回图片链接
idx int 图片索引,0为当天,1为昨天,以此类推

返回参数说明:

名称 类型 说明
code int 状态码,200成功,201失败
msg string 返回信息
imgurl string 图片完整URL
imgcopyright string 图片版权信息
startdate string 图片开始日期(YYYYMMDD)
enddate string 图片结束日期(YYYYMMDD)
urlbase string 图片基础URL
title string 图片标题

返回示例:

				    {
  "code": 200,
  "msg": "查询成功",
  "imgurl": "http://cn.bing.com/th?id=OHR.GrandSunset_ROW3515132743_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
  "imgcopyright": "Grand Canyon and the Colorado River, Arizona, United States (© Matt Anderson Photography/Getty Images)",
  "startdate": "20260226",
  "enddate": "20260227",
  "urlbase": "http://cn.bing.com/th?id=OHR.GrandSunset_ROW3515132743",
  "title": "Info"
}				    

请求参数设置:

参数名称 参数值


{
  "code": 200,
  "msg": "查询成功",
  "imgurl": "http://cn.bing.com/th?id=OHR.GrandSunset_ROW3515132743_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
  "imgcopyright": "Grand Canyon and the Colorado River, Arizona, United States (© Matt Anderson Photography/Getty Images)",
  "startdate": "20260226",
  "enddate": "20260227",
  "urlbase": "http://cn.bing.com/th?id=OHR.GrandSunset_ROW3515132743",
  "title": "Info"
}

错误码格式说明:

名称 类型 说明
code int 错误状态码
msg string 错误信息
tips string 错误提示

代码示例: