接口地址
https://q1.qlogo.cn/g?b=qq&nk=1735737677&s=640
接口状态
正常 (HTTP 200) 上次检测:2026-04-20 16:16:06
📝 接口描述
获取QQ头像
📋 请求示例
GET https://q1.qlogo.cn/g?b=qq&nk=1735737677&s=640# 带参数请求示例
https://q1.qlogo.cn/g?b=qq&nk=1735737677&s=640?param1=value1¶m2=value2
📤 真实返回示例
点击下方"刷新检测"按钮获取真实返回示例
🔧 JavaScript (Fetch)
fetch('/api/proxy.php?url=https%3A%2F%2Fq1.qlogo.cn%2Fg%3Fb%3Dqq%26nk%3D1735737677%26s%3D640', {
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://q1.qlogo.cn/g?b=qq&nk=1735737677&s=640');
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://q1.qlogo.cn/g?b=qq&nk=1735737677&s=640'
response = requests.request('GET', url)
print(response.json())