稳定、快速、免费的 API 接口服务
自动获取手机端或者PC端壁纸,可用于网站背景图显示等
接口地址: http://api.kekc.cn/api/microsoftbg
返回格式: json
请求方式: GET/POST
请求示例: http://api.kekc.cn/api/microsoftbg
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{ "code": 200, "msg": "获取成功!", "data": { "name": "泰国因他农山", "pc": "https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE4wpoi?ver=4952", "m": "https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE4wqGN?ver=2997", "datahs": [ { "title": "飘游在这片林木葱郁的山地上空,你将……", "icon": "Search", "text": "处在东南亚“屋脊”之上方", "cta": "https://www.bing.com/search?q=因他农山+国家公园%2C+泰国&setlang=zh-cn&mkt=zh-cn&form=M00001", "landscape": { "x_percent": "0.4", "y_percent": "0.47" }, "portrait": { "x_percent": "0.4", "y_percent": "0.47" }, "cta_type": "nav-newtab", "hs": "1" } ] } } 或 { "code": 400, "msg": "获取失败!" }
请求参数设置:
参数名称 | 参数值 |
---|---|
{ "code": 200, "msg": "获取成功!", "data": { "name": "泰国因他农山", "pc": "https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE4wpoi?ver=4952", "m": "https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE4wqGN?ver=2997", "datahs": [ { "title": "飘游在这片林木葱郁的山地上空,你将……", "icon": "Search", "text": "处在东南亚“屋脊”之上方", "cta": "https://www.bing.com/search?q=因他农山+国家公园%2C+泰国&setlang=zh-cn&mkt=zh-cn&form=M00001", "landscape": { "x_percent": "0.4", "y_percent": "0.47" }, "portrait": { "x_percent": "0.4", "y_percent": "0.47" }, "cta_type": "nav-newtab", "hs": "1" } ] } } 或 { "code": 400, "msg": "获取失败!" }
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例: