小红书数据API / Xiaohongshu API
name: xiaohongshu-api
by bombfuock · published 2026-03-22
$ claw add gh:bombfuock/bombfuock-xiaohongshu-api---
name: xiaohongshu-api
description: 小红书数据API - 通过TikHub获取小红书帖子、评论、用户信息 / Xiaohongshu Data API via TikHub
metadata:
version: 1.0.0
---
# 小红书数据API / Xiaohongshu API
基于TikHub获取小红书公开数据。
功能 / Features
使用方法 / 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()注意事项
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...