接口地址
https://www.chuangxinwu.cn/public/api/qqgroup_api.php?group=123456789
接口状态
正常 (HTTP 200) 上次检测:2026-05-19 02:44:59
📝 接口描述
* QQ群头像获取API
*
* 调用方式:
* 1. 获取群头像:http://你的域名/qqgroup_api.php?group=123456789
* 2. 直接输出头像:http://你的域名/qqgroup_api.php?group=123456789&output=image
* 3. 指定大小:http://你的域名/qqgroup_api.php?group=123456789&size=100
* 4. 获取头像URL:http://你的域名/qqgroup_api.php?group=123456789&output=url
* 5. 批量获取:http://你的域名/qqgroup_api.php?groups=123456789,987654321
📋 请求示例
【基础请求】
GET https://www.chuangxinwu.cn/public/api/qqgroup_api.php?group=123456789
【请求头】
Content-Type: application/json
Accept: application/json
【参数说明】
GET请求参数通过URL传递:
https://www.chuangxinwu.cn/public/api/qqgroup_api.php?group=123456789?参数名1=参数值1&参数名2=参数值2
【调用示例】
# cURL
curl -X GET 'https://www.chuangxinwu.cn/public/api/qqgroup_api.php?group=123456789' \
-H 'Content-Type: application/json'
# JavaScript (Fetch)
fetch('https://www.chuangxinwu.cn/public/api/qqgroup_api.php?group=123456789', {
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, 'https://www.chuangxinwu.cn/public/api/qqgroup_api.php?group=123456789');
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 = 'https://www.chuangxinwu.cn/public/api/qqgroup_api.php?group=123456789'
response = requests.get(url)
print(response.json())
📤 真实返回示例
暂无真实返回数据
🔧 JavaScript (Fetch)
fetch('/api/proxy.php?url=https%3A%2F%2Fwww.chuangxinwu.cn%2Fpublic%2Fapi%2Fqqgroup_api.php%3Fgroup%3D123456789', {
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://www.chuangxinwu.cn/public/api/qqgroup_api.php?group=123456789');
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://www.chuangxinwu.cn/public/api/qqgroup_api.php?group=123456789'
response = requests.request('GET', url)
print(response.json())