获取QQ信息的几个接口

可能有的朋友们早就在空间抓到了这些接口,不会的一定要自己抓包啊,IE9版本以前的可以用httpwatch,IE9自带抓包软件(快捷键F12)

本论坛已经发布了登陆空间源代码,其中含有g_tk的计算,关于登陆的不用多说。

在VB中首先登陆一个QQ,计算得到g_tk,然后用GET方式请求下面的URL即可,最好用inet1.openurl()方法打开,注意返回信息,我先列举了5个。

1、获取空间信息接口

http://base.s6.qzone.qq.com/cgi-bin/user/cgi_userinfo_get_all?uin=【对方QQ】&vuin=【登陆的QQ】&rd=0.3724780201512549&g_tk=【g_tk值】

返回格式:

_Callback(

{"uin":958796636,"nickname":"*星光*","spacename":"星光的空间",

"desc":"祝福你每天都开开心心,快快乐乐!----------20110101","signature":"javascript:n=String.fromCharCode(73,32,76,111,118,101,32,89,111,117);alert(n)","avatar":"http://qqspace-av.qq.com/958796636/10/00/","sex_type":0,"sex":1,"animalsign_type":0,"constellation_type":0,"constellation":1,"age_type":0,"age":20,"islunar":0,"birthday_type":0,"birthyear":1991,"birthday":"0-01","bloodtype":5,"address_type":0,"country":"中国","province":"吉林","city":"长春","home_type":0,"hco":"中国","hp":"吉林","hc":"长春","marriage":1,"career":"在校学生","company":"星光公司","cco":"中国","cp":"吉林","cc":"长春","cb":"","mailname":"","mailcellphone":"","mailaddr":""});

获取个人信息卡片:

http://r.qzone.qq.com/cgi-bin/user/cgi_personal_card?uin=【对方QQ】&remark=0&g_tk=【g_tk值】

返回格式:

_Callback({"uin":958796636,"pycertified":0,"qzone":1,"nickname":"*星光*","gender":1"astro":1,"from":"长春","offsetBirth":330,"isFriend":1,"avatarUrl":"http://qlogo1.store.qq.com/qzone/958796636/958796636/100","specialrelation":3,"blog":{"title":"最全的电影大全,以后看电影就按这个名单了!","content":"不知道哪个NB人士总结的,以后看电影就按这个名单了,省时省力又有所得。\n【一、让这些电影治愈你】 :\n1、缺乏学习动力:《幸福终点站》、《风雨哈佛路》\n2、对...","url":http://958796636.qzone.qq.com/blog/1319786908}});

2、获取所有好友信息,包括所有好友的QQ、昵称、备注等

http://r.cnc.qzone.qq.com/cgi-bin/tfriend/friend_mngfrd_get.cgi?uin=【登陆的QQ】&rd=0.9840207901969242&g_tk=【g_tk值】

返回格式(其中一个好友信息):

{"uin":552127426, "groupid":4, "name":"♂潇潇公子づ", "is_special":"0", "is_xy":"1", "xyname":"任佳", "xyurl":"http://profile.pengyou.com/index.php?mod=profile&u=c265e4bd629300c524a6b5c7fc1bb8d055d0b9f4aca35394", "img":"http://qlogo3.store.qq.com/qzone/552127426/552127426/50", "imgbig":"http://qlogo3.store.qq.com/qzone/552127426/552127426/100", "yellow":-1, "realname":"任佳", "online":0

经过研究提有用字段:

QQ:  "uin":552127426

分组:"groupid":4

网名:"name":"♂潇潇公子づ"

特别关心:"is_special":"0"

是否是校友 "is_xy":"1"

校友名 "xyname":"任佳"

校友主页:"xyurl":"http://profile.pengyou.com/index.php?mod=profile&u=c265e4bd629300c524a6b5c7fc1bb8d055d0b9f4aca35394",

黄钻等级 "yellow":-1

真实姓名即备注:"realname":"任佳"

是否在线:"online":0

3、给对方空间留下最近访客痕迹,并且返回对方空间人气信息:

http://g.cnc.qzone.qq.com/fcg-bin/cgi_emotion_list.fcg?uin=【对方QQ】&loginUin=【登陆的QQ】&s=250195&num=3&g_tk=【g_tk值】

返回格式:

visitCountCallBack({"retcode":1,"visitcount":167,"dayvisit":1,"spacemark":0,"markchange":0,"sun":167,"love":203,"rain":118,"nutri":0,"level":3,"gardener":1,"festival":0,"firstlogin":1},{},{"feedscount":0,"medalnum":0});

注意:刷新一下历史访问数量(visitcount)和今日访问数量(dayvisit)就增加了,其实没有增加!切记

4、查看谁看过我

http://g.qzone.qq.com/cgi-bin/friendshow/cgi_get_visitor_simple?uin=【对方QQ】&mask=7&clear=1&sd=872534&g_tk=【g_tk值】

返回格式(其中一个最近访客):

_Callback( {"Ishost":1, "items":[{"uin":169015*****, "name":"下页,听╰贝多芬的音乐ゞ", "online":1, "yellow":-1, "supervip":0, "src":0, "mod":0, "time":1342763569, "flag":0,

5、获取QQ头像:

http://face4.qun.qq.com/cgi/svr/face/getface?type=1&uin=【对方QQ】

还有一种方法测试,你可以用IE打开你的空间个人中心那个页面,然后修改URL的相关参数,粘贴在地址处敲回车即可看见返回信息(g_tk可以抓包得到)。

/所属分类:网页教程/更新时间:2014-11-06
相关网页教程
@2014 www.120muban.com模板库