必应每日一图

81

Hello

写了一个收集必应搜索首页图片的项目:

Page:bing.mcloc.cn🔗 (实时部署仓库🔗最新版本)

API🔗:bing.mcloc.cn/api/getImage🔗

仓库

bing🔗

bing-serve🔗

效果

特点

必应搜索每天会更新一张高质量的图片,用来做壁纸再好不过了,每天都有新心情。

这个项目有前后端,支持回溯,可以获取这几种处理后的图:缩略图、高斯模糊、灰度,同时有HD、UHD。

为了配合Pmage🔗使用,接口还会返回base64格式的极小缩略图。

服务端还会提取图片的主要颜色。

API

这里提供一个不怎么维护的、不保证可用性的、只回溯90天的API:

https://api.mcloc.cn/bing

直接访问会返回当天图片,或者访问/getList获取列表及详细信息:

请求方法: GET

地址: https://api.mcloc.cn/bing/getList

参数(query):

Key

Value

说明

pageSize

Number

每页数据条数

currentPage

Number

目标页数

请求示例:

https://api.mcloc.cn/bing/getList?pageSize=3&currentPage=2

返回示例:

{
    "totle": 10,
    "list": [
        {
            "id": 7,
            "title": "亚伯拉罕湖中的树,加拿大艾伯塔 (© Coolbiere/Getty Images)",
            "date": "2021-04-15",
            "base64": "data:image/jpeg;base64,/9j/4AAQSkZJ...",
            "url": {
                "hd": "http://localhost:3000/img/2021/04/15/2021-04-15_hd.jpg",
                "uhd": "http://localhost:3000/img/2021/04/15/2021-04-15_uhd.jpg",
                "gaussian": "http://localhost:3000/img/2021/04/15/2021-04-15_hd_gaussian_20.jpg",
                "greyscale": "http://localhost:3000/img/2021/04/15/2021-04-15_hd_greyscale.jpg",
                "thumbnail": "http://localhost:3000/img/2021/04/15/2021-04-15_hd_thumbnail_480_270.jpg"
            },
            "color": {
                "Muted": "#5182ac",
                "Vibrant": "#24a3c8",
                "DarkMuted": "#314257",
                "LightMuted": "#93aecb",
                "DarkVibrant": "#115d7b",
                "LightVibrant": "#7ec2de"
            },
            "timestamp": "2021-04-15T08:34:50.000Z"
        },
        // more...
    ]
}