C/2/friendships/followers/active num
(以“{{Api_desc_business| uri=friendships/followers/biz| desc=获取当前登录用户的粉丝列表。| httpMethod=GET| needAuth=是| rateLimit={{B_rate_limit}}| params...”为内容创建页面) |
|||
第1行: | 第1行: | ||
{{Api_desc_business| | {{Api_desc_business| | ||
− | uri=friendships/followers/ | + | uri=friendships/followers/active_num| |
desc=获取当前登录用户的粉丝列表。| | desc=获取当前登录用户的粉丝列表。| | ||
httpMethod=GET| | httpMethod=GET| | ||
第19行: | 第19行: | ||
//成功返回 | //成功返回 | ||
{ | { | ||
− | + | errno: 1, | |
− | + | msg: "成功", | |
− | + | code: "B00001", | |
− | + | result: { | |
− | + | total_fans_num: { | |
− | + | 2019-04-14: "0", | |
− | + | 2019-04-15: "0" | |
− | + | }, | |
− | + | active_fans: { | |
− | + | 2019-04-14: "895", | |
− | + | 2019-04-15: "897" | |
− | + | }, | |
− | + | loyal_fans: { | |
− | + | 2019-04-14: "0", | |
− | + | 2019-04-15: "0" | |
− | + | }, | |
− | + | total_fans_num_online: { | |
− | + | 2019-04-14: "0", | |
− | + | 2019-04-15: "0" | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
+ | } | ||
+ | |||
</pre>| | </pre>| | ||
resultDes=无| | resultDes=无| |
2019年4月25日 (四) 17:49的版本
friendships/followers/active_num
获取当前登录用户的粉丝列表。
URL
https://c.api.weibo.com/2/friendships/followers/active_num.json
支持格式
JSON
HTTP请求方式
GET
是否需要登录
是
关于登录授权,参见 如何登录授权
访问授权限制
请求所有商业接口:
- 50000次/小时/IP;
- 50000次/小时/IP;
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
source | false | string | 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。 |
access_token | false | string | 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。 |
gender | false | string | 指定接收用户的性别范围,m:男、f:女。 |
province | false | int | 指定接收用户的省份范围,省份ID。 |
city | false | int | 指定接收用户的城市范围,城市ID。 |
age | false | string | 指定接收用户的年龄范围,取值内容为:6-12、13-18、19-22、23-25、26-29、30-39、40-59、60-80、其他。 |
type | false | int | 指定粉丝的认证类型。0:所有用户;1:普通用户;2:黄V;4:蓝v(包括政府,企业,媒体,网站,校园,应用,机构/团体,公益组织);8:达人;支持任意数字叠加值,如,6:黄V+蓝V,默认为所有用户。 |
bucket | false | int | 筛选粉丝的个数范围,默认为50,最大不超过200。 |
max_time | false | string | 返回结果的时间戳游标,若指定此参数,则返回关注时间小于或等于max_time的粉丝,默认从当前时间开始算。返回结果中会得到next_cursor字段,表示下一页的max_time。next_cursor为0表示已经到记录末尾。 |
cursor_uid | false | int | 排重ID,传上次获取时最后一个用户ID。 |
注意事项
- 只能获取当前登录用户的粉丝列表;
- 活跃粉丝是指近30天内有登录的粉丝;
- 互动粉丝是指近30天内有交互(评论、转发)的粉丝;
返回结果
JSON示例
//成功返回 { errno: 1, msg: "成功", code: "B00001", result: { total_fans_num: { 2019-04-14: "0", 2019-04-15: "0" }, active_fans: { 2019-04-14: "895", 2019-04-15: "897" }, loyal_fans: { 2019-04-14: "0", 2019-04-15: "0" }, total_fans_num_online: { 2019-04-14: "0", 2019-04-15: "0" } } }
关于错误返回值与错误代码,参见 错误代码说明
字段说明
无
其他
无