xhs-noteid

Extract XiaoHongShu noteId from long URLs and xhslink.com redirects.

3|2|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/muzhicaomingwang/ai-ideas --skill xhs-noteid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xhs-noteid
Source: https://github.com/muzhicaomingwang/ai-ideas/tree/main/apps/teamventure/skills/xhs-noteid
Command: npx skills add https://github.com/muzhicaomingwang/ai-ideas --skill xhs-noteid

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, and includes scripts (resource) components.

What problem does it solve?

Extracts Xiaohongshu noteId from shared notes or URLs to enable precise referencing and analytics.

Core Features & Use Cases

  • NoteId extraction: Retrieve the noteId from long URLs like /discovery/item/<noteId> or from share text containing the URL.
  • Short URL resolution: Resolve xhslink.com redirects to the long URL and then extract the noteId.
  • Use Case: Build reference links, index content, or feed analytics dashboards with the identified noteId.

Quick Start

Paste a XiaoHongShu share text or a short or long URL containing /discovery/item/<noteId> to immediately extract the noteId.

Frequently Asked Questions about xhs-noteid

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract Xiaohongshu noteId from shared links?

The tool parses long URLs containing /discovery/item/<noteId> and resolves xhslink.com short links to extract the Xiaohongshu noteId. It processes shared text to isolate the identifier for precise content referencing.

Does noteId extraction work with xhslink.com short URLs?

Yes, noteId extraction resolves xhslink.com short URLs by following the redirect to the long URL. It uses curl to validate the redirect path before parsing the final destination to retrieve the noteId.

Can I parse Xiaohongshu noteId from raw share text instead of just URLs?

Yes, the extraction workflow parses raw share text to locate and extract the Xiaohongshu noteId. It identifies the embedded URL within the text block and isolates the identifier automatically.

What is the best way to get noteId for Xiaohongshu content indexing?

The best way to get noteId for Xiaohongshu content indexing is to run a Python parsing workflow on the share text. It extracts the noteId from long or short URLs to feed analytics dashboards and reference links.

Do I need curl installed to resolve xhslink.com redirects?

Yes, curl is required to optionally resolve xhslink.com short URLs. The dependency is used to follow the redirect and validate the long URL before the Python script extracts the noteId.