默认输出(1920x1080):
自定义输出:
建议分辨率:
4K:3840x2160
2K:2048x1080
QHD:2560x1440
FHD:1920x1080
HD:1280x720
理论上4k以下的分辨率都可以写的
width=宽
height=高
https://api.osyb.cn/Bing.php?width=2560&height=1440
自适应输出(1920x1080或1080x1920):
判断访问设备手机还是电脑而进行输出
https://api.osyb.cn/Bing.php?auto
自定义自适应输出:
手机端:
pewidth=宽
peheight=高
电脑端:
pewidth=宽
peheight=高
https://api.osyb.cn/Bing.php?auto&pewidth=1440&peheight=2560&pcwidth=2560&pcheight=1440
JSON方法:
https://api.osyb.cn/Bing.php?json
返回信息:
{"status":200,"url":"https:\/\/cn.bing.com\/th?id=OHR.VillandryGarden_ZH-CN6140359139_UHD.jpg&rf=LaDigue_UHD.jpg&pid=hp&w=1920&h=1080&rs=1&c=4","width":"1920","height":"1080","title":"\u5962\u534e\u7684\u8ff7\u5bab","copyright":"\u7ef4\u6717\u5fb7\u91cc\u57ce\u5821\u53ca\u82b1\u56ed\uff0c\u5362\u74e6\u5c14\u6cb3\u8c37\uff0c\u6cd5\u56fd (\u00a9 VLADJ55\/Shutterstock)","time":"20230626"}
自定义输出JSON方法:
https://api.osyb.cn/Bing.php?json&width=2560&height=1440
自适应输出JSON方法(1920x1080或1080x1920):
https://api.osyb.cn/Bing.php?json&auto
自定义自适应输出JSON方法:
https://api.osyb.cn/Bings.php?json&auto&pewidth=1440&peheight=2560&pcwidth=2560&pcheight=1440
更新日志:
注:本接口仅供学习使用。
评论 (0)