Data & analysis

socialdatax-xhs-detail

Try it

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

What it does

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

The skill document

小红书数据分析 SocialDataX 笔记详情

Use this skill when the user wants 小红书笔记详情, Xiaohongshu / XHS / RedNote note details, note metrics, content analysis, or a structured view of one note.

Current platform support:

  • Xiaohongshu / XHS / RedNote notes through the xhs_get_note_detail_by_* 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 detail \
  --note-id "" --pretty --source-client socialdatax-skills \
  --source-platform clawhub --source-skill socialdatax-xhs-detail

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

Optional arguments:

  • XHS --note-id : use the complete 24-character lowercase hexadecimal note_id returned from search, comments, creator note lists, or a previous detail result; do not pass only a prefix.
  • XHS --url : use for a note link, short link, or share text.
  • --pretty: output formatting only.
  • --source-client socialdatax-skills --source-platform clawhub --source-skill socialdatax-xhs-detail: usage attribution for this Agent Skill; keep these values unchanged when running examples from this Skill.

Use either the ID option or the URL option for detail commands, not both.

The command prints JSON with platform, tool, arguments, and data.

Safety Boundary

This skill is read-only for SocialDataX detail requests. 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. The optional XHS local save command writes only to the requested local --output path or --output-dir directory and does not require SOCIALDATAX_API_KEY.

MCP Tools

MCP tools matching the direct CLI commands above:

  • xhs_get_note_detail_by_note_id
  • xhs_get_note_detail_by_note_url

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

  • xhs_get_note_detail_by_note_id: use when the complete 24-character lowercase hexadecimal note_id is already known; do not pass only a prefix.
  • xhs_get_note_detail_by_note_url: use for note URLs, short links, or share text.

Output Guidance

Return factual fields such as title or description, content, author, publish time, interaction counts, images, and media summary when available. For XHS detail results, in every use of a returned note_url, such as final answers, display, references, storage, output, or forwarding, preserve it exactly as the full URL, including xsec_token query parameters. Do not modify, truncate, redact, mask, normalize, rebuild, or synthesize the URL from note_id; if note_url is null, show the note_id or say that no directly openable full link is available. For XHS note_id, copy the complete 24-character lowercase hexadecimal ID exactly; do not pass or display only a prefix. When the user wants to save XHS images or videos after detail, pass each returned image_items[].image_url, image_items[].live_photo.video_url, or video.video_url to npx -y socialdatax-skills@latest xhs download-media --url "" --output-dir --pretty; this local save command does not require SOCIALDATAX_API_KEY. Detail access is read-only and does not provide account actions.

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,来自 SocialDataX 社媒数据助手。

25 installs

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

27 installs

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

28 installs

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

28 installs

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

27 installs

A CLI for searching, reading, analyzing, and automating Xiaohongshu (小红书) content and accounts.

86 installs2 stars