/tikhub-plugin:tikhub-rest-apifrom tikhub-plugin
Calls TikHub REST API directly via curl/HTTP for zero-install scripting, CI, or non-Python environments. Covers base URLs, Bearer auth, path scheme, pagination, rate limits, retries, error handling, and credit/cost awareness.
Ships in tikhub-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Direct HTTP access to all 1,100+ TikHub endpoints. Use tikhub-endpoint-discovery to find the
right path, then call it here.
[ -z "${TIKHUB_API_KEY:-}" ] && echo "Set TIKHUB_API_KEY first (see tikhub-onboarding)."
https://api.tikhub.io (Mainland China mirror: https://api.tikhub.dev).Authorization: Bearer $TIKHUB_API_KEY./api/v1/{platform}/{api}/{action} — e.g. /api/v1/tiktok/app/v3/fetch_one_video.# TikTok: one video by id
curl -s "https://api.tikhub.io/api/v1/tiktok/app/v3/fetch_one_video?aweme_id=7372484719365098283" \
-H "Authorization: Bearer $TIKHUB_API_KEY"
# Instagram: user info
curl -s "https://api.tikhub.io/api/v1/instagram/v2/fetch_user_info?username=instagram" \
-H "Authorization: Bearer $TIKHUB_API_KEY"
# Twitter: search timeline
curl -s "https://api.tikhub.io/api/v1/twitter/web/fetch_search_timeline?keyword=ai&search_type=Top" \
-H "Authorization: Bearer $TIKHUB_API_KEY"
# Batch (POST) — body is a RAW JSON ARRAY of ids (not an object; an object body returns HTTP 422)
curl -s -X POST "https://api.tikhub.io/api/v1/tiktok/app/v3/fetch_multi_video" \
-H "Authorization: Bearer $TIKHUB_API_KEY" -H "Content-Type: application/json" \
-d '["7372484719365098283","7372484719365098284"]'
| Platform | Cursor param | Notes |
|---|---|---|
| TikTok / Douyin | max_cursor / cursor | response returns next cursor + has_more |
pagination_token | pass the token from the previous response | |
| YouTube | continuation_token | pass to ..._replies / next-page endpoints |
cursor | from previous timeline response | |
| Xiaohongshu | cursor (+ index) |
Loop until the response's has_more is false or no next cursor is returned. Each page is a
billed call — cap pages and warn the user before large pulls (hand off to bulk-data-export
for big jobs).
api.tikhub.dev from Mainland China.Pricing is per-endpoint and credit-based with daily-volume tier discounts. Account/cost endpoints under TikHub-User-API:
GET /api/v1/tikhub/user/get_user_info — account info / balance.GET /api/v1/tikhub/user/get_user_daily_usage — today's usage (note: this call is itself billed).GET /api/v1/tikhub/user/calculate_price?endpoint=<path>&request_per_day=<n> — estimate a run's cost.GET /api/v1/tikhub/user/get_endpoint_info?endpoint=<path> — the price/details of one endpoint.Check balance and estimate cost before bulk runs.
Before claiming success:
code indicating 401/insufficient balance).$TIKHUB_API_KEY.has_more / next-cursor and re-fetching page 1.What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/bulk-data-exportFetch large lists from TikHub (posts, followers, search results, comments) with safe pagination, dedup, and export to CSV or JSON for downstream analysis. Use when the user wants "all posts", "export to CSV/JSON", "scrape N results", "a dataset of", or any large repeated-pull job./comments-analysisPull and analyze the comments on a post/video — sentiment breakdown, recurring themes/keywords, top comments, and notable questions or complaints. Use when the user says "analyze the comments", "what are people saying on this post", "comment sentiment", or pastes a post URL and wants the discussion summarized./competitor-analysisBenchmark multiple accounts/competitors side by side on one or more platforms — followers, engagement rate, posting cadence, top content, and growth signals. Use when the user says "compare these accounts", "us vs competitors", "benchmark @a @b @c", or wants a competitive landscape.npx claudepluginhub tikhub/tikhub-plugin --plugin tikhub-pluginOther plugins' skills for the same job