使用指南

每日bing图

所属分类:娱乐休闲
接口状态:正常
调用次数:5次
收费类型: 免费(每日上限10000次)
密匙要求:

接口简介

提供微软必应每日更新的高质量壁纸图片,支持多种格式和尺寸获取。包含图片标题、描述、版权信息和不同尺寸的图片链接,适合用作桌面壁纸或图片素材。

接口信息

请求方式: GET

接口地址:

https://api.dlck.cn/api/bing.php

请求参数说明

参数名 参数类型 是否必填 参数说明
n Int 获取数量(1-8,默认8)
format String 输出格式:json、image、url(默认json)
size String 图片尺寸:original、hd、thumbnail(默认original)
date String 指定日期(格式:YYYYMMDD)
api_key 字符串 登录后在「个人中心」获取的密钥,用于接口权限验证

调用测试

请求参数:

登录后在个人中心获取API密钥

响应结果:

等待测试...

响应示例

成功响应(200):

{ "code": 200, "msg": "success", "data": { "images": [ { "date": "20240115", "title": "美丽的自然景观", "copyright": "© 摄影师名称", "description": "这是一张描述文字", "url": "https:\/\/www.bing.com\/th?id=OHR.Example_1920x1080.jpg", "hd_url": "https:\/\/www.bing.com\/th?id=OHR.Example_UHD.jpg", "thumbnail_url": "https:\/\/www.bing.com\/th?id=OHR.Example_384x216.jpg", "copyright_link": "https:\/\/www.bing.com\/search?q=..." } ], "total": 1, "current_date": "2024-01-15", "update_time": "2024-01-15 10:30:00" }, "params": { "n": 1, "format": "json", "size": "original", "date": "" }, "request_time": "2024-01-15 10:30:00" }

使用示例

基本使用(需要API密钥) https://api.dlck.cn/api/bing.php?api_key=YOUR_API_KEY 获取单张今日图片 https://api.dlck.cn/api/bing.php?api_key=YOUR_API_KEY&n=1 获取高清图片 https://api.dlck.cn/api/bing.php?api_key=YOUR_API_KEY&size=hd 直接重定向到图片 https://api.dlck.cn/api/bing.php?api_key=YOUR_API_KEY&format=image 只获取图片URL https://api.dlck.cn/api/bing.php?api_key=YOUR_API_KEY&format=url 获取指定日期的图片 https://api.dlck.cn/api/bing.php?api_key=YOUR_API_KEY&date=20231201