Statuses/search/en
目录 |
statuses/search
Return weibos by multi-conditions
URL
http://api.t.sina.com.cn/statuses/search.(json%7Cxml)
Supported Formats
XML/JSON
HTTP Request Method
GET
Requires Authentication
false
See the Authorization Mechanism Statement for authorization details
Requests Count Limitation
true
See the Interface Access Rights Statement for the Request Count Limitaiton details.
Request Parameters
Requires | Type and Range | Description | |
---|---|---|---|
source | true | string | AppKey for the application to identify it. ( This parameter is not needed when using OAuth) |
q | false | string | Keyword. Encoded by URL Encode |
filter_ori | false | int | Whether filter weibo post type. 0 is all, 5 is original, 4 is repost. default is 0. |
filter_pic | false | int | Whethe with picture. 0 is all, 1 is weibo with picture, 2 is weibo without picture |
fuid | false | int64 | User ID |
province | false | int | Provice ID,see Province and city code table |
city | false | int | City ID, see Province and city code table |
starttime | false | number | Begin time, Unix timestamp format |
endtime | false | number | End time, Unix timestamp format |
page | false | int | Page |
count | false | int | Weibo count per page (default is 10, max is 200) |
needcount | false | boolean | Whether return the record count.true means return. |
base_app | false | int | Whether only return weibo posted by current application. 1 is yes, 0 is no |
callback | false | string | Only support JSON. For JSONP cross site data access. |
Notes
None
Example Request
- XML
- curl -u "username:password" "http://api.t.sina.com.cn/statuses/search.xml?source=appkey&q=王若琳&callback=foo"
- JSON
- curl -u "username:password" "http://api.t.sina.com.cn/statuses/search.json?source=appkey&q=王若琳&callback=foo"
Response
XML Example
<?xml version="1.0" encoding="UTF-8"?> <searchResult> <statuses> <status> <created_at>Mon Dec 13 10:07:46 +0800 2010</created_at> <id>4281864911</id> <text>鼓楼一家店播放着小野丽莎的歌,我误认为是王若琳,重温下若琳的“有你的快乐”。</text> <source> <a href="http://t.sina.com.cn">新浪微博</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>1547460074</id> <screen_name>谢炳碧浙温</screen_name> <name>谢炳碧浙温</name> <province>33</province> <city>3</city> <location>浙江 温州</location> <description>团结一切可以团结的力量。</description> <url>http://1</url> <profile_image_url>http://tp3.sinaimg.cn/1547460074/50/1289882541/1</profile_image_url> <domain/> <gender>m</gender> <followers_count>27</followers_count> <friends_count>60</friends_count> <statuses_count>37</statuses_count> <favourites_count>0</favourites_count> <created_at>Tue Nov 16 00:00:00 +0800 2010</created_at> <following>false</following> <verified>false</verified> <allow_all_act_msg>false</allow_all_act_msg> <geo_enabled>true</geo_enabled> </user> <annotations/> </status> ... </statuses> </searchResult>
JSON Example (without callback)
[ { "created_at" : "Mon Dec 13 10:07:46 +0800 2010", "text" : "鼓楼一家店播放着小野丽莎的歌,我误认为是王若琳,重温下若琳的“有你的快乐”。", "truncated" : false, "in_reply_to_status_id" : "", "annotations" : [ ], "in_reply_to_screen_name" : "", "geo" : null, "user" : { "name" : "谢炳碧浙温", "domain" : "", "geo_enabled" : true, "followers_count" : 27, "statuses_count" : 37, "favourites_count" : 0, "city" : "3", "description" : "团结一切可以团结的力量。", "verified" : false, "id" : 1547460074, "gender" : "m", "friends_count" : 60, "screen_name" : "谢炳碧浙温", "allow_all_act_msg" : false, "following" : false, "url" : "http://1", "profile_image_url" : "http://tp3.sinaimg.cn/1547460074/50/1289882541/1", "created_at" : "Tue Nov 16 00:00:00 +0800 2010", "province" : "33", "location" : "浙江 温州" }, "favorited" : false, "in_reply_to_user_id" : "", "id" : 4281864911, "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>" }, ... ]
JSON Example (callback=foo)
foo( [ { "created_at" : "Mon Dec 13 10:07:46 +0800 2010", "text" : "鼓楼一家店播放着小野丽莎的歌,我误认为是王若琳,重温下若琳的“有你的快乐”。", "truncated" : false, "in_reply_to_status_id" : "", "annotations" : [ ], "in_reply_to_screen_name" : "", "geo" : null, "user" : { "name" : "谢炳碧浙温", "domain" : "", "geo_enabled" : true, "followers_count" : 27, "statuses_count" : 37, "favourites_count" : 0, "city" : "3", "description" : "团结一切可以团结的力量。", "verified" : false, "id" : 1547460074, "gender" : "m", "friends_count" : 60, "screen_name" : "谢炳碧浙温", "allow_all_act_msg" : false, "following" : false, "url" : "http://1", "profile_image_url" : "http://tp3.sinaimg.cn/1547460074/50/1289882541/1", "created_at" : "Tue Nov 16 00:00:00 +0800 2010", "province" : "33", "location" : "浙江 温州" }, "favorited" : false, "in_reply_to_user_id" : "", "id" : 4281864911, "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>" }, ... ] )
Others
None