Search

PythonReactSEOPDF
OpenClaw

xiaohongshu-api

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

bombfuock0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install bombfuock/xiaohongshu-api

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

小红书数据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使用条款
  • 尊重用户隐私

Source information

Source
github
Repository
openclaw/skills
Path
skills/bombfuock/xiaohongshu-api
Version
—
Commit
0fbaed08b340be3e4e8c1112cce55f5cba4089e9
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 小红书数据API / Xiaohongshu API

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

## 功能 / Features

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

## 使用方法 / Usage

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

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

# 热门
python xiaohongshu.py --trending
```

## 配置 / Configuration

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

```python
TIKHUB_API_KEY = "your_api_key"
```

## API示例 / Examples

```python
from xiaohongshu import XiaohongshuAPI

api = XiaohongshuAPI(api_key="your_key")

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

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

# 热门
trending = api.get_trending()
```

## 注意事项

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

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.