C/2/business/get count

跳转到: 导航, 搜索
(以“{{Api_desc_business| uri=business/get_count| desc=获取当前应用的配额消耗 。| httpMethod=GET| needAuth=是| rateLimit={{B_rate_limit}}| params= {{api_args...”为内容创建页面)
 
第11行: 第11行:
 
<pre>
 
<pre>
 
{
 
{
       sub_count: {
+
       sub_count: {                                   //订阅服务配额消耗
 
               10134: "0"
 
               10134: "0"
 
       },
 
       },
       search_count: "339268",
+
       search_count: "339268",                 //搜索接口(search/statuses/limited)返回量
       history_search_count: "0",
+
       history_search_count: "0",             //异步下载接口(search/statuses/historical/create)返回量
      fans_count: "0",
+
       total_count: "29214936",               //总配额消耗量
      fans_total_count: "0",
+
       repost_status_count: "67784",       //转发微博(statuses/repost_timeline/all)使用量
       total_count: "29214936",
+
       user_mention_count: "0",               //@某人的微博(statuses/mentions/other)返回量 
      repost_count: "125506",
+
       user_batch_count: "57722",           //批量获取用户微博(statuses/user_timeline_batch)返回量
      comments_count: "34466",
+
       user_timeline_other_count: "0",     //获取其他用户微博(statuses/user_timeline_other)返回量
       repost_status_count: "67784",
+
       user_place_count: "0",                   //位置(place/user_timeline/other)返回量       
       user_mention_count: "0",
+
       comment_show_count: "34466",   // 微博评论(comments/show/all)返回量 
       user_batch_count: "57722",
+
       comment_by_me_count: "0",         //用户发出的评论返回量
       user_timeline_other_count: "0",
+
       comment_to_me_count: "0",         //用户收到的评论返回量
       user_place_count: "0",
+
       comment_timeline_count: "0",       //用户发出和收到的评论(comments/timeline/other)返回量
       comment_show_count: "34466",
+
       comment_mention_count: "0",       //@某人的评论(comments/mentions/other)返回量         
       comment_by_me_count: "0",
+
       comment_to_me_count: "0",
+
       comment_timeline_count: "0",
+
       comment_mention_count: "0",
+
      fs_followers_count: "0",
+
      fs_friends_count: "0",
+
      fs_total_count: "0"
+
 
}
 
}
 
</pre>|
 
</pre>|

2017年7月31日 (一) 12:06的版本

business/get_count

获取当前应用的配额消耗 。

URL

https://c.api.weibo.com/2/business/get_count.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录


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

访问授权限制


请求所有商业接口:

    • 50000次/小时/IP;

请求参数

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

注意事项

返回结果

JSON示例

{
       sub_count: {                                   //订阅服务配额消耗
              10134: "0"
       },
       search_count: "339268",                 //搜索接口(search/statuses/limited)返回量 
       history_search_count: "0",              //异步下载接口(search/statuses/historical/create)返回量
       total_count: "29214936",                //总配额消耗量
       repost_status_count: "67784",       //转发微博(statuses/repost_timeline/all)使用量 
       user_mention_count: "0",               //@某人的微博(statuses/mentions/other)返回量   
       user_batch_count: "57722",           //批量获取用户微博(statuses/user_timeline_batch)返回量 
       user_timeline_other_count: "0",     //获取其他用户微博(statuses/user_timeline_other)返回量 
       user_place_count: "0",                   //位置(place/user_timeline/other)返回量         
       comment_show_count: "34466",   // 微博评论(comments/show/all)返回量   
       comment_by_me_count: "0",         //用户发出的评论返回量
       comment_to_me_count: "0",          //用户收到的评论返回量
       comment_timeline_count: "0",       //用户发出和收到的评论(comments/timeline/other)返回量 
       comment_mention_count: "0",       //@某人的评论(comments/mentions/other)返回量          
}

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

字段说明

其他



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


api评价