Bilibili Fetch Dynamic Comments

2.07积分/次
ae_bilibili_fetch_dynamic_comments

### 用途: - 获取图文、文字动态的评论列表。 ### 参数: - dynamic_id、oid 必须且只能提供一个。 - dynamic_id: 动态链接中的ID,自动识别评论区及评论类型。 - oid: 评论区ID,可从动态详情的 data.data.item.basic.rid_str 获取(旧版为comment_id_str),不是动态ID。 - comment_type: 仅配合oid使用,11为图文(默认),17为文字;使用dynamic_id时不传。 - mode: 3为热门,2为时间。 - pagination_str: 首页留空;下一页传入 {"offset":"上一页的next_offset值"}。 ### 返回与翻页: - data.data.replies: 评论列表;data.data.top_replies: 置顶评论。 - data.data.cursor.pagination_reply.next_offset: 下一页offset,作为字符串原样使用。 - data.data.cursor.is_end 为true时停止翻页,不再发起下一页请求。 AE调用参数示例: {"mode":3,"dynamic_id":"1172584638000922630"}

社交搜索研究
2.07积分/次

价格说明

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

工具参数

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

参数类型必填说明默认值
oidstring | null否评论区ID,与dynamic_id二选一/Comment-section ID; provide either oid or dynamic_id—
modeinteger否排序:3热门,2时间/Sort: 3 hot, 2 time3
dynamic_idstring | null否动态ID,与oid二选一/Dynamic ID; provide either dynamic_id or oid—
comment_typeinteger | null否仅配合oid使用,默认11(图文)/Only with oid; defaults to 11 (image posts)—
pagination_strstring否翻页JSON,首页留空/Pagination JSON; leave empty for the first page""

调用示例

复制请求代码,查看对应的返回示例。

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_bilibili_fetch_dynamic_comments' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "dynamic_id": "1172584638000922630",
    "mode": 3
  }
}'
返回示例response.json
JSON部分内容
{
  "detail": {
    "code": 400,
    "docs": "https://api.tikhub.io/#/Bilibili-Web-API/fetch_dynamic_comments_api_v1_bilibili_web_fetch_dynamic_comments_get",
    "headers": {},
    "message": "Request failed. Please retry. Check the docs below to verify your parameters, test with the default demo parameters, and send the response JSON to support. You won't be charged for this request.",
    "message_zh": "请求失败,请重试。请查看下方文档核对参数,使用默认演示参数测试,并将响应 JSON 提交给支持团队。本次请求不会被扣费。",
    "params": {
      "dynamic_id": "1172584638000922630",
      "mode": "3",
      "pagination_str": ""
    }
  }
}

返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。