Short url/share/statuses

跳转到: 导航, 搜索

目录

short_url/share/statuses

取得包含指定单个短链接的最新微博内容

URL

http://api.t.sina.com.cn/short_url/share/statuses.(json%7Cxml)

支持格式

XML/JSON

HTTP请求方式

GET

是否需要登录

true
关于授权机制,参见授权机制声明

请求数限制

true
关于请求数限制,参见接口访问权限说明

请求参数

  必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数)
url_short true string 需要取得关联微博内容的短链接,需要URLencoded
since_id false int64 若指定此参数,则返回ID比since_id大的微博(即比since_id时间晚的微博),默认为0
max_id false int64 若指定此参数,则返回ID小于或等于max_id的微博,默认为0
count false int 可选参数,每次返回的最大记录数(即页面大小),不大于200
page false int 可选参数,返回结果的页序号,有分页限制

注意事项

返回结果

XML示例

<url>
  <url_short>hthQiX</url_short>
  <share_statuses>
    <status>
      <created_at>Thu Mar 10 11:49:33 +0800 2011</created_at>
      <id>7309196575</id>
      <text>套用新农合资金,决不在少数,期盼有关部门加强监督,严厉查处! 《副局长套用新农合资金500万》 http://sinaurl.cn/hthQiX( 来自@手机新浪网 )</text>
      <source>
        <a href="http://news.sina.com.cn/437/2008/0701/14.html">手机新浪网</a>
      </source>
      <favorited>false</favorited>
      <truncated>false</truncated>
      <geo/>
      <in_reply_to_status_id/>
      <in_reply_to_user_id/>
      <in_reply_to_screen_name/>
      <mid>20111031014909663</mid>
      <user>
        <id>1480186597</id>
        <screen_name>笨天</screen_name>
        <name>笨天</name>
        <province>21</province>
        <city>2</city>
        <location>辽宁 大连</location>
        <description>雷厉风行的把快乐传递给每个认识和不认识的朋友!</description>
        <url>http://blog.sina.com.cn/ymluo</url>
        <profile_image_url>http://tp2.sinaimg.cn/1480186597/50/1270971406/1</profile_image_url>
        <domain>lym1214</domain>
        <gender>m</gender>
        <followers_count>40</followers_count>
        <friends_count>69</friends_count>
        <statuses_count>52</statuses_count>
        <favourites_count>1</favourites_count>
        <created_at>Sun Nov 15 00:00:00 +0800 2009</created_at>
        <following>false</following>
        <verified>false</verified>
        <allow_all_act_msg>true</allow_all_act_msg>
        <geo_enabled>false</geo_enabled>
      </user>
      <annotations/>
    </status>
    ...
  </share_statuses>
</url>

JSON示例

{
    "share_statuses": [
        {
            "annotations": [], 
            "created_at": "Thu Mar 10 16:11:04 +0800 2011", 
            "favorited": false, 
            "geo": null, 
            "id": 7319355503, 
            "in_reply_to_screen_name": "", 
            "in_reply_to_status_id": "", 
            "in_reply_to_user_id": "", 
            "mid": "20111031019976310", 
            "source": "<a href=\"http://news.sina.com.cn/\" rel=\"nofollow\">手机新浪网</a>", 
            "text": "套用新农合资金,决不在少数,期盼有关部门加强监督,严厉查处! 《副局长套用新农合资金500万》 http://sinaurl.cn/hthQiX( 来自@手机新浪网 )", 
            "truncated": false, 
            "user": {
                "allow_all_act_msg": true, 
                "city": "2", 
                "created_at": "Thu Sep 24 00:00:00 +0800 2009", 
                "description": "雷厉风行的把快乐传递给每个认识和不认识的朋友!", 
                "domain": "lym1214", 
                "favourites_count": 2, 
                "followers_count": 4268, 
                "following": false, 
                "friends_count": 1963, 
                "gender": "m", 
                "geo_enabled": false, 
                "id": 1400142285, 
                "location": "辽宁 大连", 
                "name": "笨天", 
                "profile_image_url": "http://tp2.sinaimg.cn/1400142285/50/1290865581/1", 
                "province": "11", 
                "screen_name": "笨天", 
                "statuses_count": 12087, 
                "url": "http://blog.sina.com.cn/ymluo", 
                "verified": false
            }
        }, 
        ...
    ], 
    "url_short": "hthQiX"
}

其他