Skip to content
鼓励作者:欢迎打赏犒劳

01-Bing每日一图接口

接口地址:https://cn.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1

json
{
  "images": [
    {
      "startdate": "20240912",
      "fullstartdate": "202409121600",
      "enddate": "20240913",
      "url": "/th?id=OHR.PointReyes_ZH-CN7781514086_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
      "urlbase": "/th?id=OHR.PointReyes_ZH-CN7781514086",
      "copyright": "雷耶斯角国家海岸灯塔,加利福尼亚州,美国 (© RMB Images/Photography by Robert Bowman/Getty Images)",
      "copyrightlink": "https://www.bing.com/search?q=%E9%9B%B7%E8%80%B6%E6%96%AF%E5%9B%BD%E5%AE%B6%E6%B5%B7%E5%B2%B8&form=hpcapt&mkt=zh-cn",
      "title": "自然与人类的天堂",
      "quiz": "/search?q=Bing+homepage+quiz&filters=WQOskey:%22HPQuiz_20240912_PointReyes%22&FORM=HPQUIZ",
      "wp": true,
      "hsh": "6ef8593fc7926e4f55ce2f8a214182fb",
      "drk": 1,
      "top": 1,
      "bot": 1,
      "hs": []
    }
  ],
  "tooltips": {
    "loading": "正在加载...",
    "previous": "上一个图像",
    "next": "下一个图像",
    "walle": "此图片不能下载用作壁纸。",
    "walls": "下载今日美图。仅限用作桌面壁纸。"
  }
}
  • idx 为之前第几天,1为昨天 2为前天
  • n 为从今天起往前获取的图片数量。

访问图片:

地址拼接:https://cn.bing.com + images.url

txt
https://cn.bing.com/th?id=OHR.PointReyes_ZH-CN7781514086_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp

如果要控制宽高,需要后面加上参数&w=960&h=540&rs=1&c=4

上次更新:

如有转载或 CV 的请标注本站原文地址