获取必应每日壁纸
接口地址: http://api.98dou.cn/api/bing
返回格式: JSON
请求方式: GET
请求示例: http://api.98dou.cn/api/bing 调用测试
请求参数说明:
名称 | 是否必填 | 类型 | 说明 | 接口测试 |
---|---|---|---|---|
type | json | json | JSON输出:json-示例:?type=json | 调用测试 |
rand | sj | sj | 随机输出:sj【英文】-示例:?rand=sj | 调用测试 |
rand | sj-zh | sj-zh | 随机输出:sj-zh【中文】-示例:?rand=sj-zh | 调用测试 |
type | 否 | week | 获取Bing近7天的图片?type=week | 调用测试 |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{ "code": 200, "msg": "成功获取每日bing图片", "time_id": "20240828", "search": "https://www.bing.com/search?q=2024%E5%B9%B4%E5%A4%8F%E5%AD%A3%E6%AE%8B%E5%A5%A5%E4%BC%9A&form=hpcapt&mkt=zh-cn", "title": "蒙马特和圣心大教堂,巴黎,法国 (© Tuul & Bruno Morandi/Getty Images)", "imageurl": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_UHD.jpg&w=4096", "image_size": { "UHD": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_UHD.jpg", "1920x1080": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_1920x1080.jpg", "1366x768": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_1366x768.jpg", "1280x768": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_1024x768.jpg", "800x600": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_800x600.jpg", "800x480": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_800x480.jpg", "768x1280": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_768x1280.jpg", "720x1280": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_720x1280.jpg", "480x800": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_640x480.jpg", "640x480": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_480x800.jpg", "400x240": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_400x240.jpg", "320x240": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_320x240.jpg", "240x320": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_240x320.jpg" } }
请求参数设置:
参数名称 | 参数值 |
---|---|
{ "code": 200, "msg": "成功获取每日bing图片", "time_id": "20240828", "search": "https://www.bing.com/search?q=2024%E5%B9%B4%E5%A4%8F%E5%AD%A3%E6%AE%8B%E5%A5%A5%E4%BC%9A&form=hpcapt&mkt=zh-cn", "title": "蒙马特和圣心大教堂,巴黎,法国 (© Tuul & Bruno Morandi/Getty Images)", "imageurl": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_UHD.jpg&w=4096", "image_size": { "UHD": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_UHD.jpg", "1920x1080": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_1920x1080.jpg", "1366x768": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_1366x768.jpg", "1280x768": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_1024x768.jpg", "800x600": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_800x600.jpg", "800x480": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_800x480.jpg", "768x1280": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_768x1280.jpg", "720x1280": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_720x1280.jpg", "480x800": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_640x480.jpg", "640x480": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_480x800.jpg", "400x240": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_400x240.jpg", "320x240": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_320x240.jpg", "240x320": "https://cn.bing.com/th?id=OHR.ParalympicsParis_ZH-CN9773135851_240x320.jpg" } }
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
http://api.98dou.cn/api/bing?apiKey=你的key
http://api.98dou.cn/api/bing?type=json&apiKey=你的key
http://api.98dou.cn/api/bing?rand=sj&apiKey=你的key
http://api.98dou.cn/api/bing?rand=sj-zh&apiKey=你的key