Baidu Tieba List User Followed Forums

28.01积分/次
ae_baidu_tieba_list_user_followed_forums

读取指定百度贴吧用户公开可读取的关注贴吧列表,不查询关注的用户或用户发帖。必填 request_body,其中 user_id 与 profile_url 必须二选一:user_id 为 1–19 位、首位非零的数字字符串,不是主页链接中的 portrait 或 tieba_uid;profile_url 为完整用户主页链接,如 https://tieba.baidu.com/home/main?id=…,不能用昵称、裸数字 ID 或帖子链接代替。可从搜索、帖子详情或评论作者信息取得相应标识。可选 page_token 首次留空,续页原样传入本接口返回的 next_page_token,并保持同一用户入口和标识;不要混用其他接口或用户的令牌。仅以 next_page_token 为空判断本次可读取列表结束,不按当前条数判断。成功返回按贴吧原顺序排列的 items,每项包含 forum_id、forum_name、forum_url、avatar_url 和 user_level,并返回 next_page_token。user_level 是该用户在吧内的等级,不是贴吧等级或热度;头像链接可能过期。无法取得列表时返回错误,不等同于未关注任何贴吧。错误含 code、message,HTTP 200 也可能是业务错误。

社交
28.01积分/次

价格说明

28.01积分/次
条件费用
每次调用28.01积分/次

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
request_bodyobject是查询参数:user_id 与 profile_url 二选一,可提供分页令牌。—
request_body.user_idstring | null否百度贴吧数字用户 ID,可取搜索、帖子详情或评论作者的 user_id;不是主页链接中的 portrait 或 tieba_uid。与 profile_url 二选一。null
request_body.page_tokenstring否分页令牌;首次留空,续页原样传入本接口的 next_page_token,保持同一用户入口和标识。不要使用发帖列表、搜索、评论或其他用户的令牌。""
request_body.profile_urlstring | null否百度贴吧用户主页完整链接,形如 https://tieba.baidu.com/home/main?id=…;可取搜索、详情或评论作者的 profile_url,不接受数字用户 ID、昵称或帖子链接。与 user_id 二选一。null

调用示例

参数模板

根据参数配置生成,使用前请替换示例值。

POST/agent-api/v1/tool/executeX-Api-Key
请求代码request.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_baidu_tieba_list_user_followed_forums' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {}
  }
}'

暂无返回示例。