微博开放平台
微连接
移动应用
网站接入
电商服务商
电商商家
数据服务
数据服务
合作伙伴
微博支付
轻应用
粉丝服务
文档
推广
我的应用
登录
weibo
开发文档
首页
平台政策与指引
概述
平台公约
新手指南
开发者协议
应用运营管理规范
微连接分级管理办法
应用审核产品指南
应用安全开发注意事项
平台应用设计规范
微服务接入指南
微博登录接入
用微博帐号登录
授权机制
移动应用接入
移动应用介绍
移动应用SSO授权
微博Deep Link
媒体接入平台
头条文章开放接口
视频上传开放接口
电商接入平台
电商服务商接入
电商商家端接入
电商平台能力接口
粉丝服务平台
粉丝服务平台
新手接入指南
微信开发者迁移指南
接收消息
发送消息
自定义菜单
用户管理
生成带参数的二维码
Fans Service Platform
商业接口
商业数据接入指南
订阅服务手册(中文版)
订阅服务手册(英文版)
商业接口-REST API
商业数据常见问题
网站接入
网站接入介绍
微博API
微博API
接口访问频次权限
资源下载
SDK
微博标识下载
常见问题
联系我们
工具箱
链入页面
链出更改
特殊页面
查看源代码
跳转到:
导航
,
搜索
根据下列原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
{{api_desc2| uri=statuses/search| desc=返回与指定的一个或多个条件相匹配的微博。| format=XML/JSON| httpMethod=GET| needAuth=false| rateLimit=true| params={{api_args|q|false|string|搜索的关键字。必须进行[http://en.wikipedia.org/wiki/URL_encoding|URL Encode]}} {{api_args|filter_ori|false|int|过滤器,是否为原创,0为全部,5为原创,4为转发。默认为0。}} {{api_args|filter_pic|false|int|过滤器。是否包含图片。0为全部,1为包含,2为不包含。}} {{api_args|fuid|false|int64|微博作者的用户ID。}} {{api_args|province|false|int|省份ID,参考[[省份城市编码表]]}} {{api_args|city|false|int|城市ID,参考[[省份城市编码表]]}} {{api_args|starttime|false|number|开始时间,Unix时间戳}} {{api_args|endtime|false|number|结束时间,Unix时间戳}} {{api_args|page|false|int|页码}} {{api_args|count|false|int|每页返回的微博数。(默认返回10条,最大200条。)}} {{api_args|needcount|false|boolean|返回结果中是否包含返回记录数。true则返回搜索结果记录数。}} {{api_args|base_app|false|int|是否按照当前应用信息对搜索结果进行过滤。当值为1时,仅返回通过该应用发送的微博消息。}} {{api_args|callback|false|string|仅JSON方式支持,用于JSONP跨域数据访问。}}| getParam=&q=王若琳&callback=foo| postParam=| result= ===XML示例=== <pre> <?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> </pre> ===JSON示例(无callback参数)=== <pre> [ { "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>" }, ... ] </pre> ===JSON示例(callback=foo)=== <pre> 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>" }, ... ] ) </pre>| useAge=无| otherInfo=无 }}{{#a:showgrade}}
该页面使用的模板:
模板:Api args
(
查看源代码
)
模板:Api desc2
(
查看源代码
)
返回到
Statuses/search
。
反馈
分享
顶部