Statuses/counts

跳转到: 导航, 搜索
(返回:)
第1行: 第1行:
 
== statuses/counts ==
 
== statuses/counts ==
批量统计微薄的评论数,转发数.单次最多获取100个。
+
批量统计微博的评论数,转发数,一次请求最多获取100个。
  
 
=== URL: ===
 
=== URL: ===
第18行: 第18行:
  
 
=== 请求参数===
 
=== 请求参数===
* ids.  必填参数.  微薄ID号列表,用逗号隔开  
+
* ids.  必填参数.  微博ID号列表,用逗号隔开  
 
o Example: http://api.t.sina.com.cn/statuses/counts.xml?ids=32817222,214672651
 
o Example: http://api.t.sina.com.cn/statuses/counts.xml?ids=32817222,214672651
 
   
 
   

2010年1月8日 (五) 16:31的版本

目录

statuses/counts

批量统计微博的评论数,转发数,一次请求最多获取100个。

URL:

http://api.t.sina.com.cn/statuses/counts.format

格式:

xml, json

是否需要登录:

GET

请求数限制:

true, 对用户有限制

调用频率限制:

false

请求参数

  • ids. 必填参数. 微博ID号列表,用逗号隔开

o Example: http://api.t.sina.com.cn/statuses/counts.xml?ids=32817222,214672651

返回:

XML 格式样例(部分内容删减):

<?xml version="1.0" encoding="UTF-8"?>
<counts>
 <count>
  <id>32817222</id>
  <comments>10</comments>
  21
 </count>
 <count>
  <id>214672651</id>
  <comments>123</comments>
  129
 </count>
</counts>

使用示例:

curl -u user:password http://api.t.sina.com.cn/statuses/counts.xml