旧版首页
新浪微博API文档
目录 |
开发者资源
- 新浪开放平台提供者协议
- FAQ 常见问题解答(FAQ), AppKey使用方法说明
- 微博SDK开发包下载 (Adobe Air/PHP/Python/Java...)
- OAuth开发指南
- PHP OAuth开发指南
- 如何在网页嵌入代码实现“分享到微博”功能
微博REST API
获取下行数据集(timeline)接口
- statuses/public_timeline 最新公共微博
- statuses/friends_timeline 最新关注人微博 (别名: statuses/home_timeline)
- statuses/user_timeline 用户发表微博列表
- statuses/mentions 最新 @用户的
- statuses/comments_timeline 最新评论(按时间)
- statuses/comments_by_me 发出的评论
- statuses/comments 单条评论列表(按微博)
- statuses/counts 批量获取一组微博的评论数及转发数
- statuses/unread 获取Web未读消息数(beta)
微博访问接口
- statuses/show 获取单条
- user/status/id 跳转到微博
- statuses/update 发表微博
- statuses/upload 发表微博及图片
- statuses/destroy 删除
- statuses/repost 转发
- statuses/comment 评论
- statuses/comment_destroy 删除评论
- statuses/reply 回复评论
用户接口
- users/show 个人资料
- statuses/friends 关注人列表
- statuses/followers 粉丝列表
私信接口
- direct_messages 我的私信列表
- direct_messages/sent 我发送的私信列表
- direct_messages/new 发送私信
- direct_messages/destroy 删除一条私信
关注接口
- friendships/create 关注某用户
- friendships/destroy 取消关注
- friendships/exists 是否关注某用户(推荐使用friendships/show)
- friendships/show 是否关注某用户
Social Graph接口
- friends/ids 关注列表
- followers/ids 粉丝列表
账号接口
- account/verify_credentials 验证身份是否合法
- account/rate_limit_status 查看当前频率限制
- account/end_session 退出
- account/update_profile_image 更改头像
- account/update_profile 更改资料
- account/register 注册新浪微博帐号
收藏接口
- favorites 收藏列表
- favorites/create 添加收藏
- favorites/destroy 删除收藏
登录/OAuth接口
重要字段说明
微博Search API
Search API仅对新浪合作开发者开放,申请请联系 @微博开放平台
用户搜索
- users/search 搜索微博用户 (仅对新浪合作开发者开放)
微博搜索
- search 搜索微博文章 (仅对新浪合作开发者开放)
- statuses/search 搜索微博(多条件组合) (仅对合作开发者开放)
地理位置
- location 地理位置SDK (即将推出)