tikhub-rest-api

tikhub-rest-api is a skill for Claude Code from TikHub/tikhub-plugin. It costs 75 tokens per session (1,057 once invoked), scanned A, original, MIT.

A direct HTTP interface to TikHub, a service that provides data from social-media platforms. It lets scripts call TikHub's REST API using tools such as curl.

In plain words
What is it for?
Use it to call TikHub endpoints, retrieve social-media data, handle pagination and retries, and build scripts around TikHub requests.
Why use it?
It allows data requests without installing a package or using a separate integration path, including in continuous-integration jobs and non-Python programs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tikhub-plugin plugin — 19 skills, 7 MCP servers shipped together

Good fit Use it to call TikHub endpoints, retrieve social-media data, handle pagination and retries, and build scripts around TikHub requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tikhub/tikhub-plugin/tikhub-rest-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TikHub/tikhub-plugin --skill tikhub-rest-api
Clone the repo
git clone --depth 1 https://github.com/TikHub/tikhub-plugin

Made for: Claude Code.

Or install tikhub-plugin, the plugin that ships this one along with the rest of its 19 skills, 7 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tikhub-rest-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/tikhub/tikhub-plugin/tikhub-rest-api.svg)](https://agentmods.dev/skills/tikhub/tikhub-plugin/tikhub-rest-api)
Your own site
<a href="https://agentmods.dev/skills/tikhub/tikhub-plugin/tikhub-rest-api"><img src="https://agentmods.dev/badge/skills/tikhub/tikhub-plugin/tikhub-rest-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,057 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.01057
Opus 5 $0.00037 $0.00528
Sonnet 5 $0.00015 $0.00211
Haiku 4.5 $0.00007 $0.00106

Measured 7d ago against content hash 1b9d76e15cd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

tikhub-rest-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: Call the TikHub REST API directly with curl/HTTP. Use for zero-install scripting, CI, non-Python environments, or when the MCP path is unavailable. Covers base URLs, Bearer auth, the /api/v1/{platform}/... p
skills/tikhub-rest-api/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TikHub — REST API

Direct HTTP access to all 1,100+ TikHub endpoints. Use tikhub-endpoint-discovery to find the right path, then call it here.

Setup gate

[ -z "${TIKHUB_API_KEY:-}" ] && echo "Set TIKHUB_API_KEY first (see tikhub-onboarding)."

Essentials

  • Base URL: https://api.tikhub.io (Mainland China mirror: https://api.tikhub.dev).
  • Auth header: Authorization: Bearer $TIKHUB_API_KEY.
  • Path scheme: /api/v1/{platform}/{api}/{action} — e.g. /api/v1/tiktok/app/v3/fetch_one_video.
  • Most reads are GET with query params; batch/multi endpoints are POST with a JSON body.

Action — example calls

# 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"]'

Pagination (param name varies by platform)

Platform Cursor param Notes
TikTok / Douyin max_cursor / cursor response returns next cursor + has_more
Instagram pagination_token pass the token from the previous response
YouTube continuation_token pass to ..._replies / next-page endpoints
Twitter 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).

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 89 lines · 75 tokens per session scan A 1b9d76e15cd2

Subscribe to this mod's changes

tikhub-rest-api is a skill published in the GitHub repository TikHub/tikhub-plugin (6 stars, last pushed 2mo ago), licensed MIT. It adds 75 tokens to every session and 1,057 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

data-engineering

Builds and operates data pipelines — ingestion, transformation, orchestration, quality testing, and reliability of data delivery. Use this to design or debug a pipeline, decide batch versus streaming, add data quality checks, handle late or duplicate data, or work out why a dashboard's numbers changed without anyone…

cbrock84/headcount · 67 tokens

api-design

Designs interfaces that survive their consumers — resource modeling, errors, versioning, pagination, and compatibility. Use this to design a new API, review one before it ships, decide how to version or deprecate, fix an interface consumers keep misusing, or work out whether a change is breaking.

cbrock84/headcount · 64 tokens

api-design

API contract design for REST and GraphQL, covering resource shape, URL and header versioning with deprecation windows, RFC 9457 Problem Details error handling, and OpenAPI specs. Use when specifying the wire contract an endpoint exposes, choosing a versioning scheme, or standardizing error response bodies across…

yonatangross/orchestkit · 76 tokens

async-jobs

Async job processing patterns for background tasks, Celery workflows, task scheduling, retry strategies, and distributed task execution. Use when implementing background job processing, task queues, or scheduled task systems.

yonatangross/orchestkit · 42 tokens

database-patterns

Database design and migration patterns for Alembic migrations, schema design (SQL/NoSQL), and database versioning. Use when creating migrations, designing schemas, normalizing data, managing database versions, or handling schema drift.

yonatangross/orchestkit · 49 tokens

domain-driven-design

DDD tactical patterns for complex business modeling including entities, value objects, aggregates, domain services, repositories, specifications, and bounded contexts. Python dataclass implementations with TypeScript alternatives. Use when building rich domain models, enforcing invariants, or separating domain logic…

yonatangross/orchestkit · 57 tokens