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-code

Installs 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。

工作流

  1. 确认平台与数据类型(用户资料 / 作品 / 评论 / 搜索 / 热榜)。
  2. 用关键词或标签检索,看候选端点和说明。
  3. 用 detail: 查参数、必填项、返回结构和可直接执行的 example_call。
  4. 用 api_client.py 填实参数发起调用。
  5. 大响应用 --summary 看结构或 --output result.json 落盘,不要整段灌回对话。

命令速查

Sponsors

Details

Repository
github.com/liangdabiao/tikhub_api_skill
Category
Backend & APIs
First seen
Jun 3, 2026
1wsimmonds avatarnextjs-server-navigationwsimmonds/claude-nextjs-skillsGuide for implementing navigation in Next.js Server Components using Link component and redirect() function. Covers the difference between server and client nav305skills.sh installs
2jezweb avatarfirebase-storagejezweb/claude-skillsBuild with Firebase Cloud Storage - file uploads, downloads, and secure access. Use when: uploading images/files, generating download URLs, implementing file pi296skills.sh installs
3firebase avatarfirebase-firestore-basicsfirebase/skillsfirebase firestore basics282skills.sh installs
4davila7 avatarchembl-databasedavila7/claude-code-templatesQuery ChEMBL's bioactive molecules and drug discovery data. Search compounds by structure/properties, retrieve bioactivity data (IC50, Ki), find inhibitors, per278skills.sh installs
5josiahsiegel avatarsql-server-2025josiahsiegel/claude-plugin-marketplaceSQL Server 2025 and SqlPackage 170.2.70 (October 2025) — vector databases, AI integration, and modern features. PROACTIVELY activate for: (1) SQL Server 2025 fe260skills.sh installs
6patricio0312rev avatarapi-versioning-deprecation-plannerpatricio0312rev/skillsPlans safe API evolution with versioning strategies, client migration guides, deprecation timelines, and backward compatibility considerations. Use for "API ver260skills.sh installs