跳转到: 导航, 搜索

friendships/show

获取两个用户之间的详细关注关系情况

URL

https://api.weibo.com/2/friendships/show.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录


关于登录授权,参见 如何登录授权

访问授权限制

访问级别:普通接口
频次限制:
关于频次限制,参见 接口访问权限说明

请求参数

  必选 类型及范围 说明
access_token true string 采用OAuth授权方式为必填参数,OAuth授权后获得。
source_id false int64 源用户的UID。
source_screen_name false string 源用户的微博昵称。
target_id false int64 目标用户的UID。
target_screen_name false string 目标用户的微博昵称。

注意事项

  • 参数source_id与source_screen_name二者必选其一,且只能选其一
  • 参数target_id与target_screen_name二者必选其一,且只能选其一

调用样例及调试工具

API测试工具

返回结果

JSON示例

{
    "target": {
        "id": 1418348195,
        "screen_name": "zaku",
        "followed_by": false,
        "following": false,
        "notifications_enabled": false
    },
    "source": {
        "id": 1734528095,
        "screen_name": "檀木幻想",
        "followed_by": false,
        "following": false,
        "notifications_enabled": false
    }
}

关于错误返回值与错误代码,参见 错误代码说明

返回字段说明

其他

相关问题


帮助中心 查看更多问题或提问


Language: [[{{{2/uri}}}|中文]]




api评价