# NodeSeek 评论 API (nodeseek.comments)

- Canonical page: [https://everyinfra.com/nodeseek-api/comments](https://everyinfra.com/nodeseek-api/comments?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "nodeseek", "action": "comments", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 10 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | NodeSeek 帖子链接，如 https://www.nodeseek.com/post-1098962-1，也可以只给帖子编号 1098962；认不出的写法在扣费前被拒。 |
| page_token | not declared | no | not declared | 翻页令牌：把上一次响应里的 next_page_token 原样传回，拿下一页，其他参数和第一页一样；不传从第一页开始。每页算一次调用；没有 next_page_token 就是最后一页。按楼层顺序，每页最多 10 条。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 编号：帖子编号（latest_posts、category_posts、post_detail），或回帖的楼层编号（comments），一串数字。 |
| post_id | 回帖所在帖子的编号（comments）。 |
| post_url | 回帖所在帖子的链接（comments）。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| author_username | 作者用户名（@handle），通常可用于拼 URL。 |
| author_id | 作者的数字编号（post_detail、comments）。 |
| author_avatar_url | 作者头像图片链接（多数平台带签名、会过期）。 |
| floor_number | 回帖的楼层号（comments），从 1 开始；首帖是 0 楼，不在回帖里。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| rank | 这一行在这一次结果里的位置，从 1 开始（latest_posts、category_posts、comments）。 |
| post_page_count | 这个帖子的回帖一共几页（comments），每页最多 10 楼。 |
| collected_at | 这条数据的抓取时刻（ISO 8601，UTC）。 |
| 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": "nodeseek",
  "action": "comments",
  "params": {
    "url": "https://www.nodeseek.com/post-1098962-1"
  }
}'
```

```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": "nodeseek",
        "action": "comments",
        "params": {
            "url": "https://www.nodeseek.com/post-1098962-1",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "nodeseek",
  "action": "comments",
  "results": [
    {
      "id": …,
      "post_id": …,
      "post_url": …,
      "text": …,
      "posted_at": …,
      "author_username": …,
      "author_id": …,
      "author_avatar_url": …,
      "floor_number": …,
      "like_count": …,
      "rank": …,
      "post_page_count": …,
      "collected_at": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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