接口地址
https://www.chuangxinwu.cn/public/api/bing_api.php
接口状态
正常 (HTTP 200) 上次检测:2026-05-19 14:28:22
📝 接口描述
* 调用方式:
* 1. 获取图片URL:http://你的域名/bing_api.php
* 2. 直接显示图片:http://你的域名/bing_api.php?output=image
* 3. 获取详细信息:http://你的域名/bing_api.php?output=info
* 4. 指定分辨率:http://你的域名/bing_api.php?size=1920x1080
* 5. 获取历史图片:http://你的域名/bing_api.php?date=20240101
* 6. 获取多日图片:http://你的域名/bing_api.php?days=7
* 7. 随机获取:http://你的域名/bing_api.php?random=1
* 8. 获取今日竖版手机壁纸:http://你的域名/bing_api.php?type=vertical
📋 请求示例
【基础请求】
GET https://www.chuangxinwu.cn/public/api/bing_api.php
【请求头】
Content-Type: application/json
Accept: application/json
【参数说明】
GET请求参数通过URL传递:
https://www.chuangxinwu.cn/public/api/bing_api.php?参数名1=参数值1&参数名2=参数值2
【调用示例】
# cURL
curl -X GET 'https://www.chuangxinwu.cn/public/api/bing_api.php' \
-H 'Content-Type: application/json'
# JavaScript (Fetch)
fetch('https://www.chuangxinwu.cn/public/api/bing_api.php', {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(data => console.log(data));
# PHP (cURL)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.chuangxinwu.cn/public/api/bing_api.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
# Python (requests)
import requests
url = 'https://www.chuangxinwu.cn/public/api/bing_api.php'
response = requests.get(url)
print(response.json())
📤 真实返回示例
{
"code": 200,
"success": true,
"data": {
"date": "20260518",
"title": "马略卡岛的边缘",
"copyright": "福门托尔灯塔, 马略卡, 巴利阿里群岛, 西班牙 (© Allard Schager\/Getty Images)",
"description": "福门托尔灯塔, 马略卡, 巴利阿里群岛, 西班牙 (",
"url": "https:\/\/www.bing.com\/th?id=OHR.SpainLighthouse_ZH-CN6024263415_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
"url_uhd": "https:\/\/www.bing.com\/th?id=OHR.SpainLighthouse_ZH-CN6024263415_UHD.jpg&rf=LaDigue_UHD.jpg&pid=hp",
"url_vertical": "https:\/\/www.bing.com\/th?id=OHR.SpainLighthouse_ZH-CN6024263415_1080x1920.jpg",
"copyright_link": "https:\/\/www.bing.com\/search?q=%E8%A5%BF%E7%8F%AD%E7%89%99%E7%A6%8F%E9%97%A8%E6%89%98%E5%B0%94%E7%81%AF%E5%A1%94&form=hpcapt&mkt=zh-cn"
},
"message": "获取成功"
}
🔧 JavaScript (Fetch)
fetch('/api/proxy.php?url=https%3A%2F%2Fwww.chuangxinwu.cn%2Fpublic%2Fapi%2Fbing_api.php', {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err));
🐘 PHP (cURL)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.chuangxinwu.cn/public/api/bing_api.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
📡 Python (requests)
import requests
url = 'https://www.chuangxinwu.cn/public/api/bing_api.php'
response = requests.request('GET', url)
print(response.json())