当前接口状态 · 正常
免费获取必应背景图
接口地址: https://yz.jilicun.com/api.php?api=bing
备用接口: https://yz1.jilicun.com/api.php?api=bing
海外接口: https://www.ban365.com/api.php?api=bing
返回格式: JSON
请求方式: GET/POST
请求示例: https://yz.jilicun.com/api.php?api=bing 复制示例 跳转示例
请求参数说明:
| 名称 | 变量 | 必填 | 类型 | 说明 |
|---|---|---|---|---|
| 接口 | api | 是 | GET | 填写expire |
| 数据签名 | sign | 否 | GET/POST | 如果开启了[数据签名]需提交此项 |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| code | String | 返回状态 |
返回示例:
{
"code": 200,
"msg": "success",
"data": {
"url": "https:\/\/www.bing.com\/th?id=OHR.SiberianLynx_ZH-CN0749166653_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
"copyright": "欧亚猞猁,西伯利亚 (© Mario Plechaty Photograph\/Shutterstock)",
"copyrightlink": "https:\/\/www.bing.comhttps:\/\/www.bing.com\/search?q=%E6%AC%A7%E4%BA%9A%E7%8C%9E%E7%8C%81&form=hpcapt&mkt=zh-cn",
"title": "幽灵之猫",
"startdate": "20251015",
"enddate": "20251016",
"hsh": "2e6ff5f51fcb2e77da98b4dd9756bf9a",
"fullstartdate": "202510151600",
"urlbase": "\/th?id=OHR.SiberianLynx_ZH-CN0749166653",
"available_resolutions": [
"3840x2160",
"1920x1200",
"1920x1080",
"1366x768",
"1280x720",
"1024x768",
"800x600",
"800x480",
"640x480",
"400x240"
]
}
}
错误码格式说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| 101 | String | 应用不存在 |
| 102 | String | 应用已关闭 |
| 171 | String | 接口维护中 |
| 172 | String | 接口未添加或不存在 |
| 123 | 456 | 789 |
代码示例:
// 获取今天的图片信息(JSON格式) /api/api/bing/index.php?format=json // 直接显示今天的图片 /api/api/bing/index.php?format=image // 获取昨天的图片(1920x1080) /api/api/bing/index.php?format=image&idx=1 // 获取移动端分辨率的图片 /api/api/bing/index.php?format=image&resolution=768x1366 // 获取4K分辨率的图片 /api/api/bing/index.php?format=image&resolution=3840x2160