# Gab 回复列表 API (gab.replies)

- Canonical page: [https://everyinfra.com/gab-api/replies](https://everyinfra.com/gab-api/replies?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "gab", "action": "replies", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 100 per call
- Mode: sync; add "mode": "async" for slow tasks

回复列表按 `url` 读取一条 Gab 帖子相关的回复，每条带正文、作者用户名和名称、`like_count`、`repost_count`、`reply_count`、`media_urls` 和发布时间，默认 20 条、单次最多 100 条。它回答「这条帖子底下的人在说什么」，适合看一条帖子引来了哪些回应，或者按点赞挑出代表性的回复。

回复和帖子用同一套字段，每条回复也带自己的 `reply_count`，能看出哪条回复又引出了下一层讨论。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=gab&action=replies

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Gab 帖子完整链接，建议 https://gab.com/<username>/posts/<ID>；post 查单帖，replies 查该帖相关回复上下文。不是用户主页，也不能保证获得完整的全部讨论历史。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| author_username | 作者用户名（@handle），通常可用于拼 URL。 |
| author_name | 作者昵称（显示名）。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| repost_count | 转发数（区别于引用转发）。null 表示不公开。 |
| reply_count | 回复数，通常用于评论的子回复。null 表示不公开。 |
| media_urls | 媒体文件链接。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "gab",
  "action": "replies",
  "params": {
    "url": "https://gab.com/a/posts/116982017666460565"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "gab",
        "action": "replies",
        "params": {
            "url": "https://gab.com/a/posts/116982017666460565",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 12. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "gab",
  "action": "replies",
  "results": [
    {
      "id": "•••",
      "url": "https://gab.com/AnotherStag/posts/116982063010716538",
      "text": "@a\nSo tell me, Torba, Just WHY would we want to share OUR docs without compensation, to train your robot?\nYou already censor non-paying users of your site through the daily limit of posts. Yet you also expect us to gift you with OUR PRIVATE DOCS to train your LLM? Really?",
      "author_username": "•••",
      "author_name": "•••",
      "like_count": 3,
      "repost_count": 0,
      "reply_count": 0,
      "media_urls": [
        "https://m3.gab.com/media_attachments/e6/a3/9c/e6a39ca5e5da06319638c50c2cb5fc55.gif"
      ],
      "posted_at": "2026-07-25T18:37:03.594000+00:00",
      "platform": "gab"
    },
    {
      "id": "•••",
      "url": "https://gab.com/msnthrpcprncpl/posts/116982063564168793",
      "text": "@a\nNobody cares about AI. How about a git repo where I can publish code with a +NIGGER license?",
      "author_username": "•••",
      "author_name": "•••",
      "like_count": 1,
      "repost_count": 0,
      "reply_count": 0,
      "posted_at": "2026-07-25T18:37:12.027000+00:00",
      "platform": "gab"
    }
  ],
  "count": 12,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 返回的回复条数等于这条帖子的回复总数吗？

不等于。这一页给的是该帖相关的回复上下文，不保证是完整的全部讨论历史，单次也最多 100 条。要估计回复规模，参考单条内容那一页里的 `reply_count`，但它为 null 时表示不公开。

### `url` 填谁的链接？

填被回复的那条帖子的链接，也就是你想看回复的那条，不是账号主页，也不是某个回复自己的链接。写法建议 https://gab.com/<username>/posts/<ID>，和单条内容那一页用同样的链接。

### 怎么挑出值得看的回复？

先按 `like_count` 从高到低排，看大家最认同的回应；再看 `repost_count`，它不含引用转发，反映被转发的程度。想看回复者发了什么别的内容，把他的 `author_username` 交给用户内容那一页。

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=gab
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
