返回 | 接口 / 社交平台 / 获取QQ头像
GET 社交平台

获取QQ头像

通过 QQ 号获取头像图片,支持指定尺寸。

累计调用 11 今日调用 0

更新于 2026-10-16

调用地址

GET
https://itapi.top/api/qq

响应示例

200 OK
(该接口直接返回二进制图片,Content-Type: image/png。用 <img src="https://itapi.top/api/qq"> 直接展示即可;示例不粘贴二进制内容)

在线测试

该接口无需参数,直接发送即可。

代码示例

cURL · GET
curl "https://itapi.top/api/qq"
PHP
<?php
$res  = file_get_contents("https://itapi.top/api/qq");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res  = await fetch("https://itapi.top/api/qq");
const json = await res.json();
console.log(json);
Python
import requests

r = requests.get("https://itapi.top/api/qq", timeout=10)
print(r.json())
返回接口列表