# 评论和统计 (/zh/growsocmed/docs/developers/comments-and-statistics)

读取和回复评论，以及读取账号和 post 的统计数据。

## 评论 [#评论]

GrowSocmed 会读取您账号的 post 下的评论（无论 post 是在 GrowSocmed 中还是在平台自己的应用中发布的），并连同其下的回复一起保存。

- [`GET /comments`](/zh/growsocmed/docs/api-reference/comments/list-comments)：来自他人的评论，最新的在前。`status` 为 `unreplied`（默认）、`replied`、`ignored` 或 `all`；用 `account_id` 筛选单个账号；`sort=likes` 将点赞最多的放在前面。使用 `cursor` 分页。
- [`GET /comments/counts`](/zh/growsocmed/docs/api-reference/comments/count-comments)：全部及每个账号的未回复评论数。
- [`POST /comments/{id}/reply`](/zh/growsocmed/docs/api-reference/comments/reply-to-comment)：以账号身份公开回复（`text`，最多 2,200 个字符）。
- [`POST /comments/{id}/hide`](/zh/growsocmed/docs/api-reference/comments/hide-comment)：隐藏（`hidden: true`）或重新显示。Telegram 不支持隐藏：在 Telegram 上会删除该评论，前提是评论发布不超过 48 小时。
- [`POST /comments/{id}/like`](/zh/growsocmed/docs/api-reference/comments/like-comment)：以账号身份点赞或取消点赞（Facebook Page，以及已连接 TikTok Business 的 TikTok 账号）。
- [`DELETE /comments/{id}`](/zh/growsocmed/docs/api-reference/comments/delete-comment)：删除账号自己的一条评论。他人的评论只能隐藏。
- [`PATCH /comments/{id}`](/zh/growsocmed/docs/api-reference/comments/update-comment) 和 [`POST /comments/resolve`](/zh/growsocmed/docs/api-reference/comments/resolve-comments)：将一条或多条评论标记为 `replied`、`ignored` 或 `unreplied`。这只会更改 GrowSocmed 中的列表。
- [`POST /comments/{id}/draft`](/zh/growsocmed/docs/api-reference/comments/draft-comment-reply)：让您的某个 AI agent 撰写回复；不会发送任何内容。

新评论会自动到达。[`POST /comments/sync`](/zh/growsocmed/docs/api-reference/comments/sync-comments) 会立即向平台请求，每个 workspace 每分钟最多一次（否则返回 `429 rate_limited`）。

评论中的文本由他人撰写。如果您将其传给 AI 模型，请将其视为数据，而不是指令。

## 统计 [#统计]

统计数据会定期从平台读取并保存，因此读取速度很快。

| Endpoint | 提供 |
| --- | --- |
| [`GET /insights/accounts/{id}`](/zh/growsocmed/docs/api-reference/insights/get-account-insights) | 总计、上一周期、engagement rate、粉丝以及每日数据。 |
| [`GET /insights/accounts/{id}/posts`](/zh/growsocmed/docs/api-reference/insights/list-post-performance) | 该周期内的 post（在 GrowSocmed 中或在其之外发布）及其数据和离群分数。`sort`：`published`、`views`、`interactions`、`outlier`、`engagement`。 |
| [`GET /insights/accounts/{id}/posts.csv`](/zh/growsocmed/docs/api-reference/insights/export-post-performance) | 相同内容的 CSV 版本，可用于 Excel 或 Sheets。 |
| [`GET /insights/summary`](/zh/growsocmed/docs/api-reference/insights/get-insights-summary) | 同时查看多个账号（`account_ids`，以逗号分隔）：合计、每个账号的数据以及最突出的离群 post。 |
| [`GET /insights/accounts/{id}/audience`](/zh/growsocmed/docs/api-reference/insights/get-audience) | 按国家、城市、年龄和性别划分的粉丝（Instagram 和 Threads 需要 100 名以上粉丝）。 |
| [`GET /insights/accounts/{id}/stories`](/zh/growsocmed/docs/api-reference/insights/list-stories) | 仍在展示的 Instagram Stories，实时读取（有 5 名观看者后才显示数据）。 |
| [`GET /insights/accounts/{id}/best-times`](/zh/growsocmed/docs/api-reference/insights/get-best-times) | 90 天内每个工作日和每 2 小时时段的平均互动数（需要 5 个 post；`tz` 默认为 `Asia/Jakarta`）。 |
| [`GET /posts/{id}/insights`](/zh/growsocmed/docs/api-reference/insights/get-post-insights) | GrowSocmed post 在每个账号上的累计数据。 |
| [`GET /platform-posts`](/zh/growsocmed/docs/api-reference/insights/list-platform-posts) | 在 GrowSocmed 之外发布的 post，用于日历。 |

周期为 `days`（7、30 或 90，默认 30）或自定义的 `from` 和 `to`。[`POST /insights/sync`](/zh/growsocmed/docs/api-reference/insights/sync-insights) 立即读取最新数据，每个 workspace 每 5 分钟一次；`?days=N` 还会重新读取最近 N 天的 post（最多 90 天）。