# 社媒评论 API

[规范网址](https://social2api.com/roles/posts-comments-list/)

给定一条公开作品的 ID 或接口支持的链接，用 Social2api 扩展 API 在 14 个平台或内容渠道读取评论或帖子回复。每次请求读取一页，上游报价为 $0.002–$0.020/次，由你的 DataXAPI 账户结算。

DataXAPI 价目生效日期与版本 [2026-11-25 · v22](https://social2api.com/pricing-catalog.json)

## Agent 提示词

~~~~text
用 Social2api 读取我指定的公开作品的评论或帖子回复。先确认平台、作品 ID 或链接、最多页数及输出字段。
按本页选端点，使用有扩展数据 API 权限的 Social2api Key 和我自己的 DataXAPI Key。凭据只从环境变量读取。
开始实时调用前按端点报价计算预算。保持当前作品标识和排序，使用下一页游标，到达预算或末页停止。
交付一条评论或回复一行的结果，保留原始 ID、正文、可用的发布时间，并汇报请求页数、缺失字段和警告。
https://social2api.com/roles/posts-comments-list/
~~~~

[创建扩展 API Key](https://social2api.com/#settings/api-keys/create)

- **接口覆盖** 14 个入口。 按平台和内容类型选择接口。
- **请求粒度** 一条作品、一页结果。 用返回的游标请求下一页。
- **请求认证** 两把 API Key。 Social2api 扩展权限 + 自带 DataXAPI Key。

## 各平台的评论与回复接口

对照手里已有的作品标识选接口。通常条数和单页上限来自接口目录，实际返回量随作品和上游覆盖变化。点接口名可查看参数和响应示例。

| 平台与端点 | 输入 | 每页通常 / 最多 | 返回对象 | 上游报价 / 次 |
| --- | --- | --- | --- | --- |
| [哔哩哔哩 视频评论列表](https://social2api.com/docs/api/catalog-bilibili-videos-comments-list/) · GET /v1/bilibili/videos/comments/list | id | 20 / 20 | Comment | $0.002 |
| [抖音 视频评论列表](https://social2api.com/docs/api/catalog-douyin-videos-comments-list/) · GET /v1/douyin/videos/comments/list | id 或 url | 20 / 20 | Comment | $0.002 |
| [Facebook 帖子评论列表](https://social2api.com/docs/api/catalog-facebook-posts-comments-list/) · GET /v1/facebook/posts/comments/list | id | 10 / 10 | Comment | $0.002 |
| [Instagram 帖子评论列表](https://social2api.com/docs/api/catalog-instagram-posts-comments-list/) · GET /v1/instagram/posts/comments/list | id 或 url | 15 / 15 | Comment | $0.002 |
| [快手 视频评论列表](https://social2api.com/docs/api/catalog-kuaishou-videos-comments-list/) · GET /v1/kuaishou/videos/comments/list | id 或 url | 40 / 40 | Comment | $0.002 |
| [Reddit 帖子评论列表](https://social2api.com/docs/api/catalog-reddit-posts-comments-list/) · GET /v1/reddit/posts/comments/list | id 或 url | 8 / 200 | Comment | $0.002 |
| [TikTok 视频评论列表](https://social2api.com/docs/api/catalog-tiktok-videos-comments-list/) · GET /v1/tiktok/videos/comments/list | id 或 url | 50 / 50 | Comment | $0.002 |
| [微信视频号 视频评论列表](https://social2api.com/docs/api/catalog-wechat-channels-videos-comments-list/) · GET /v1/wechat\_channels/videos/comments/list | id | 24 / 30 | Comment | $0.020 |
| [微信公众号 文章评论列表](https://social2api.com/docs/api/catalog-wechat-mp-articles-comments-list/) · GET /v1/wechat\_mp/articles/comments/list | url | 20 / 100 | Comment | $0.020 |
| [微博 帖子评论列表](https://social2api.com/docs/api/catalog-weibo-posts-comments-list/) · GET /v1/weibo/posts/comments/list | id 或 url | 20 / 20 | Comment | $0.002 |
| [X 帖子回复列表](https://social2api.com/docs/api/catalog-x-posts-replies-list/) · GET /v1/x/posts/replies/list | id | 35 / 60 | Post | $0.002 |
| [小红书 笔记评论列表](https://social2api.com/docs/api/catalog-xiaohongshu-notes-comments-list/) · GET /v1/xiaohongshu/notes/comments/list | id 或 url | 10 / 20 | Comment | $0.020 |
| [YouTube 视频评论列表](https://social2api.com/docs/api/catalog-youtube-videos-comments-list/) · GET /v1/youtube/videos/comments/list | id 或 url | 20 / 20 | Comment | $0.002 |
| [知乎 回答评论列表](https://social2api.com/docs/api/catalog-zhihu-answers-comments-list/) · GET /v1/zhihu/answers/comments/list | id | 10 / 20 | Comment | $0.002 |

## 返回字段与缺失值

从 data.items 读取本页记录。字段是否有值取决于接口和平台。遇到空值或部分结果时，一起检查 warnings、meta.result\_status 和返回的 meta.unavailable。

X 帖子回复使用 Post 对象，也从 data.items 读取。跨平台整理时，先按对应端点文档映射字段，再合并。

| Comment 字段 | 用途 |
| --- | --- |
| id、post\_id | 用评论 ID 去重，用作品 ID 关联原作品。 |
| text、published\_at | 读取评论正文和可用的发布时间。 |
| author.id、author.username、author.name | 保留可用的公开评论者标识。 |
| metrics.likes、metrics.comments | 读取评论获赞数和回复数。 |
| parent\_id、root\_id | 在平台提供关联时，定位直接回复对象和讨论串根评论。 |

## 抖音、视频号、小红书与 X 的字段对照

下表逐列核对了 DataXAPI 的脱敏录制样例与返回契约。样本中有值的字段在新请求里也可能缺失。备用通道使用自己的覆盖范围。

跨平台统一归档时保留 source\_post\_id 作为采集任务的原始输入，另存响应中的 post\_id。未取的互动字段与有返回的数值 0 分开保存。

| 录制样例与契约 | 对象 | 作品和评论字段 | 作者子字段 | 互动子字段 | 回复关系 |
| --- | --- | --- | --- | --- | --- |
| [抖音一级评论](https://dataxapi.com/zh/apis/douyin/videos/comments/list/) | Comment | id、post\_id、text、published\_at | id、username、name | likes、comments | 一级样本中 parent\_id 和 root\_id 为 null |
| [视频号作品评论](https://dataxapi.com/zh/apis/wechat_channels/videos/comments/list/) | Comment | id、post\_id、text、published\_at | id、name。无 username | likes。该端点无 comments | 一级样本中 parent\_id 和 root\_id 为 null |
| [小红书笔记评论](https://dataxapi.com/zh/apis/xiaohongshu/notes/comments/list/) | Comment | id、post\_id、text、published\_at | id、username、name | likes、comments。样例含明确的 0 | 一级样本中 parent\_id 和 root\_id 为 null |
| [X 帖子回复](https://dataxapi.com/zh/apis/x/posts/replies/list/) | Post | id、post\_id、url、text、published\_at | id、username、name、verified | likes、comments、reposts、views 等 | parent\_id 与 root\_id 未提供 |

## 用 cURL 读取一页抖音评论

在控制台创建 Social2api API Key 时勾选「扩展数据 API」。将这把密钥和你的 DataXAPI Key 分别放进 SOCIAL2API\_API\_KEY 和 DATAXAPI\_API\_KEY 环境变量。

把示例 id 换成你的公开抖音视频 ID。用公开链接时，改传 url，并省略 id。

~~~~bash
curl -fsS -G "https://social2api.com/v1/douyin/videos/comments/list" \
  --data-urlencode "id=7694940173372575014" \
  -H "Authorization: Bearer $SOCIAL2API_API_KEY" \
  -H "X-DataXAPI-Key: $DATAXAPI_API_KEY"
~~~~

## 响应示例

这是端点文档的结构示例。评论正文和编号是合成值。

~~~~json
{
  "code": "ok",
  "request_id": "3f022215-9708-4eef-9878-cc67b31f3d6b",
  "data": {
    "items": [
      {
        "id": "1234567890",
        "text": "A sample comment.",
        "published_at": "2026-11-15T12:00:00Z",
        "metrics": {
          "likes": 4
        },
        "post_id": "7694940173372575014"
      }
    ]
  },
  "page": {
    "next_cursor": null,
    "cursor_expires_at": null,
    "has_more": false,
    "returned": 1
  },
  "warnings": [],
  "meta": {
    "capability": "douyin.videos.comments.list",
    "result_status": "complete",
    "fetched_at": "2026-11-15T12:00:00Z"
  }
}
~~~~

## 把 X 回复的 Post 对象归入同一张表

下面是一条合成的 data.items\[\]。在导出里将它的 id 写入 reply\_id，保留 text、published\_at 和 url，把最初请求的 X 帖子编号保存成 source\_post\_id。

post\_id 保留上游给出的关联。由于这个端点不返回 parent\_id 或 root\_id，行内不推断直接回复层级。各字段的说明见上表的 X 契约。

~~~~json
{
  "id": "10002",
  "post_id": "10001",
  "url": "https://x.com/i/status/10002",
  "type": "text",
  "text": "演示回复正文",
  "published_at": "2026-11-05T09:15:00Z",
  "author": {
    "id": "10003",
    "username": "example_account",
    "name": "样例账号"
  },
  "metrics": {
    "likes": 1,
    "comments": 0,
    "reposts": 0,
    "views": 15
  }
}
~~~~

## 下一页怎么取，费用怎么算？

当 page.has\_more 为 true 且返回了 page.next\_cursor，保持原有作品标识和排序，将游标原样作为下一次请求的 cursor。在 page.cursor\_expires\_at 前使用；到末页或达到自己的预算即停止。

每页是独立请求。按上表报价，抖音连续读取 5 页且每页都计费，预计为 5 × $0.002 = $0.010。空页也可能计费，实际费用查看 DataXAPI 账单。

扩展请求消耗 0 个 Social2api 预付积分。实际发出的上游请求计入 Social2api 账户与密钥的每日调用限额。

## 常见问题

### 两把 API Key 各用来做什么？

Social2api Key 用于校验扩展 API 权限和用量。你的 DataXAPI Key 通过 X-DataXAPI-Key 提供，由对应 DataXAPI 账户承担上游费用。

### 有视频号账号，怎么把作品和评论一起导出？

打开视频号工作台，填入账号标识，可设置作品发布日期、作品数和每条作品的评论采样量。先运行免费合成示例核对 CSV，再选择实时模式读取公开数据。

### 怎么知道评论是否取齐？

按游标取到末页后，查看 warnings 和 meta.result\_status。接口返回的是当前上游可访问的记录，可能少于作品页面显示的评论总数。

### 怎么读取某条评论下面的回复？

在扩展目录按平台找评论回复列表，并按对应详情传评论 ID 与所需的作品 ID。各平台支持的回复入口和输入可以不同。

## 相关指南和问答

- [评论回复 API](https://social2api.com/roles/comments-replies-list/)。 已有一条一级评论时，读取它下方的回复并关联父评论。保留原作品、父评论和回复 ID，再保存正文与可用时间。继续分页需要端点返回有效游标。
- [内容详情 API](https://social2api.com/roles/posts-get/)。 按公开作品的原链接或平台 ID 查一条内容详情。返回一条内容记录，按平台读取正文、标题、发布时间和可用的作者或互动字段。
- [如何批量获取微信视频号历史作品和评论并导出 CSV](https://social2api.com/guides/wechat-channels-export-videos-comments/)。 按视频号账号和作品日期批量取公开作品及评论，直接下载 CSV。用免登录示例核对 2 条作品和 6 行评论，了解实时取数上限与积分。
- [品牌口碑与评论洞察](https://social2api.com/solutions/word-of-mouth/)。 用品牌词找到小红书公开提及，读取指定笔记、抖音视频或视频号作品的评论样本，供客服和用户研究复核。

## 接口文档

- [扩展 API 的认证和用量说明](https://social2api.com/docs/#extended-data)
- [完整扩展端点目录](https://social2api.com/docs/api/catalog-index/)
- [在工作台试跑视频号作品和评论](https://social2api.com/#workspace/channels)

## 参考来源

- [Social2api 接口目录 · 路径、平台和响应类型](https://social2api.com/openapi.json)
- [Social2api 扩展 API 报价 · 单页限制与计价](https://social2api.com/pricing-catalog.json)
- [DataXAPI 上游价格表 · 本站同步的版本 22](https://dataxapi.com/prices.json)

## 相关用户讨论

- [Reddit · 按指定抖音或微博作品重复采集评论的研究需求](https://www.reddit.com/r/AskAcademia/comments/1vr4ue0/)

[创建扩展 API Key](https://social2api.com/#settings/api-keys/create)
