Bing每日美图
1.功能介绍
Bing每日美图api用于必应每日一图。
2.请求地址
https://api.szfx.top/bing/api
3.请求参数
参数 | 类型 | 参数值 | 描述 |
---|---|---|---|
type | 选填 | json | 返回json数据 |
blur | 选填 | 5/15/25 | 返回高斯模糊程度不同的图片 |
gray | 选填 | true/false | 灰阶图片/正常色彩图片 |
day | 选填 | n(n≥0) | n天前的图片 |
thumbnail | 选填 | 1/25 | 16×9像素或以25%比例缩放的缩略图 |
4.请求示例
前天(等级为5的高斯模糊)每日一图
https://api.szfx.top/bing/api/?blur=5&day=2
5.返回数据
https://api.szfx.top/bing/api/?type=json
获取今日每日一图的json数据
{
bing_id: "164",
bing_title: "俄勒冈海岸佩蓓角的雷神之井 (© Cavan Images/Offset by Shutterstock)",
bing_imgurl: "https://image.jishusongshu.com/bing/11-Mar-2021/11-Mar-2021.jpg",
bing_imgurlcom_25: "https://image.jishusongshu.com/bing/11-Mar-2021/11-Mar-2021-compress_25.jpg",
bing_imgurluhd: "https://cn.bing.com/th?id=OHR.CapePerpetua_ZH-CN4150223705_UHD.jpg",
bing_imgname: "CapePerpetua_ZH-CN4150223705",
bing_hsh: "3aba334281b6d39f9f6d536ab3a1c614",
submission_date: "11-Mar-2021",
submission_fulldate: "11-Mar-2021 00:01:01",
bing_imgbase64: "data:;base64,PGJyIC8+CjxiPldhcm5pbmc8L2I+OiAgcmVhZGZpbGUoaHR0cHM6Ly9pbWFnZS5qaXNodXNvbmdz aHUuY29tL2JpbmcvMTEtTWFyLTIwMjEvMTEtTWFyLTIwMjEuanBnIWJpbmcxKTogZmFpbGVkIHRv IG9wZW4gc3RyZWFtOiBIVFRQIHJlcXVlc3QgZmFpbGVkISBIVFRQLzEuMSA0MDQgTm90IEZvdW5k DQogaW4gPGI+L3d3dy93d3dyb290L2FwaS5zemZ4LnRvcC9iaW5nL2FwaS9waHAvaW5kZXgucGhw PC9iPiBvbiBsaW5lIDxiPjk5PC9iPjxiciAvPgo= ",
other: "0",
bing_did: "20210311"
}
6.调用效果
<img src="https://api.szfx.top/bing/api/?blur=5&day=2"/>