接口地址
http://api.guiguiya.com/api/bing
接口状态
未检测 (HTTP 302) 上次检测:2026-05-18 05:16:18
📝 接口描述
获取必应每日壁纸
📋 请求示例
【基础请求】
GET http://api.guiguiya.com/api/bing
【请求头】
Content-Type: application/json
Accept: application/json
【参数说明】
GET请求参数通过URL传递:
http://api.guiguiya.com/api/bing?参数名1=参数值1&参数名2=参数值2
【调用示例】
# cURL
curl -X GET 'http://api.guiguiya.com/api/bing' \
-H 'Content-Type: application/json'
# JavaScript (Fetch)
fetch('http://api.guiguiya.com/api/bing', {
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, 'http://api.guiguiya.com/api/bing');
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 = 'http://api.guiguiya.com/api/bing'
response = requests.get(url)
print(response.json())
📤 真实返回示例
暂无真实返回数据
🔧 JavaScript (Fetch)
fetch('/api/proxy.php?url=http%3A%2F%2Fapi.guiguiya.com%2Fapi%2Fbing', {
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, 'http://api.guiguiya.com/api/bing');
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 = 'http://api.guiguiya.com/api/bing'
response = requests.request('GET', url)
print(response.json())