本文最后更新于 534 天前,其中的信息可能已经有所发展或是发生改变。
Bing.com 网站的背景是一张图片,这张图片是每天换一次的,拿来做自己网站的背景图也是不戳的。
图片示例
本图片使用api接口,每日更新
获取图片
获取bing图片有很多种
方法一
自己去bing用F12去扒,然后放上去[doge]
方法二
使用某些大佬的api,这里列举几个bing的api
https://api.dujin.org/bing/1920.php
https://api.xygeng.cn/Bing/
https://api.kdcc.cn/img/
https://api.mfstudio.cc/bing/
本人写的API:
https://nocsi.xyz/bing/api.php?mode=today&format=photo(直接返回今日壁纸)
https://nocsi.xyz/bing/api.php?mode=today&format=json(json返回今日壁纸)
https://nocsi.xyz/bing/api.php?mode=7day&format=photo(直接返回7天随机壁纸)
https://nocsi.xyz/bing/api.php?mode=7day&format=json(json返回7天随机壁纸)
https://nocsi.xyz/bing/api.php?mode=info&format=json(json返回今日壁纸信息)
https://nocsi.xyz/bing/api.php?mode=info&format=txt(文本形式返回今日壁纸信息)
看来我也得建一个了
为什么打开显示404?
把括号删了,api和bing之间用/隔开,我写错了?
改了
https://nocsi.xyz/bing/api.php?mode=today&format=photo
https://nocsi.xyz/bing/api.php?mode=today&format=json
https://nocsi.xyz/bing/api.php?mode=7day&format=photo
https://nocsi.xyz/bing/api.php?mode=7day&format=json
https://nocsi.xyz/bing/api.php?mode=info&format=json
https://nocsi.xyz/bing/api.php?mode=info&format=txt