接口地址
https://api.guiguiya.com/api/hqrb?type=json
接口状态
正常 (HTTP 200) 上次检测:2026-04-21 03:50:01
📝 接口描述
提供每日最新环球时报(节假日除外)
📋 请求示例
GET https://api.guiguiya.com/api/hqrb?type=json# 带参数请求示例
https://api.guiguiya.com/api/hqrb?type=json?param1=value1¶m2=value2
📤 真实返回示例
{
"code": 500,
"msg": "今日休刊或无数据(周日或节假日)",
"datetime": "2026-04-21",
"author": "环球时报-鬼鬼API"
}
🔧 JavaScript (Fetch)
fetch('/api/proxy.php?url=https%3A%2F%2Fapi.guiguiya.com%2Fapi%2Fhqrb%3Ftype%3Djson', {
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://api.guiguiya.com/api/hqrb?type=json');
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://api.guiguiya.com/api/hqrb?type=json'
response = requests.request('GET', url)
print(response.json())