Statuses/counts

跳转到: 导航, 搜索

目录

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