QQ群信息API
请求说明
请求方式: get
请求url: https://qun.qq.com/cgi-bin/group_search/group_search
返回数据格式为:json
url参数:
retype =2
*keyword =[要搜索的群的关键词,可以是群号]
*page= [请求的页码]
*wantnum =[一次请求数量最大为40]
city_flage= 0
distance= 1
ver =1
from= 9
bkn =[和cookies获取方法相同]
style =1
lat= [纬度] 32938427
lon=[经度] 39916527
带为必带参数
HEADERS:
USER-AGENT:
COOKIES:[可登录QQ空间获取]
返回数据的结构
gTotal 搜索到的群的个数
cityid 为城市代码
group_list
code:群号
owner_uin:群主QQ号
返回数据示例
{ "ec": 0,
"errcode": 0,
"em": "",
"keywordSuicide": 0,
"exactSearch": 0,
"gTotal": 8925,
"endflag": 0,
"penetrate": "eyJwb3MiOjIwLCJwIjoiYmVnaW5fcG9zPTMwIn0\u003d",
"redwords": [ "python" ],
"usr_cityid": 10124,
"group_list": [
{
"code": 536333167,
"owner_uin": 213403797,
"name": "python爬虫学习",
"memo": "python技术交流,提供技术服务,共同讨论,欢迎各路萌新和大神加入,解决问题!! Python零基础、Python学习交流,python运维、自动化运维、运维开发、web、web开发、python爬虫、数据分析、数据挖掘、、Django、flask、Tornado、python自动化测试",
"flag_ext": 10551488,
"glogo": "http://p.qlogo.cn/gh/536333167/536333167/140",
"label": [
{
"name": "1772",
"type": 1,
"text_color": "ffffff",
"edging_color": "00cafc"
}, {
"name": "管理员活跃",
"type": 3,
"text_color": "ffffff",
"edging_color": "c573ff" },
{
"name": "男生多",
"type": 3,
"text_color": "ffffff",
"edging_color": "ff80ca" },
{
"name": "品牌产品",
"type": 3,
"text_color": "ffffff",
"edging_color": "ff80ca" }, {
"name": "825.1km",
"type": 3,
"text_color": "ffffff",
"edging_color": "7373ff" } ],
"calc": "eid\u003d708\u0026rid\u003d104\u0026rkid\u003d0\u0026rrlid\u003d0",
"join_auth": "nI9W5MCIQhUyY+KVeScD5Gh7bmceeTdijHHGU8xu7+ntoOSVjuhIQ+Eh3m36/PXC",
"uin_privilege": -1,
"activity": 10,
"cityid": 10059 }
网友评论