Xhs Apis logo

Xhs Apis

Community
cv-cat
xhs-apis

Use this skill when you need to call the vendored Xiaohongshu/XHS APIs from Spider_XHS for PC web data or creator-platform publishing data. This skill only wraps the APIs in xhs_pc_apis.py and xhs_creator_apis.py, including note, user, search, comment, topic, location, media upload, note publishing, and creator published-note queries.

Overview

Publishercv-cat
RepositoryXhsSkills
Skill namexhs-apis
Stars
229
Forks
71
Bundled files
20
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 20 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cv-cat on GitHub. Read the source before you install it.

Installation

Install the Xhs Apis AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cv-cat/XhsSkills/tree/master/skills/xhs-apis
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cv-cat/XhsSkills.git /tmp/XhsSkills
mkdir -p .claude/skills
cp -r /tmp/XhsSkills/skills/xhs-apis .claude/skills/xhs-apis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Xhs Apis in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Xhs Apis on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Xhs Apis is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

XHS APIs

Overview

Use this skill to run the vendored Spider_XHS APIs for XHS PC and creator-platform workflows. This skill only exposes the methods defined in xhs_pc_apis.py and xhs_creator_apis.py.

Quick Start

  1. Install Python dependencies:
powershell
pip install -r skills/xhs-apis/scripts/requirements.txt
  1. Install Node dependencies:
powershell
Set-Location skills/xhs-apis/scripts
npm install
  1. Inspect available methods:
powershell
python skills/xhs-apis/scripts/xhs_api_tool.py list
  1. Call an API:
powershell
python skills/xhs-apis/scripts/xhs_api_tool.py call pc get_note_info --params "{\"url\":\"https://www.xiaohongshu.com/explore/...\",\"cookies_str\":\"a1=...; web_session=...\"}"

Workflow

  • Use the pc namespace for public-site note, user, search, comment, message, and feed APIs.
  • Use the creator namespace for creator-platform topic lookup, location lookup, media upload, note publishing, and published-note queries.
  • If you are unsure which method to use, run list first or read api-index.md.

Parameter Rules

  • pc methods mostly expect cookies_str.
  • creator source methods often expect a cookies dict. The CLI accepts either cookies or cookies_str and converts automatically.
  • For creator file inputs, pass file paths in JSON. The CLI reads those files into bytes before calling the vendored API.
  • For creator.post_note, pass noteInfo.media_type as image or video, then provide either images or video.

Runtime Notes

  • The runtime shipped with this skill is a trimmed vendor copy that keeps only the code needed by xhs_pc_apis.py and xhs_creator_apis.py.
  • The CLI changes into its vendored runtime directory before import so the bundled JS signers can resolve their relative static/ files.
  • If jsdom or crypto-js errors appear, rerun npm install inside skills/xhs-apis/scripts.

References

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Xhs Apis AI skill do?

Use this skill when you need to call the vendored Xiaohongshu/XHS APIs from Spider_XHS for PC web data or creator-platform publishing data. This skill only wraps the APIs in xhs_pc_apis.py and xhs_creator_apis.py, including note, user, search, comment, topic, location, media upload, note publishing, and creator published-note queries.

Why use Xhs Apis on TypingMind?

Because you install it once and use it with any model. Xhs Apis is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Xhs Apis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cv-cat/XhsSkills/tree/master/skills/xhs-apis. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Xhs Apis?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Xhs Apis?

As many as you like. As long as a model supports skills, you can use Xhs Apis with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Xhs Apis AI skill free?

It is published on GitHub by cv-cat. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇