接口地址
http://api.guiguiya.com/api/wenan/hitokoto
接口状态
正常 (HTTP 200) 上次检测:2026-04-20 16:16:05
📝 接口描述
hitokoto随机一言文案
📋 请求示例
GET http://api.guiguiya.com/api/wenan/hitokoto# 带参数请求示例
http://api.guiguiya.com/api/wenan/hitokoto?param1=value1¶m2=value2
📤 真实返回示例
{
"code": 200,
"msg": "随机hitokoto一言",
"full": "不论是过去还是未来,我都会保护你!—505622287《旋风管家》",
"data": {
"author": "505622287",
"works": "《旋风管家》",
"content": "不论是过去还是未来,我都会保护你!",
"by": "鬼鬼API 提供技术支持",
"文本调用": "?type=text"
}
}
🔧 JavaScript (Fetch)
fetch('/api/proxy.php?url=http%3A%2F%2Fapi.guiguiya.com%2Fapi%2Fwenan%2Fhitokoto', {
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/wenan/hitokoto');
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/wenan/hitokoto'
response = requests.request('GET', url)
print(response.json())