C/2/datapush/status/en

跳转到: 导航, 搜索

datapush/status

Connect the API to get the statuses.

URL

https://c.api.weibo.com/2/datapush/status.json

Supported Formats

JSON

HTTP Request Method

GET

Requires Login

False
See the Login and Authorization Mechanism Statement for login and authorization details.

Requests Count Limitation

None

Request Parameters

  Requires Type and Range Description
source false string This parameter is not needed when using OAuth.The value of this parameter is the AppKey.
access_token false string This parameter is required when using OAuth.You will get the access_token after oauth authorization.
subid true int Subscription ID (See the specification for more information).
since_id false long The data ID application hold when disconnected. Weibo Platform will store data for 5 minutes. Applications can regain data within 5 minutes since disconnected by since_id parameter.

Notes

  • Use the url: http://c.api.weibo.com/datapush/status to call the API.The url: https://c.api.weibo.com/2/datapush/status.json is invalid.
  • The IP address to call the API must be one of the IP list provided when created the subscription. Otherwise, the error response ‘Ip is limited’ will be returned.
  • Parameter 'source' and 'access_token' are not needed to pass.
  • Data id is the first field returned by this endpoint, and is different from the Weibo id in status field.

Response

JSON Example

{
    "id": 1211260020031346,
    "text": {
        "type": "status",
        "event": "add",
        "status": {
            "created_at": "Mon Nov 26 10:25:38 +0800 2012",
            "id": 3516560159321035,
            "text": "百度新闻 http://t.cn/zjbRppQ (分享自@百度手机浏览器)",
            "source": "<a href=\"http://m.weibo.com/web/cellphone.php#android\" rel=\"nofollow\">Android客户端</a>",
            "favorited": false,
            "truncated": false,
            "in_reply_to_status_id": "",
            "in_reply_to_user_id": "",
            "in_reply_to_screen_name": "",
            "geo": null,
            "mid": "3516560159321035",
            "isLongText":false,     //true means the length of weibo text exceeds 140 characters
            "user": {
                …
            }
            
        }
    },
    "match_info":{             //匹配信息
        "keyword":"不是",    //匹配上的关键词
        "uid":0              //匹配上的用户ID
    }
}

See the Error Code Description for the error information details.

Field Description

None

Others

None

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


api评价