接口地址
https://api.qqsuu.cn/api/dm-hqtiqnqi?city=上海市&type=1
接口状态
正常 (HTTP 200) 上次检测:2026-04-20 16:08:58
📝 接口描述
实时及一周天气预报
📋 请求示例
POST https://api.qqsuu.cn/api/dm-hqtiqnqi?city=上海市&type=1# 请求头
Content-Type: application/json
# 请求体示例
{
"key": "value"
}
📤 真实返回示例
请求未携带ApiKey秘钥,请登录用户中心生成
🔧 JavaScript (Fetch)
fetch('/api/proxy.php?url=https%3A%2F%2Fapi.qqsuu.cn%2Fapi%2Fdm-hqtiqnqi%3Fcity%3D%E4%B8%8A%E6%B5%B7%E5%B8%82%26type%3D1', {
method: 'POST',
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.qqsuu.cn/api/dm-hqtiqnqi?city=上海市&type=1');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
📡 Python (requests)
import requests
url = 'https://api.qqsuu.cn/api/dm-hqtiqnqi?city=上海市&type=1'
response = requests.request('POST', url)
print(response.json())