You need to enable JavaScript to run this app.
导航

获取“已关注作者”列表

最近更新时间2023.01.03 18:14:43

首次发布时间2021.04.09 18:31:35

调用该接口,拉取用户关注的所有作者列表。

请求结构说明
请求域名stream-api.feedcoopapi.com【建议
mercury.snssdk.com【废弃
请求地址/user/following/list/
请求协议HTTP/HTTPS
请求方式GET
参数类型application/x-www-form-urlencoded

请求参数

参数描述类型是否必填说明
count指定返回的条数int用于指定返回多少条数据,最多支持20条;

cursor

索引

int

首次传0,翻页(load_more)的时候传上一次火山引擎返回的cursor;
默认为0。

biz_log保留字段String目前为保留字段,待后续业务拓展

响应参数

参数
描述
类型
说明
ret
错误码
long
req_id
本次请求标识
String
惟一标识本次请求,火山引擎侧使用该字段进行具体问题追踪和排查
msg
本次请求是否成功
String
success:成功
cursor
索引
int
当has_more为true时,cursor需要作为翻页请求的参数
has_more
是否加载更多
boolean
true:是,加载更多;
false:否,已全部加载完毕,没有更多
total
已关注作者总数
int
表示用户总共关注了多少个作者
data
已关注作者列表
List

请求示例

curl --location --request GET 'https://stream-api.feedcoopapi.com/user/following/list/?access_token=xxx&timestamp=1662690328&signature=xxx&nonce=123&partner=xxx&count=20'

响应示例

成功

{
    "msg": "success",
    "ret": 0,
    "req_id": "2022082521444401021008607703CE0D52",
    "data": [
        {
            "info": {
                "avatar_url": "xxx",
                "description": "xxx",
                "user_verified": true,
                "verified_content": "xxx",
                "home_page": "xxx",
                "name": "xxx",
                "user_id": xxx,
                ...
            },
            "relation": {
                "is_following": 1,
                "followings_count": 0,
                "followers_count": 111197,
                "follow_time": 1661425692,
                "update_article_time": 0
            }
        },
        ...
    ],
    "total": 6,
    "cursor": 20
}