Trends/statuses
(→statuses/public_timeline) |
|||
(未显示3个用户的8个中间版本) | |||
第1行: | 第1行: | ||
− | + | {{api_desc2| | |
− | + | uri=trends/statuses| | |
− | + | desc=获取某话题下的微博消息。| | |
− | + | format=XML/JSON| | |
− | + | httpMethod=GET| | |
− | + | needAuth=true| | |
− | + | rateLimit=true| | |
− | {{ | + | params={{api_args|trend_name|true|string|话题关键词。}}| |
− | + | getParam=| | |
− | === | + | postParam=-d "trend_name=java"| |
− | XML示例 | + | result= |
− | + | ===XML示例=== | |
<pre> | <pre> | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<statuses> | <statuses> | ||
− | + | <status> | |
− | <created_at>Tue | + | <created_at>Tue Nov 02 14:42:32 +0800 2010</created_at> |
− | <id> | + | <id>3397147109</id> |
− | <text> | + | <text>回复@星月的守护:都学啊,现在上JAVA,WINDOWS程序设计;以前学过C,C++。不过不通,现在成问题了。//@星月的守护:你学什么语言?</text> |
<source> | <source> | ||
− | <a href="http:// | + | <a href="http://news.sina.com.cn/wap/wbk.html">新浪微博手机版</a> |
</source> | </source> | ||
<favorited>false</favorited> | <favorited>false</favorited> | ||
<truncated>false</truncated> | <truncated>false</truncated> | ||
− | < | + | <geo/> |
− | < | + | <in_reply_to_status_id/> |
− | < | + | <in_reply_to_user_id/> |
− | < | + | <in_reply_to_screen_name/> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<user> | <user> | ||
− | <id> | + | <id>1752561793</id> |
− | <screen_name> | + | <screen_name>RuanP</screen_name> |
− | <name> | + | <name>RuanP</name> |
− | <location> | + | <province>42</province> |
− | <description> | + | <city>1000</city> |
− | <url>http:// | + | <location>湖北</location> |
− | <profile_image_url>http:// | + | <description>海内存知己,天涯若比邻!</description> |
− | <followers_count> | + | <url>http://blog.sina.com.cn/pianruan</url> |
− | <friends_count> | + | <profile_image_url>http://tp2.sinaimg.cn/1752561793/50/1288011459</profile_image_url> |
− | <statuses_count> | + | <domain>ruanpian</domain> |
+ | <gender>f</gender> | ||
+ | <followers_count>10</followers_count> | ||
+ | <friends_count>9</friends_count> | ||
+ | <statuses_count>77</statuses_count> | ||
<favourites_count>0</favourites_count> | <favourites_count>0</favourites_count> | ||
+ | <created_at>Tue Jun 08 00:00:00 +0800 2010</created_at> | ||
<following>false</following> | <following>false</following> | ||
− | <verified> | + | <verified>false</verified> |
+ | <allow_all_act_msg>true</allow_all_act_msg> | ||
+ | <geo_enabled>true</geo_enabled> | ||
</user> | </user> | ||
− | </ | + | <retweeted_status> |
− | + | <created_at>Tue Nov 02 11:17:59 +0800 2010</created_at> | |
− | </statuses> | + | <id>3393817355</id> |
+ | <text>计算机语言,令人头疼的问题#</text> | ||
+ | <source> | ||
+ | <a href="http://news.sina.com.cn/wap/wbk.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/> | ||
+ | <user> | ||
+ | <id>1752561793</id> | ||
+ | <screen_name>RuanP</screen_name> | ||
+ | <name>RuanP</name> | ||
+ | <province>42</province> | ||
+ | <city>1000</city> | ||
+ | <location>湖北</location> | ||
+ | <description>海内存知己,天涯若比邻!</description> | ||
+ | <url>http://blog.sina.com.cn/pianruan</url> | ||
+ | <profile_image_url>http://tp2.sinaimg.cn/1752561793/50/1288011459</profile_image_url> | ||
+ | <domain>ruanpian</domain> | ||
+ | <gender>f</gender> | ||
+ | <followers_count>10</followers_count> | ||
+ | <friends_count>9</friends_count> | ||
+ | <statuses_count>76</statuses_count> | ||
+ | <favourites_count>0</favourites_count> | ||
+ | <created_at>Tue Jun 08 00:00:00 +0800 2010</created_at> | ||
+ | <following>false</following> | ||
+ | <verified>false</verified> | ||
+ | <allow_all_act_msg>true</allow_all_act_msg> | ||
+ | <geo_enabled>true</geo_enabled> | ||
+ | </user> | ||
+ | </retweeted_status> | ||
+ | </status> | ||
+ | ... | ||
+ | <statuses> | ||
</pre> | </pre> | ||
− | + | ===JSON示例=== | |
<pre> | <pre> | ||
− | [ {"created_at":" | + | [ |
− | + | { | |
− | + | "created_at": "Tue Nov 02 14:42:32 +0800 2010", | |
− | + | "favorited": false, | |
− | + | "geo": null, | |
− | + | "id": 3397147109, | |
− | + | "in_reply_to_screen_name": "", | |
− | + | "in_reply_to_status_id": "", | |
− | + | "in_reply_to_user_id": "", | |
− | + | "retweeted_status": { | |
− | + | "created_at": "Tue Nov 02 11:17:59 +0800 2010", | |
− | + | "favorited": false, | |
− | + | "geo": null, | |
− | + | "id": 3393817355, | |
− | + | "in_reply_to_screen_name": "", | |
− | + | "in_reply_to_status_id": "", | |
− | + | "in_reply_to_user_id": "", | |
− | + | "source": "<a href=\"http://news.sina.com.cn/wap/wbk.html\" rel=\"nofollow\">\u65b0\u6d6a\u5fae\u535a\u624b\u673a\u7248</a>", | |
− | + | "text": "\u8ba1\u7b97\u673a\u8bed\u8a00\uff0c\u4ee4\u4eba\u5934\u75bc\u7684\u95ee\u9898#", | |
− | + | "truncated": false, | |
− | + | "user": { | |
− | + | "allow_all_act_msg": true, | |
− | + | "city": "1000", | |
− | + | "created_at": "Tue Jun 08 00:00:00 +0800 2010", | |
− | + | "description": "\u6d77\u5185\u5b58\u77e5\u5df1\uff0c\u5929\u6daf\u82e5\u6bd4\u90bb\uff01", | |
− | + | "domain": "ruanpian", | |
− | + | "favourites_count": 0, | |
− | + | "followers_count": 10, | |
− | + | "following": false, | |
− | + | "friends_count": 9, | |
− | + | "gender": "f", | |
− | + | "geo_enabled": true, | |
− | + | "id": 1752561793, | |
− | + | "location": "\u6e56\u5317", | |
− | + | "name": "RuanP", | |
− | + | "profile_image_url": "http://tp2.sinaimg.cn/1752561793/50/1288011459", | |
− | + | "province": "42", | |
− | + | "screen_name": "RuanP", | |
− | + | "statuses_count": 76, | |
− | + | "url": "http://blog.sina.com.cn/pianruan", | |
− | + | "verified": false | |
− | + | } | |
− | + | },... | |
− | + | ] | |
− | + | </pre>| | |
− | + | useAge=无| | |
− | + | otherInfo=无 | |
− | + | }} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <pre> | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
2012年9月24日 (一) 11:42的最后版本
目录 |
trends/statuses
获取某话题下的微博消息。
URL
http://api.t.sina.com.cn/trends/statuses.(json%7Cxml)
支持格式
XML/JSON
HTTP请求方式
GET
是否需要登录
true
关于授权机制,参见授权机制声明
请求数限制
true
关于请求数限制,参见接口访问权限说明
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
source | true | string | 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数) |
trend_name | true | string | 话题关键词。 |
注意事项
无
返回结果
XML示例
<?xml version="1.0" encoding="UTF-8"?> <statuses> <status> <created_at>Tue Nov 02 14:42:32 +0800 2010</created_at> <id>3397147109</id> <text>回复@星月的守护:都学啊,现在上JAVA,WINDOWS程序设计;以前学过C,C++。不过不通,现在成问题了。//@星月的守护:你学什么语言?</text> <source> <a href="http://news.sina.com.cn/wap/wbk.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/> <user> <id>1752561793</id> <screen_name>RuanP</screen_name> <name>RuanP</name> <province>42</province> <city>1000</city> <location>湖北</location> <description>海内存知己,天涯若比邻!</description> <url>http://blog.sina.com.cn/pianruan</url> <profile_image_url>http://tp2.sinaimg.cn/1752561793/50/1288011459</profile_image_url> <domain>ruanpian</domain> <gender>f</gender> <followers_count>10</followers_count> <friends_count>9</friends_count> <statuses_count>77</statuses_count> <favourites_count>0</favourites_count> <created_at>Tue Jun 08 00:00:00 +0800 2010</created_at> <following>false</following> <verified>false</verified> <allow_all_act_msg>true</allow_all_act_msg> <geo_enabled>true</geo_enabled> </user> <retweeted_status> <created_at>Tue Nov 02 11:17:59 +0800 2010</created_at> <id>3393817355</id> <text>计算机语言,令人头疼的问题#</text> <source> <a href="http://news.sina.com.cn/wap/wbk.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/> <user> <id>1752561793</id> <screen_name>RuanP</screen_name> <name>RuanP</name> <province>42</province> <city>1000</city> <location>湖北</location> <description>海内存知己,天涯若比邻!</description> <url>http://blog.sina.com.cn/pianruan</url> <profile_image_url>http://tp2.sinaimg.cn/1752561793/50/1288011459</profile_image_url> <domain>ruanpian</domain> <gender>f</gender> <followers_count>10</followers_count> <friends_count>9</friends_count> <statuses_count>76</statuses_count> <favourites_count>0</favourites_count> <created_at>Tue Jun 08 00:00:00 +0800 2010</created_at> <following>false</following> <verified>false</verified> <allow_all_act_msg>true</allow_all_act_msg> <geo_enabled>true</geo_enabled> </user> </retweeted_status> </status> ... <statuses>
JSON示例
[ { "created_at": "Tue Nov 02 14:42:32 +0800 2010", "favorited": false, "geo": null, "id": 3397147109, "in_reply_to_screen_name": "", "in_reply_to_status_id": "", "in_reply_to_user_id": "", "retweeted_status": { "created_at": "Tue Nov 02 11:17:59 +0800 2010", "favorited": false, "geo": null, "id": 3393817355, "in_reply_to_screen_name": "", "in_reply_to_status_id": "", "in_reply_to_user_id": "", "source": "<a href=\"http://news.sina.com.cn/wap/wbk.html\" rel=\"nofollow\">\u65b0\u6d6a\u5fae\u535a\u624b\u673a\u7248</a>", "text": "\u8ba1\u7b97\u673a\u8bed\u8a00\uff0c\u4ee4\u4eba\u5934\u75bc\u7684\u95ee\u9898#", "truncated": false, "user": { "allow_all_act_msg": true, "city": "1000", "created_at": "Tue Jun 08 00:00:00 +0800 2010", "description": "\u6d77\u5185\u5b58\u77e5\u5df1\uff0c\u5929\u6daf\u82e5\u6bd4\u90bb\uff01", "domain": "ruanpian", "favourites_count": 0, "followers_count": 10, "following": false, "friends_count": 9, "gender": "f", "geo_enabled": true, "id": 1752561793, "location": "\u6e56\u5317", "name": "RuanP", "profile_image_url": "http://tp2.sinaimg.cn/1752561793/50/1288011459", "province": "42", "screen_name": "RuanP", "statuses_count": 76, "url": "http://blog.sina.com.cn/pianruan", "verified": false } },... ]
其他
无
文档更新时间: 2012-09-24