Skip to content
On this page

Followers You Know

  • Endpoint Path: /api/v2/user/{uidOrUsername}/followers-you-follow
  • Method: GET
  • Request: Rest + Query

Headers Optional Parameter

Parameter NamePublic Mode (Required)Private Mode (Required)
X-Fresns-Aidoptionalrequired
X-Fresns-Aid-Tokenoptionalrequired
X-Fresns-Uidoptionalrequired
X-Fresns-Uid-Tokenoptionalrequired

Rest Params

Parameter NameTypeRequiredDescription
uidOrUsernameStringrequiredUser uid or username

Query Params

Parameter NameTypeRequiredDescription
whitelistKeysStringoptional白名单键名,只返回给定键名的键值对
多个以英文逗号隔开,支持「点表示法」表示多维数组
blacklistKeysStringoptional黑名单键名,从返回数据中删除指定的键值对
多个以英文逗号隔开,支持「点表示法」表示多维数组
pageSizeNumberoptional每页显示条数(默认 15 条)
pageNumberoptional页码(默认 1)

Request Description

  • 接口会根据配置表设置 运营 > 互动配置 > 查看用户内容设置 > 用户的哪些内容可以被别人查看 决定是否输出数据。
    • 你认识的关注者
    • 配置 key it_followers_you_follow
  • 未登录也可以请求,将输出为空列表。

Return

json
{
    "code": 0,
    "message": "ok",
    "data": {
        "pagination": {
            "total": "Number / How much data in total",
            "pageSize": "Number / How much data on each page",
            "currentPage": "Number / Current page number",
            "lastPage": "Number / Last page number"
        },
        "list": [
            {
                // Common Data Structure -> User Info
            }
        ]
    }
}

Released under the Apache-2.0 License