TikHub-API-Python-SDK

High-performance asynchronous Douyin(抖音) TikTok Xiaohongshu(小红书) Kuaishou(快手) Weibo(微博) Instagram YouTube(油管) Twitter(X) Captcha Solver(验证码解决器) Temp Mail(临时邮箱) API(接口).

github.com/TikHub/TikHub-API-Python-SDK
TikHub-API-Python-SDK homepage screenshot

About TikHub-API-Python-SDK

TikHub-API-Python-SDK is the official Python client for the TikHub social media data API. TikHub is a unified REST API that the README describes as providing real-time access to more than 16 platforms, including TikTok, Douyin, Instagram, YouTube, Twitter/X, Xiaohongshu, Bilibili, Weibo, and Kuaishou. The SDK wraps the API's endpoints, which the README says cover video details, user profiles, comments, search results, live streams, trending content, and e-commerce analytics. The README states that the SDK covers 1048 endpoints from OpenAPI spec V5.3.2, with deprecated endpoints excluded.

Using the SDK requires a TikHub account and API key, which are obtained by signing up on the TikHub site. The SDK requires Python 3.9 or later. The source does not state known pricing, and it does not describe the terms, geographic limits, or data handling practices of the TikHub service itself.

Key features

  • Synchronous and asynchronous clients with identical APIs
  • Automatic retries with exponential backoff and rate-limit handling
  • Structured error hierarchy with full debugging context
  • Type-checked with mypy --strict, built on httpx and pydantic v2
  • Endpoints mapped to the OpenAPI spec, called by resource and method name
  • MCP integration for connecting AI agents to social media data
Best for: Developers, data scientists, and AI engineers who need structured social media data through Python code for analytics, research, or AI work.
Good for
  • The README states 100% endpoint coverage of the listed OpenAPI spec version
  • Sync and async clients share the same interface
  • Source code is open and hosted on GitHub
Watch out for
  • Requires a TikHub account and API key
  • Requires Python 3.9 or later
  • Known pricing is not stated in the source

TikHub-API-Python-SDK at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

TikHub-API-Python-SDK alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in TikTok Tools

Well-known listings from the same topic.

All 68

TikHub-API-Python-SDK FAQ

What is needed to start using the SDK?
Install it with pip install tikhub on Python 3.9 or later, sign up for a TikHub account to get an API key, and set the key as the TIKHUB_API_KEY environment variable or pass it directly to the client.
Does the SDK support asynchronous code?
Yes. It provides an AsyncTikHub client with the same API as the synchronous TikHub client.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing