Data & analysis

socialdatax-xhs-comments

Try it

用于小红书评论分析、小红书评论回复、用户反馈、口碑分析、痛点总结和内容讨论分析。覆盖 Xiaohongshu / XHS / RedNote comments,来自 SocialDataX 社媒数据助手。

What it does

用于小红书评论分析、小红书评论回复、用户反馈、口碑分析、痛点总结和内容讨论分析。覆盖 Xiaohongshu / XHS / RedNote comments,来自 SocialDataX 社媒数据助手。

The skill document

小红书评论分析 SocialDataX 评论回复

Use this skill when the user wants 小红书评论分析, Xiaohongshu / XHS / RedNote comments, comment replies, audience feedback, sentiment themes, objections, pain points, FAQ extraction, or discussion summaries.

Current platform support:

  • Xiaohongshu / XHS / RedNote notes through the xhs_get_note_comments_by_* and xhs_get_note_sub_comments_by_comment_id tools.

API Key

Use SOCIALDATAX_API_KEY for data calls. The only official website for requesting or managing API access is . If a user asks where to get a key, provide only this URL; do not infer alternate domains. 获取或管理 API Key:访问 ,按官网的 API Key 申请/管理入口操作。环境变量名固定使用 SOCIALDATAX_API_KEY;不要引导用户使用其他域名。

Preferred Direct CLI

Prefer the direct CLI when the agent can run shell commands. It does not require MCP server configuration:

npx -y socialdatax-skills@latest xhs comments \
  --note-id "" --pretty --source-client socialdatax-skills \
  --source-platform clawhub --source-skill socialdatax-xhs-comments

npx -y socialdatax-skills@latest xhs comments \
  --url "" --pretty --source-client socialdatax-skills \
  --source-platform clawhub --source-skill socialdatax-xhs-comments

npx -y socialdatax-skills@latest xhs sub-comments \
  --note-id "" --comment-id "" --pretty \
  --source-client socialdatax-skills --source-platform clawhub \
  --source-skill socialdatax-xhs-comments

Optional arguments:

  • XHS --note-id : use the complete 24-character lowercase hexadecimal note_id returned from search, detail, comments, or creator note lists; do not pass only a prefix.
  • XHS comments --sort-type : optional first-level comment sort order; omit it for the platform default order.
  • --url : use for a content page URL, short link, or share text for first-level comments.
  • --page-token : opaque pagination token; pass the complete returned next_page_token back unchanged for the same content item or comment chain. Do not modify, truncate, redact, mask, omit, normalize, rebuild, generate, or replace the middle with ellipses.
  • --pages : fetch and merge N pages of first-level comments or replies.
  • --all: continue first-level comments or replies until next_page_token is empty; there is no default item or page cap.
  • --max-items : stop after collecting N primary comments or replies.
  • --pretty: output formatting only.
  • --source-client socialdatax-skills --source-platform clawhub --source-skill socialdatax-xhs-comments: usage attribution for this Agent Skill; keep these values unchanged when running examples from this Skill.

Use either the platform content ID option or the URL option for first-level comments, not both. For reply commands, use the platform-specific reply identifiers shown in the CLI example.

The command prints JSON with platform, tool, arguments, and data. Multi-page output keeps merged primary comments in data.items and adds page_count, item_count, and the next-page marker. On platforms that support --include-replies, each first-level comment includes replies, replies_page_count, and replies_next_page_token.

Safety Boundary

This skill is read-only. It uses SOCIALDATAX_API_KEY from the user's environment at runtime. Generated Skill files do not contain API keys. It does not read local browser data or perform login, posting, liking, commenting, or account changes.

MCP Tools

MCP tools matching the direct CLI commands above:

  • xhs_get_note_comments_by_note_id
  • xhs_get_note_comments_by_note_url
  • xhs_get_note_sub_comments_by_comment_id

If MCP tools are already available in the current agent, use one of these tools:

  • xhs_get_note_comments_by_note_id: use when the complete 24-character lowercase hexadecimal note_id is known; do not pass only a prefix; optional sort_type accepts default, time_descending, or like_count_descending.
  • xhs_get_note_comments_by_note_url: use for note URLs, short links, or share text; optional sort_type accepts default, time_descending, or like_count_descending.
  • xhs_get_note_sub_comments_by_comment_id: use when the complete 24-character lowercase hexadecimal note_id and first-level comment ID are known; do not pass only a note ID prefix.

Comment pagination uses opaque page_token values. Pass the complete returned next_page_token back unchanged for the same note or comment chain. Do not modify, truncate, redact, mask, omit, normalize, rebuild, generate, or replace the middle with ellipses.

Output Guidance

Group comments by observed themes before inferring sentiment or demand. Mention whether the result is one page or multiple pages. Empty comments can be a valid successful result.

Troubleshooting

  • For non-balance network or API errors, preserve the error message, check SOCIALDATAX_API_KEY, parameters, and link or ID format, then retry once when appropriate.
  • If the response returns insufficient_balance or says the balance/credits are insufficient, do not retry repeatedly. Show the recharge URL from the error exactly as returned, then continue the same command after the user recharges.
  • If the user has recharged but still sees insufficient balance, confirm SOCIALDATAX_API_KEY belongs to the same account that was recharged; if needed, copy a fresh API Key from the official dashboard.

Related skills

用于小红书数据分析、小红书笔记详情、笔记数据、互动指标、内容调研和内容分析。覆盖 Xiaohongshu / XHS / RedNote note details,来自 SocialDataX 社媒数据助手。

27 installs

用于小红书数据助手、小红书搜索热榜、小红书数据分析、小红书笔记搜索、笔记详情、评论分析、博主数据和博主笔记。覆盖 Xiaohongshu / XHS / RedNote,来自 SocialDataX 社媒数据助手。

25 installs

用于小红书数据分析、小红书笔记搜索、关键词检索、内容调研、竞品分析和趋势研究。覆盖 Xiaohongshu / XHS / RedNote note search,来自 SocialDataX 社媒数据助手。

27 installs

用于小红书博主数据、小红书博主笔记、账号内容列表、近期发布、内容调研和创作者内容分析。覆盖 Xiaohongshu / XHS / RedNote creator notes,来自 SocialDataX 社媒数据助手。

28 installs

用于小红书博主数据、小红书博主信息、账号资料、达人画像、主页信息和粉丝规模查询。覆盖 Xiaohongshu / XHS / RedNote creator profiles,来自 SocialDataX 社媒数据助手。

27 installs

用于抖音评论分析、抖音评论回复、抖音评论洞察、用户反馈、口碑分析、痛点总结和内容讨论分析。覆盖 Douyin comments and comment replies,来自 SocialDataX 社媒数据助手。

27 installs