C/2/media statuses/count sp/biz

跳转到: 导航, 搜索

media_statuses/count_sp/biz

批量获取指定媒体类账户微博的转发数、评论数、赞数、阅读数

URL

https://c.api.weibo.com/2/media_statuses/count_sp/biz.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录

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

访问授权限制


请求所有商业接口:

    • 50000次/小时/IP;

请求参数

  必选 类型及范围 说明
source false string 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。
access_token false string 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。
ids true string 微博ID,英文半角逗号分隔,最大100。

注意事项

  • 如果传入的微博不是媒体类账户用户发出的,则不返回相关数据。

返回结果

JSON示例

//成功返回
[
    {
        "id": 3468865533114224,
        "comments": 37495,
        "reposts": 39118,
        "attitudes": 0,                // 表示对这条微博的表态数
        "reads": 132
    },
    {
        "id": 3468815805141776,
        "comments": 8551,
        "reposts": 23858,
        "attitudes": 0,
        "reads": 132
    }
]

//失败返回
{
    "request": "/2/statuses/count_sp.json",
    "error_code": "201XX",
    "error": "error message."
}

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

字段说明

其他



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


api评价