TikHub API Helper banner
liangdabiao liangdabiao

TikHub API Helper

Data community intermediate

Description

TikHub API Helper is a Claude Code Agent Skill that helps users search, discover, and call TikHub APIs. TikHub provides multi-platform social media data APIs supporting Douyin, TikTok, Xiaohongshu, In

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

TikHub API Helper

TikHub API Helper is a Claude Code Agent Skill that helps users search, discover, and call TikHub APIs. TikHub provides multi-platform social media data APIs supporting Douyin, TikTok, Xiaohongshu, Instagram, YouTube, Twitter, Reddit, and more.

Introduction

TikHub is a multi-platform social media data API service that provides RESTful interfaces to fetch data from major social platforms. This project is a Claude Code Agent Skill that allows you to easily call TikHub APIs when using Claude Code.

Supported Platforms

Platform API Tag Endpoint Count
TikTok Web TikTok-Web-API 58
TikTok App TikTok-App-V3-API 76
Douyin Web Douyin-Web-API 76
Douyin App Douyin-App-V3-API 45
Xiaohongshu Web Xiaohongshu-Web-API 26
Instagram Instagram-V2-API 26
YouTube YouTube-Web-API 16
Twitter Twitter-Web-API 13
Reddit Reddit-APP-API 23
Bilibili Bilibili-Web-API 24
Weibo Weibo-Web-V2-API 33
Zhihu Zhihu-Web-API 32

Features

  • API Search - Search TikHub APIs by keyword, tag, or operation ID
  • API Calls - Call TikHub APIs directly from command line
  • Multi-platform Support - Supports 12+ platforms including TikTok, Douyin, Xiaohongshu
  • Bilingual Support - Supports both Chinese and English keyword searches
  • Auto Authentication - Built-in development API token

Installation

1. Clone Repository

git clone https://github.com/your-username/tikhub_api_skill.git
cd tikhub_api_skill

2. Verify Project Structure

Ensure the `.claude/skills/tikhub-api-helper/` directory contains:

.claude/skills/tikhub-api-helper/
├── SKILL.md           # Skill definition file
├── openapi.json       # OpenAPI specification
├── api_searcher.py    # API search utility
└── api_client.py      # API client

3. Get API Token (Optional)

A development API token is built into the code. To use your own token:

  1. Visit TikHub User and log in
  2. Click "API Keys" on the left sidebar to generate your API token
  3. Set environment variable:
在 api_client.py 23行,配置 DEFAULT_TOKEN = "你的 API Token"

Usage

Using with Claude Code

The Skill automatically activates when you ask about TikHub APIs in Claude Code:

# Example conversation
You: "How to get TikTok user profile?"
Claude: [Automatically calls tikhub-api-helper Skill to search relevant APIs]

Using via Command Line

Search APIs

# Keyword search
python .claude/skills/tikhub-api-helper/api_searcher.py "user profile"
python .claude/skills/tikhub-api-helper/api_searcher.py "trending"
python .claude/skills/tikhub-api-helper/api_searcher.py "video comments"

# Search by tag
python .claude/skills/tikhub-api-helper/api_searcher.py tag:TikTok-Web-API

# View popular APIs
python .claude/skills/tikhub-api-helper/api_searcher.py popular

# List all t