封装 Bing 每日壁纸,支持 JSON 元数据 / 直接出图 / 历史列表 / 随机。本页由接口实时驱动。
💡 想直接跳到 Bing 源图片地址?点上方「打开源图」、点大图本身、或复制下方「源图片地址」均可;接口侧 /api/image 直接 302 跳转到 Bing 源图地址(不再由本接口代理出图)。
本接口提供以下全部能力,所有接口均支持跨域(CORS)调用,并支持 mkt / res / idx 等通用参数。
idx 可翻页查看更早的图片。{"status":"ok","ts":...},用于监控与心跳检测。| 参数 | 说明 | 可选值 / 范围 |
|---|---|---|
mkt | 地区市场 | zh-CN、en-US、en-GB、ja-JP、de-DE、fr-FR … |
res | 图片分辨率 | 1920x1080、1366x768、UHD(4K) |
idx | 往前天数(0=今天) | 0–7 |
n | 列表数量(仅 /api/list) | 1–8 |
把示例中的 https://你的域名 换成你的接口地址(如 https://bing.aoran.bid)即可直接使用;点击每段右上角「复制」可拷贝代码。
<img src="https://你的域名/api/image" alt="Bing 每日图片" />fetch('https://你的域名/api')
.then(r => r.json())
.then(d => {
console.log(d.title, d.copyright);
document.querySelector('img').src = d.url;
});fetch('https://你的域名/api/list?n=7')
.then(r => r.json())
.then(d => console.log(d.images));fetch('https://你的域名/api/random')
.then(r => r.json())
.then(d => { location.href = d.url; }); // 或 image.src = d.url