2/users/behavior trend

跳转到: 导航, 搜索
(以“{{Api_desc_business| uri=users/behavior_trend| desc=获取用户行为数据每日变化趋势 。| httpMethod=GET| needAuth=是| rateLimit={{B_rate_limit}}| params=...”为内容创建页面)
 
第1行: 第1行:
 
{{Api_desc_business|
 
{{Api_desc_business|
 
uri=users/behavior_trend|
 
uri=users/behavior_trend|
desc=获取用户行为数据每日变化趋势 。|
+
desc=获取当前用户行为数据每日变化趋势 。|
 
httpMethod=GET|
 
httpMethod=GET|
 
needAuth=是|
 
needAuth=是|

2012年4月17日 (二) 19:24的版本

users/behavior_trend

获取当前用户行为数据每日变化趋势 。

URL

https://c.api.weibo.com/2/users/behavior_trend.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录


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

访问授权限制


请求所有商业接口:

    • 50000次/小时/IP;

请求参数

  必选 类型及范围 说明
source false string 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。
access_token false string 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。
starttime false int64 开始时间,Unix时间戳。
endtime false int64 结束时间,Unix时间戳。

注意事项

  • 默认为返回最近1周的数据;
  • 数据最长保存纪录1个月;
  • 该数据仅限V用户,否则返回数据为空;
  • 返回的微博数、转发数、评论数是前一天产生的数量,其他数值为截止到前一天为止历史积累的数量;

返回结果

JSON示例

{
    "uid": 10438,
    "result": [
        {
            "day": "2011-12-12",
            "followers_count": "63",   //粉丝数
            "v_followers_count": "18", //V粉丝数
            "daren_followers_count": "18", //达人粉丝数
            "friends_count": "58",    //关注数
            "v_friends_count": "58",  //V关注数
            "statuses_count": "258",   //微博数
            "bi_followers_count": "18",  //互粉数
            "repost_count": "115", //转发数
            "comments_count": "178",   //评论数
        },
        ...
    ]
}

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

字段说明

其他



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


api评价