QQ官方各类接口API集合 总有一个适合你[转载]

QQ群头像接口
http://p.qlogo.cn/gh/QQ群号码/QQ群号码/100/

QQ群设置接口,bkn自己获取
http://qinfo.clt.qq.com/cgi-bin/ … ing_v2?gc=&bkn=这里是bkn

QQ头像接口,imgtype参数值为1到4
https://ssl.ptlogin2.qq.com/getface?imgtype=4&uin=QQ号码

QQ空间背景音乐接口
http://qzone-music.qq.com/fcg-bin/cgi_playlist_xml.fcg?g_tk=&json=1&uin=QQ号码

QQ个人信息接口,bkn自己获取
https://qun.qq.com/cgi-bin/qunwelcome/myinfo?callback=?&bkn=

bkn值获取:先从cookie中取skey

11C#代码:

{ var hash = 5381; for (int i = 0, len = skey.Length; i < len; ++i) hash += (hash << 5) + (int)skey[i]; return hash & 2147483647;
QQ群设置接口,bkn自己获取
http://qinfo.clt.qq.com/cgi-bin/ … ing_v2?gc=&bkn=这里是bkn

QQ好友列表
https://qun.qq.com/cgi-bin/qun_mgr/get_friend_list?bkn=

QQ空间头像接口
http://qlogo3.store.qq.com/qzone/QQ号/QQ号/100

QQ群列表(简略信息)
http://qun.qzone.qq.com/cgi-bin/get_group_list?g_tk=

QQ群列表
https://qun.qq.com/cgi-bin/qun_mgr/get_group_list?bkn=

QQ修改群名片
POST:https://qinfo.clt.qq.com/cgi-bin/qun_info/set_group_card

提交信息u=&name=&gc=&bkn=

u为本人QQ,name为欲修改为的名字(需要url编码),gc为群号,bkn必填

附加协议头Referer:https://qinfo.clt.qq.com/qinfo_v3/member.html?groupuin=

需要提交cookie

QQ群成员获取接口
https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?gc=&st=&end=&sort=0&bkn=

gc由qq群列表返回json中获取,st为起始位置由0开始,end为终止位置由0开始

QQ取群公告
http://qun.qzone.qq.com/cgi-bin/feeds/get_list?qid=&i=1&s=-1&n=

qid为群号,n为数量(无上限),访问需登录

QQ取本地已登录账号
https://localhost.ptlogin2.qq.com:xxxx/pt_get_uins?callback=ptui_getuins_CB&r=&pt_local_tk=

此链接指向本地127.0.0.1,xxxx为本地端口号,需要通过netstat -ano查看,开头为43xx

QQ取群基本信息(全部)
https://qinfo.clt.qq.com/cgi-bin/qun_info/get_group_info_all?gc=&bkn=

gc为群号,bkn必填,附加协议头Referer:https://qinfo.clt.qq.com/qinfo_v3/member.html?groupuin=

QQ取群基本信息
https://qinfo.clt.qq.com/cgi-bin/qun_info/get_group_info_v2?gc=&bkn=

gc为群号,bkn必填,附加协议头Referer:https://qinfo.clt.qq.com/qinfo_v3/setting.html?groupuin=

QQ取群成员基本信息
http://qun.qzone.qq.com/cgi-bin/get_group_member?groupid=&g_tk=

groupid为群号,g_tk必填,在item数组中包含管理员信息(简略)

QQ取群付费信息
https://pay.qun.qq.com/cgi-bin/group_pay/group_enter_fee/get_group_enter_fee?gc=&bkn=

gc为群号,bkn必填,附加协议头Referer:https://qinfo.clt.qq.com/qinfo_v3/setting.html?groupuin=

QQ取群成员信息和设置
https://qinfo.clt.qq.com/cgi-bin/qun_info/get_members_info_v1?gc=&bkn=

gc为群号,bkn必填,附加协议头Referer:https://qinfo.clt.qq.com/qinfo_v3/member.html?groupuin=

QQ取群文件信息
http://qun.qzone.qq.com/cgi-bin/get_group_share_info?groupid=&g_tk=

groupid为群号,g_tk必填,访问需登录,好像只能获取到群文件数量,具体自己测试

QQ取群文件(只能取到100)
http://qun.qzone.qq.com/cgi-bin/group_share_list?groupid=&bussinessid=0&g_tk=

groupid为群号,g_tk必填

QQ取群文件最佳CDN
http://qun.qzone.qq.com/cgi-bin/group_share_get_downurl?groupid=&pa=%2F102%2F83c65cb2-41b5-11ea-a715-5452007bdaa4&g_tk=

groupid为群号,g_tk必填

QQ取历史头像
https://ti.qq.com/mqqbase/cgi/history/face/list?timestamp=&num=&need_cur=1

所有内容均为必填项,在登录后即可获取,num为获取数量,如果要取全部就填很大(测试最大50)

QQ取最近群验证消息(html)
https://web.qun.qq.com/cgi-bin/sys_msg/getmsg?ver=5689&filter=0&ep=0

包括待处理消息https://web.qun.qq.com/cgi-bin/sys_msg/getmsg?ver=5689

QQ取加群二维码
https://qm.qq.com/dl/wpa/e_group?gid=&size=420

需要cookie,gid为群号,size必须(改了大小也不会改变),附加协议头Referer: https://qun.qq.com/join.html

QQ取群idkey
https://qun.qq.com/proxy/domain/shang.qq.com/wpa/g_wpa_get?guin=

需要cookie,协议头Referer:https://qun.qq.com/proxy.html?callback=1&id=1,guin为群号中间用英文逗号“,”隔开,guin需url编码

QQ群应用
https://pub.idqqimg.com/qqun/app/aio/appstore.json.js

QQ空间图片说说查看
https://h5.qzone.qq.com/proxy/domain/plist.photo.qq.com/fcgi-bin/cgi_floatview_photo_list_v2?g_tk=&topicId=&picKey=&cmtNum=10&inCharset=utf-8&outCharset=utf-8&uin=&hostUin=&appid=311

g_tk必填,pickey随便填但不可为空,topicID必填,uin为自己的QQ号,hostUin为对方QQ号

QQ空间获取(返回jsonp)
https://user.qzone.qq.com/proxy/domain/ic2.qzone.qq.com/cgi-bin/feeds/feeds3_html_more?uin=4833154720&scope=0&view=1&daylist=&uinlist=&gid=&flag=1&filter=all&applist=all&refresh=0&aisortEndTime=

QQ群投票
http://client.qun.qq.com/cgi-bin/feeds/get_t_list?s=-1&ft=21&i=1&qid=&bkn=&n=

需要cookie,qid为群号,bkn必填,n为数量(尽量往大填可以取全部)http://client.qun.qq.com/cgi-bin/feeds/get_feed?fid=&qid=&bkn=

需要cookie,qid为群号,fid为上个接口获取到的fid,bkn必填

相关推荐

网友评论(0)