TikHub-API-Python-SDK  by TikHub

Unified API SDK for 16+ social media platforms

Created 3 years ago
646 stars

Top 51.3% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

TikHub API Python SDK provides unified, high-performance access to real-time data from over 16 social media platforms, including TikTok, Instagram, YouTube, and Twitter/X. It targets developers, data scientists, and AI engineers needing structured data for AI training, trend monitoring, and market research, offering a single API key and 1000+ endpoints to simplify complex data acquisition.

How It Works

The SDK is mechanically generated from the TikHub OpenAPI specification, guaranteeing 100% endpoint coverage and consistency. It offers both synchronous (TikHub) and asynchronous (AsyncTikHub) clients with identical APIs, built on httpx and pydantic v2 for type safety and performance. Production-ready features include automatic retries with exponential backoff and robust rate-limit handling, ensuring reliable data retrieval.

Quick Start & Requirements

  • Install: pip install tikhub
  • Prerequisites: Python 3.9+. An API key is required, obtainable from https://user.tikhub.io/login and set via the TIKHUB_API_KEY environment variable or constructor argument.
  • Docs: Comprehensive documentation is available via mkdocs serve after installing with pip install "tikhub[docs]".

Highlighted Details

  • Achieves 100% endpoint coverage (1010/1010) against OpenAPI spec V5.3.2, mechanically generated and verified.
  • Integrates with AI agents (Claude, LangChain, Coze, n8n) via Model Context Protocol (MCP).
  • Offers a CLI tool (pip install "tikhub[cli]") for API health checks, universal video URL parsing, and usage monitoring.
  • Supports 16+ platforms including TikTok, Douyin, Instagram, YouTube, Twitter/X, Xiaohongshu, Bilibili, and Weibo.

Maintenance & Community

The project is actively maintained, indicated by version 2.1.1 and a clear process for refreshing the OpenAPI spec. No specific community channels (like Discord/Slack) or notable contributors are detailed in the provided text.

Licensing & Compatibility

The SDK is released under the MIT License, generally permissive for commercial use and integration into closed-source projects.

Limitations & Caveats

The README does not specify any alpha status, known bugs, or unsupported platforms. The primary dependency is the availability and terms of service of the TikHub API itself.

Health Check
Last Commit

2 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
6
Issues (30d)
0
Star History
40 stars in the last 30 days

Explore Similar Projects

Starred by Adam Wolff Adam Wolff(Claude Code Core; MTS at Anthropic), Samuel Colvin Samuel Colvin(Founder and Author of Pydantic), and
5 more.

anthropic-sdk-python by anthropics

1.2%
3k
Python SDK for Anthropic's REST API
Created 3 years ago
Updated 7 hours ago
Feedback? Help us improve.