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

Data & APIs

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

Install

openclaw skills install socialdatax-xhs-comments

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

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

API Key

Use SOCIALDATAX_API_KEY for data calls. The only official website for requesting or managing API access is https://socialdatax.com. If a user asks where to get a key, provide only this URL; do not infer alternate domains. 获取或管理 API Key:访问 https://socialdatax.com,按官网的 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 "<note_id>" --pretty
npx -y socialdatax-skills@latest xhs comments --url "<note_url_or_share_text>" --pretty
npx -y socialdatax-skills@latest xhs sub-comments --note-id "<note_id>" --comment-id "<comment_id>" --pretty
  • --note-id <note_id>: preferred when the note ID is already known and should anchor the comment thread.
  • --url <note_url_or_share_text>: use for a note page URL, short link, or share text for first-level comments.
  • --comment-id <comment_id>: required only for reply commands; use the first-level comment ID under the same note.
  • --page-token <next_page_token>: opaque pagination token; pass back exactly the token returned by the previous page.
  • --pretty: output formatting only.

For comments, use either --note-id or --url, not both. For reply commands, use the note ID together with --comment-id.

Safety Boundary

This skill is read-only. It does not read local browser data, does not save API keys, and does not perform login, posting, liking, commenting, or account changes.

MCP Tools

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 note ID is known.
  • xhs_get_note_comments_by_note_url: use for note URLs, short links, or share text.
  • xhs_get_note_sub_comments_by_comment_id: use when the note ID and first-level comment ID are known.

Comment pagination uses page_token. Pass back exactly the returned next_page_token; tokens are bound to the current note or comment.

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.