第23行: | 第23行: | ||
</pre>| | </pre>| | ||
resultDes={{Rdes user count}}| | resultDes={{Rdes user count}}| | ||
− | useAge= | + | useAge=<font style="color:red">接口升级后,处于测试阶段(审核未通过)的应用,将无法获取未授权用户的粉丝数、关注数及微博数。</font>| |
otherInfo=无 | otherInfo=无 | ||
}}{{#a:showgrade}} | }}{{#a:showgrade}} |
2014年10月22日 (三) 17:07的版本
users/counts
批量获取用户的粉丝数、关注数、微博数
URL
https://api.weibo.com/2/users/counts.json
支持格式
JSON
HTTP请求方式
GET
是否需要登录
是
关于登录授权,参见 如何登录授权
访问授权限制
访问级别:普通接口
频次限制:是
关于频次限制,参见 接口访问权限说明
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
access_token | true | string | 采用OAuth授权方式为必填参数,OAuth授权后获得。 |
uids | true | string | 需要获取数据的用户UID,多个之间用逗号分隔,最多不超过100个。 |
注意事项
接口升级后,处于测试阶段(审核未通过)的应用,将无法获取未授权用户的粉丝数、关注数及微博数。
调用样例及调试工具
返回结果
JSON示例
[ { "id": "1404376560", "followers_count": "1369", "friends_count": "526", "statuses_count": "2908" }, ... ]
关于错误返回值与错误代码,参见 错误代码说明
返回字段说明
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
id | int64 | 微博ID |
followers_count | int | 粉丝数 |
friends_count | int | 关注数 |
statuses_count | int | 微博数 |
private_friends_count | int | 暂未支持 |
其他
无
相关问题
到 帮助中心 查看更多问题或提问