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

Terminal
claude install-skill https://github.com/liangdabiao/tikhub_api_skill

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

    undefined

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:

    undefined
在 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