Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Search and query TikHub APIs for TikTok, Douyin, Xiaohongshu, Lemon8, Instagram, YouTube, Twitter, Reddit, and more. Use when user asks about social media data. Supports both English and Chinese queries.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 191% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 68% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 96% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 68% | 0% |
通过 TikHub API 获取各社交媒体平台数据的 Skill。
scripts/api_searcher.py 搜索相关 APIscripts/api_searcher.py detail:操作ID 确认参数(可选)scripts/api_client.py 调用 API搜索笔记(查找用户也用这个,从笔记中提取用户信息):
GET /api/v1/xiaohongshu/app/search_notes keyword=关键词 page=1搜索结果中的用户字段(⚠️ 容易搞错):
userid = 用户真实ID(全小写,用于后续 API 调用)red_id = 红书号(不能用于 API 调用)nickname = 昵称获取用户信息:
GET /api/v1/xiaohongshu/app/get_user_info user_id=<userid字段值>获取用户笔记(cursor 翻页,不是 page):
# 第一页(不传 cursor)
GET /api/v1/xiaohongshu/app/get_user_notes user_id=<userid>
# 翻页(传上一页最后一条笔记的 cursor 字段)
GET /api/v1/xiaohongshu/app/get_user_notes user_id=<userid> cursor=<上一页最后笔记的cursor值>笔记数据在 data.notes 数组中,每条字段:
id = 笔记IDtitle / display_title = 标题likes = 点赞数comments_count = 评论数type = 类型(normal=图文,video=视频)cursor = 翻页游标笔记详情 / 评论:
GET /api/v1/xiaohongshu/app/get_note_info note_id=<id字段值>
GET /api/v1/xiaohongshu/app/get_note_comments note_id=<id字段值>搜索(⚠️ POST 方法,参数用 JSON body):
# 综合搜索
POST /api/v1/douyin/search/fetch_general_search_v1 '{"keyword":"关键词","count":10,"offset":0}'
# 视频搜索
POST /api/v1/douyin/search/fetch_video_search_v1 '{"keyword":"关键词","count":10,"offset":0}'
# 用户搜索
POST /api/v1/douyin/search/fetch_user_search '{"keyword":"关键词","count":10,"offset":0}'
# 多类型搜索
POST /api/v1/douyin/search/fetch_multi_search '{"keyword":"关键词","count":10}'搜索结果字段:视频在 data.data[].aweme_info 中,包含:
desc = 视频描述author.nickname = 作者昵称author.follower_count = 粉丝数statistics.digg_count = 点赞数statistics.comment_count = 评论数热搜:
GET /api/v1/douyin/web/fetch_hot_search_result
GET /api/v1/douyin/app/v3/fetch_hot_search_list用户:
GET /api/v1/douyin/app/v3/fetch_user_profile "sec_user_id=用户ID"
GET /api/v1/douyin/app/v3/fetch_user_post_videos "sec_user_id=用户ID" "max_cursor=0"# 热门内容
GET /api/v1/tiktok/web/fetch_trending_post
GET /api/v1/tiktok/web/fetch_trending_searchwords
# 探索
GET /api/v1/tiktok/web/fetch_explore_post
# 用户
GET /api/v1/tiktok/web/fetch_user_profile "sec_user_id=用户ID"
GET /api/v1/tiktok/web/fetch_user_post "sec_user_id=用户ID"# 热搜
GET /api/v1/bilibili/web/fetch_hot_search "limit=10"
# 搜索视频(⚠️ order/page/page_size 为必填参数)
GET /api/v1/bilibili/web/fetch_general_search "keyword=关键词" "order=totalrank" "page=1" "page_size=10"
# 视频详情
GET /api/v1/bilibili/web/fetch_one_video "bvid=视频BV号"# 热搜
GET /api/v1/weibo/web_v2/fetch_hot_search
# 用户信息(⚠️ 参数名是 uid,不是 user_id)
GET /api/v1/weibo/web_v2/fetch_user_basic_info "uid=用户UID"
# 用户微博
GET /api/v1/weibo/web_v2/fetch_user_posts "uid=用户UID" "page=1"
# 微博详情(⚠️ 参数名是 id)
GET /api/v1/weibo/web_v2/fetch_post_detail "id=微博ID"当用户要求分析某个博主/KOL 时(如"小红书博主Yybricks热门帖子20"):
userid 字段likes 字段排序,选出 Top Napi_searcher.py "小红书搜索" # 中文搜索
api_searcher.py "抖音热搜" # 中文搜索
api_searcher.py "xiaohongshu search" # 英文搜索
api_searcher.py "tag:Xiaohongshu-App-API" # 按标签列
api_searcher.py "detail:操作ID" # 查看 API 参数详情
api_searcher.py "tags" # 列出标签
api_searcher.py "popular" # 常用 API# GET 请求(参数用 key=value 格式)
python api_client.py GET /api/v1/平台/路径 "参数名=参数值" "参数名2=参数值2"
# POST 请求(body 用 JSON 格式)
python api_client.py POST /api/v1/平台/路径 '{"key":"value"}'API Token 通过环境变量 TIKHUB_TOKEN 配置,api_client.py 自动读取。
api_searcher.py detail:操作ID 查看参数定义userid 字段Other measured skills in the registry, with their headline benchmark lift.