
Tikhub Api Helper
You know those times when you need to pull data from TikTok, Instagram, YouTube, or a dozen other social platforms and don't want to deal with their individual APIs? This wraps TikHub's unified API with two simple scripts: one to search across 500+ endpoints by keyword or platform tag, another to actually make the requests. It covers the usual suspects like user profiles, video details, comments, and search, plus Chinese platforms like Douyin, Xiaohongshu, Weibo, and Bilibili. The searcher supports both English and Chinese queries, which is handy if you're working across markets. Rate limits are reasonable at 10 QPS per endpoint. You'll need a TikHub token for production use, though there's a default one for testing.
- skills.sh installs
- 309
- GitHub stars
- 129
- last updated
- Aug 21, 2026
Install
$ npx -y skills add liangdabiao/tikhub_api_skill --skill tikhub-api-helper --agent claude-codeInstalls into .claude/skills of the current project.
Files
TikHub API Helper
检索本地 OpenAPI 规范中的 TikHub 端点,查清参数后发起调用。覆盖抖音、TikTok、小红书、B 站、微博、知乎、快手、Instagram、YouTube、X/Twitter、Reddit 等平台的公开数据(用户资料、作品、评论、搜索、热榜)。
本仓库根目录就是 Skill 目录:SKILL.md、api_searcher.py、api_client.py、openapi.json 同级。以下命令都在该目录执行。
数据源
只读同目录的 openapi.json(OpenAPI 3.0.1,V5.3.1,1067 端点 / 51 标签)。它是结构化规范,可按路径 / 标签 / operationId 精确取单条端点;不要整篇读进上下文,也不要去找别的文档。需要换规范时用 TIKHUB_OPENAPI_PATH 或 --spec 指定。
API Token
源码不含任何 Token。调用前任选其一:
export TIKHUB_API_TOKEN=<your token> # Git Bash / macOS / Linux
# 或单次临时传:python api_client.py GET ... --token <your token>
未配置时客户端报 No TikHub API token found 并退出。公开的免鉴权端点可加 --no-auth。域名默认 https://api.tikhub.io;大陆用户加 --china(https://api.tikhub.dev)或设 TIKHUB_BASE_URL。
工作流
- 确认平台与数据类型(用户资料 / 作品 / 评论 / 搜索 / 热榜)。
- 用关键词或标签检索,看候选端点和说明。
- 用
detail:查参数、必填项、返回结构和可直接执行的example_call。 - 用
api_client.py填实参数发起调用。 - 大响应用
--summary看结构或--output result.json落盘,不要整段灌回对话。
命令速查
Sponsors
Details
- Repository
- github.com/liangdabiao/tikhub_api_skill
- Category
- Backend & APIs
- First seen
- Jun 3, 2026