SocialDataX 评论洞察
Use this skill when the user wants social comment insight, XHS comments, Douyin comments, Kuaishou comments, user feedback, reputation analysis, pain-point summary, FAQ extraction, or comment replies.
Current platform support:
- Xiaohongshu / XHS / RedNote notes through the
xhs_get_note_comments_by_*andxhs_get_note_sub_comments_by_comment_idtools. - Douyin / 抖音 works, including video and image/text posts, through the
douyin_get_video_comments_by_*anddouyin_get_video_comment_replies_by_comment_idtools. - Kuaishou / 快手 works through the
kuaishou_get_video_comments_by_*andkuaishou_get_video_comment_replies_by_comment_idtools.
API Key
Use SOCIALDATAX_API_KEY for SocialDataX requests. The only official website for requesting or managing API access is https://socialdatax.com/?from=skillhub. If a user asks where to get a key, provide only this URL; do not infer alternate domains.
获取或管理 API Key:访问 https://socialdatax.com/?from=skillhub,按官网的 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
npx -y socialdatax-skills@latest douyin comments --aweme-id "<aweme_id>" --pretty
npx -y socialdatax-skills@latest douyin comments --url "<douyin_content_url_or_share_text>" --pretty
npx -y socialdatax-skills@latest douyin replies --aweme-id "<aweme_id>" --comment-id "<comment_id>" --pretty
npx -y socialdatax-skills@latest kuaishou comments --photo-id "<photo_id>" --pretty
npx -y socialdatax-skills@latest kuaishou comments --url "<kuaishou_content_url_or_share_text>" --pretty
npx -y socialdatax-skills@latest kuaishou replies --photo-id "<photo_id>" --comment-id "<comment_id>" --pretty
Optional arguments:
- XHS
--note-id <note_id>: preferred when the note ID is already known and should anchor the comment thread. - Douyin
--aweme-id <aweme_id>: preferred when the video ID is already known and should anchor the comment thread. --url <url_or_share_text>: use for a content page URL, short link, or share text for first-level comments.- Douyin URL safety: do not pass
video.play_url; use a Douyin content page URL, short link, or share text instead. --comment-id <comment_id>: required for reply commands; use the first-level comment ID under the same content item.--page-token <next_page_token>: opaque pagination token; pass back exactly the token returned by the previous page and do not reuse it across content items or comments.--pretty: output formatting only.- Kuaishou
--photo-id <photo_id>: preferred when the Kuaishou work photo_id is already known and should anchor the comment thread.
Use either the content ID option or the URL option for first-level comments, not both. For reply commands, use the content ID together with --comment-id.
The command prints JSON with platform, tool, arguments, and data.
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
MCP tools matching the direct CLI commands above:
xhs_get_note_comments_by_note_idxhs_get_note_comments_by_note_urlxhs_get_note_sub_comments_by_comment_iddouyin_get_video_comments_by_aweme_iddouyin_get_video_comments_by_urldouyin_get_video_comment_replies_by_comment_idkuaishou_get_video_comments_by_photo_idkuaishou_get_video_comments_by_urlkuaishou_get_video_comment_replies_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 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.douyin_get_video_comments_by_aweme_id: use when the aweme_id is known.douyin_get_video_comments_by_url: use for Douyin content page URLs, short links, or share text; do not pass playback URLs such asvideo.play_url.douyin_get_video_comment_replies_by_comment_id: use when the aweme_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 content item and should not be reused across objects.
For Douyin comments and replies, continue only when next_page_token is non-empty; an empty string means there are no more comments or replies to request.
XHS reply pagination also uses page_token and is bound to the current comment.
kuaishou_get_video_comments_by_photo_id: use when the photo_id is known.kuaishou_get_video_comments_by_url: use for Kuaishou work page URLs, short links, or share text.kuaishou_get_video_comment_replies_by_comment_id: use when the photo_id and first-level comment ID are known. For Kuaishou comments and replies, continue only whennext_page_tokenis non-empty; an empty string means there are no more comments or replies to request.
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.
For Douyin comment media, use image_urls for attached pictures. When sticker is present, sticker.static_url is a static preview when non-empty, and sticker.animated_url is the animated resource when non-empty.
微信扫一扫