# 网易云音乐 评论 API (netease_music.comments)

- Canonical page: [https://everyinfra.com/netease-music-api/comments](https://everyinfra.com/netease-music-api/comments?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "netease_music", "action": "comments", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 50, max 1000 per call (larger values are capped)
- 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=netease_music&action=comments

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| song_id | not declared | yes | not declared | comments 的歌曲数字 ID，也可传含 song?id= 或 /song/ID 的歌曲链接；歌单 ID 不能代替歌曲 ID。 |
| sort | not declared | no | not declared | 歌曲评论排序：hot 按热度（默认），recommend 按推荐，time 按时间；latest / new 是时间排序的兼容写法。不识别 newest，未知值按 hot 处理；热门置顶评论仍可能出现在结果中。 |
| limit | integer (1–1000) | no | 50 | 这次调用最多返回的条数，整数，1–1000；不传按默认值，实际返回可能少于这个数。超过上限照收，按上限返回。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| song_id | 歌曲 ID。 |
| song_name | 歌曲名。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| reply_count | 回复数，通常用于评论的子回复。null 表示不公开。 |
| is_hot | 是否为热门内容。 |
| is_reply | 该评论是否为回复。 |
| parent_comment_id | 被回复的评论 ID，用于重建楼中楼。 |
| author_name | 作者昵称（显示名）。 |
| author_avatar_url | 评论作者头像。 |
| 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": "netease_music",
  "action": "comments",
  "params": {
    "song_id": "186016"
  }
}'
```

```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": "netease_music",
        "action": "comments",
        "params": {
            "song_id": "186016",
        },
    },
    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 50. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "netease_music",
  "action": "comments",
  "results": [
    {
      "id": "4956438",
      "song_id": "186016",
      "song_name": "晴天（Sunny Day）",
      "url": "https://music.163.com/song?id=186016",
      "text": "高一听的，那时候遇到了孩儿他妈，然后就这么幸福下来了",
      "like_count": 823154,
      "reply_count": 14,
      "is_hot": true,
      "is_reply": false,
      "author_name": "•••",
      "author_avatar_url": "http://p1.music.126.net/•••",
      "posted_at": "2014-10-17T07:22:54.252000+00:00",
      "platform": "netease_music"
    },
    {
      "id": "5453734",
      "song_id": "186016",
      "song_name": "晴天（Sunny Day）",
      "url": "https://music.163.com/song?id=186016",
      "text": "老子要听一辈子周杰伦！！！",
      "like_count": 400002,
      "reply_count": 2,
      "is_hot": true,
      "is_reply": false,
      "author_name": "•••",
      "author_avatar_url": "http://p1.music.126.net/•••",
      "posted_at": "2014-11-04T09:19:19.779000+00:00",
      "platform": "netease_music"
    }
  ],
  "count": 50,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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