Bing壁纸API文档

获取必应每日精美壁纸的API接口文档

📸 获取每日壁纸

GEThttps://blogapi-traefik.exploit-db.xyz/api/views/blogs/bing-wallpaper

返回示例

{
  "url": "https://www.bing.com/th?id=OHR.Example_1920x1080.jpg",
  "title": "示例标题",
  "copyright": "© 示例版权信息",
  "date": "20240403",
  "fullUrl": "https://www.bing.com/th?id=OHR.Example_UHD.jpg"
}

🎲 随机获取壁纸

GEThttps://blogapi-traefik.exploit-db.xyz/api/views/blogs/bing-wallpaper?is_random=true

说明

随机返回最近7天内的任意一张壁纸

返回示例

{
  "url": "https://www.bing.com/th?id=OHR.Example_1920x1080.jpg",
  "title": "示例标题",
  "copyright": "© 示例版权信息",
  "date": "20240403",
  "fullUrl": "https://www.bing.com/th?id=OHR.Example_UHD.jpg"
}

💻 使用示例

// 获取今日壁纸
fetch('https://blogapi-traefik.exploit-db.xyz/api/views/blogs/bing-wallpaper')
  .then(response => response.json())
  .then(data => {
    console.log('今日壁纸:', data);
    document.body.style.backgroundImage = `url(${data.url})`;
  })
  .catch(error => console.error('Error:', error));

// 随机获取壁纸
fetch('https://blogapi-traefik.exploit-db.xyz/api/views/blogs/bing-wallpaper?is_random=true')
  .then(response => response.json())
  .then(data => {
    console.log('随机壁纸:', data);
  });

📋 响应字段说明

🚨 注意事项