Xiaohongshu Api

v1.0.0

小红书数据API - 通过TikHub获取小红书帖子、评论、用户信息 / Xiaohongshu Data API via TikHub

2· 2k·8 current·8 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for bombfuock/xiaohongshu-api.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Xiaohongshu Api" (bombfuock/xiaohongshu-api) from ClawHub.
Skill page: https://clawhub.ai/bombfuock/xiaohongshu-api
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install xiaohongshu-api

ClawHub CLI

Package manager switcher

npx clawhub@latest install xiaohongshu-api
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The code and SKILL.md implement Xiaohongshu lookups via api.tikhub.io, which matches the skill name and description. However, the registry metadata lists no required environment variables or primary credential even though the docs and code expect a TikHub API key. This is an inconsistency in the declared requirements (likely sloppy metadata).
Instruction Scope
SKILL.md and the script instruct only to call TikHub endpoints (post detail, search, trending) and print JSON. There are no instructions to read unrelated local files, aggregate other credentials, or post data to third-party endpoints beyond api.tikhub.io.
Install Mechanism
There is no install spec (instruction-only), which minimizes installer risk. The bundled Python script imports the requests library but the skill does not declare this dependency; users must ensure 'requests' is available. No external archives or installers are fetched by the skill.
!
Credentials
The skill requires a TikHub API key (documented in SKILL.md and accepted as a CLI argument) but the package metadata and registry 'Required env vars' list none and there is no declared primaryEnv. Asking for an API key is reasonable for this purpose, but the omission from declared requirements is a transparency issue and could lead to user confusion or misconfiguration.
Persistence & Privilege
The skill does not request persistent/always-on presence, does not modify other skills or global agent settings, and does not request elevated platform privileges.
What to consider before installing
This skill's code and docs show it calls the TikHub API to fetch public Xiaohongshu data, which is consistent with its stated purpose. However: 1) The package metadata does not declare the TikHub API key requirement or the Python 'requests' dependency — you'll need to provide an API key (or pass it via --api-key) and ensure 'requests' is installed. 2) There is no homepage or trusted source listed and the owner ID looks uninformative; if you don't already trust the publisher, inspect the included script yourself (it's short and readable) before running. 3) Understand that using the skill will make outbound HTTPS calls to api.tikhub.io — confirm you trust TikHub and that using their API complies with your privacy/usage policies. If you want higher assurance, ask the publisher for a homepage or repository and a declared primary environment variable (e.g., TIKHUB_API_KEY).

Like a lobster shell, security has layers — review code before you run it.

latestvk97cbdzb8ab1f8p3hq1nnh2cgs82ap57
2kdownloads
2stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

小红书数据API / Xiaohongshu API

基于TikHub获取小红书公开数据。

功能 / Features

  • 📝 获取帖子详情 / Get post details
  • 💬 获取评论 / Get comments
  • 👤 获取用户信息 / Get user info
  • 🔍 搜索帖子 / Search posts
  • 🔥 获取热门 / Get trending

使用方法 / Usage

# 获取帖子
python xiaohongshu.py --post-id <帖子ID>

# 搜索
python xiaohongshu.py --search <关键词>

# 热门
python xiaohongshu.py --trending

配置 / Configuration

需要TikHub API Key(免费注册): https://api.tikhub.io

TIKHUB_API_KEY = "your_api_key"

API示例 / Examples

from xiaohongshu import XiaohongshuAPI

api = XiaohongshuAPI(api_key="your_key")

# 获取帖子
post = api.get_post("67c8a0ed0000000001f00e2b")

# 搜索
results = api.search("AI教程")

# 热门
trending = api.get_trending()

注意事项

  • 仅获取公开数据
  • 遵守TikHub使用条款
  • 尊重用户隐私

Comments

Loading comments...