C/2/friendships/followers/location count

跳转到: 导航, 搜索
 
(未显示2个用户的3个中间版本)
第1行: 第1行:
 
{{Api_desc_business|
 
{{Api_desc_business|
 
uri=friendships/followers/location_count|
 
uri=friendships/followers/location_count|
desc=获取当前用户粉丝的地区细分数据 。|
+
desc=获取用户粉丝的地区细分数据 。|
 
httpMethod=GET|
 
httpMethod=GET|
 
needAuth=是|
 
needAuth=是|
 
rateLimit={{B_rate_limit}}|
 
rateLimit={{B_rate_limit}}|
params=|
+
params=
 +
{{api_args|uid|false|string|需要查询用户的uid。}}|
 
result=
 
result=
 
<pre>
 
<pre>
第26行: 第27行:
 
</pre>|
 
</pre>|
 
resultDes=无|
 
resultDes=无|
useAge=*仅限蓝V用户,否则返回数据为空;
+
useAge=*只细分到一级地区,到省级;
*只细分到一级地区,到省级;
+
 
*针对前一天的粉丝数据进行的分析;|
 
*针对前一天的粉丝数据进行的分析;|
otherInfo=将地址编码转成地址名称调用接口http://open.weibo.com/wiki/2/common/code_to_location;
+
otherInfo=将地址编码转成地址名称调用接口http://open.weibo.com/wiki/2/common/code_to_location
 
}}{{#a:showgrade}}
 
}}{{#a:showgrade}}

2017年7月10日 (一) 16:00的最后版本

friendships/followers/location_count

获取用户粉丝的地区细分数据 。

URL

https://c.api.weibo.com/2/friendships/followers/location_count.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录


关于登录授权,参见 如何登录授权

访问授权限制


请求所有商业接口:

    • 50000次/小时/IP;

请求参数

  必选 类型及范围 说明
source false string 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。
access_token false string 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。
uid false string 需要查询用户的uid。

注意事项

  • 只细分到一级地区,到省级;
  • 针对前一天的粉丝数据进行的分析;

返回结果

JSON示例

{
    "uid": 10438,
    "result": 
        {
            "total_count": "121",
            "locations": [
                {
                    "count": "56",
                    "province": "13"  //省级地址编码
                   
                },
                ...
            ]
        }
    
}

关于错误返回值与错误代码,参见 错误代码说明

字段说明

其他

将地址编码转成地址名称调用接口http://open.weibo.com/wiki/2/common/code_to_location

Language: [[{{{2/uri}}}|中文]]


文档更新时间: 2017-07-10
api评价