查询QQ个人信息
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| string | 是 | QQ账号 | 3121871622 | |
| skey | string | 是 | QQ号的skey | @5Qhf |
| pskey | string | 是 | 空间的pskey,空间网站:qzone.qq.com | hF2N |
| qq2 | string | 是 | 需要查询QQ账号 | 2096085855 |
| type | string | 否 | 输出格式,默认text,可选text/json | json |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "qq",
"type": "string",
"required": true,
"description": "QQ账号",
"example": "3121871622"
},
{
"name": "skey",
"type": "string",
"required": true,
"description": "QQ号的skey",
"example": "@5Qhf"
},
{
"name": "pskey",
"type": "string",
"required": true,
"description": "空间的pskey,空间网站:qzone.qq.com",
"example": "hF2N"
},
{
"name": "qq2",
"type": "string",
"required": true,
"description": "需要查询QQ账号",
"example": "2096085855"
},
{
"name": "type",
"type": "string",
"required": false,
"description": "输出格式,默认text,可选text/json",
"example": "json"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "QQ个人信息",
"description": "查询QQ个人信息",
"version": "1.0.0"
},
"paths": {
"/api/QQ/qq_ti_info/api.php": {
"get": {
"summary": "QQ个人信息",
"description": "查询QQ个人信息",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "qq",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "3121871622"
},
"description": "QQ账号"
},
{
"name": "skey",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "@5Qhf"
},
"description": "QQ号的skey"
},
{
"name": "pskey",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "hF2N"
},
"description": "空间的pskey,空间网站:qzone.qq.com"
},
{
"name": "qq2",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "2096085855"
},
"description": "需要查询QQ账号"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "输出格式,默认text,可选text/json"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "QQ个人信息",
"description": "查询QQ个人信息",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "qq",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "3121871622"
},
"description": "QQ账号"
},
{
"name": "skey",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "@5Qhf"
},
"description": "QQ号的skey"
},
{
"name": "pskey",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "hF2N"
},
"description": "空间的pskey,空间网站:qzone.qq.com"
},
{
"name": "qq2",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "2096085855"
},
"description": "需要查询QQ账号"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "输出格式,默认text,可选text/json"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://api-v2.317ak.com",
"description": "当前访问入口(https)"
}
]
}
{
"code": 1,
"msg": "请求成功",
"data": {
"uin": 2096085855,
"qzone": 1,
"intimacyScore": 46,
"nickname": "",
"realname": "",
"smartname": "",
"logolabel": "1732538714",
"commfrd": 78,
"friendship": 0,
"astro": 11,
"from": "邵阳",
"isFriend": 1,
"bitmap": "08009c40020e0001",
"avatarUrl": "http://qlogo4.store.qq.com/qzone/2096085855/2096085855/100?1732538714"
}
}
查询 QQ 个人信息,为需要获取 QQ 资料信息的应用提供查询能力。接口支持通过请求获取对应账号的个人信息数据。
https://api-v2.317ak.com/api/QQ/qq_ti_info/api.php
GET、POST
本接口调用需要密钥。
首选鉴权方式:Query 参数传递。
请求时在调用地址后添加 key 参数,例如使用 key=接口调用密钥 进行鉴权。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口调用密钥 |
| string | 是 | QQ账号 | |
| skey | string | 是 | QQ号的skey |
| pskey | string | 是 | 空间的pskey,空间网站:qzone.qq.com |
| qq2 | string | 是 | 需要查询QQ账号 |
| type | string | 否 | 输出格式,默认 text,可选 text/json |
{
"code": 1,
"msg": "请求成功",
"data": {
"uin": 2096085855,
"qzone": 1,
"intimacyScore": 46,
"nickname": "",
"realname": "",
"smartname": "",
"logolabel": "1732538714",
"commfrd": 78,
"friendship": 0,
"astro": 11,
"from": "邵阳",
"isFriend": 1,
"bitmap": "08009c40020e0001",
"avatarUrl": "http://qlogo4.store.qq.com/qzone/2096085855/2096085855/100?1732538714"
}
}
| 字段 | 类型 | 说明 |
|---|---|---|
| code | integer | 请求状态标识,成功时返回 1 |
| msg | string | 请求结果描述 |
| data | object | QQ个人信息数据 |
| data.uin | integer | 查询到的QQ账号 |
| data.qzone | integer | 空间状态信息 |
| data.intimacyScore | integer | 亲密度评分 |
| data.nickname | string | 昵称 |
| data.realname | string | 真实姓名信息 |
| data.smartname | string | 智能名称信息 |
| data.logolabel | string | 头像标识 |
| data.commfrd | integer | 共同好友数量 |
| data.friendship | integer | 好友关系信息 |
| data.astro | integer | 星座信息 |
| data.from | string | 来源地区信息 |
| data.isFriend | integer | 是否为好友状态 |
| data.bitmap | string | 位图信息 |
| data.avatarUrl | string | QQ头像地址 |
请求失败时返回示例:
{"code":0,"msg":"未提供调用密钥","errcode":11001}
| errcode | 含义 |
|---|---|
| 11001 | 未提供调用密钥 |
| 11002 | 密钥错误 |
| 11003 | 密钥已禁用 |
| 11004 | 积分余额不足 |
| 11005 | 请求过于频繁(QPM 限制) |
| 11006 | 接口维护中 |
| 11007 | 接口已禁用 |
| 11008 | 接口不可用 |
| 11009 | 密钥校验暂不可用 |
| 11010 | 积分系统暂不可用 |
| 11011 | 收费接口须提供有效密钥 |
| 11012 | 鉴权方式错误 |
| 11013 | 接口不存在 |
| 11014 | ***地址无效 |
| 11015 | ***地址不允许 |
| 11016 | ***请求失败 |
| 11017 | 服务暂不可用 |
| 11018 | 请求方式不允许 |
| 11019 | 当前IP不在白名单内 |
| 11020 | 启用出口代理须提供有效密钥 |
| 11021 | 未配置可用出口代理 |
| 11022 | 出口代理不可用 |
| 11023 | 密钥已过期 |
| 11024 | 令牌分配积分不足 |
curl -G "https://api-v2.317ak.com/api/QQ/qq_ti_info/api.php" \
--data-urlencode "key=你的密钥" \
--data-urlencode "qq=3121871622" \
--data-urlencode "skey=@5Qhf" \
--data-urlencode "pskey=hF2N" \
--data-urlencode "qq2=2096085855" \
--data-urlencode "type=json"
// PHP
$url = "https://api-v2.317ak.com/api/QQ/qq_ti_info/api.php?key=你的密钥&qq=3121871622&skey=%405Qhf&pskey=hF2N&qq2=2096085855&type=json";
$result = file_get_contents($url);
echo $result;
key 传递,请妥善保管,避免泄露或公开发布。qq 与 qq2 参数均需填写有效的 QQ 账号格式,提交前请确认账号信息准确无误。skey、pskey 参数属于查询所需凭证信息,请确保参数有效且未失效,否则可能导致查询失败。type 参数可选,未填写时默认返回文本格式;如需结构化数据处理,可设置为 json。curl -G "https://api-v2.317ak.com/api/QQ/qq_ti_info/api.php" \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "qq=3121871622" \
--data-urlencode "skey=@5Qhf" \
--data-urlencode "pskey=hF2N" \
--data-urlencode "qq2=2096085855" \
--data-urlencode "type=json"