Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • The full catalog has hundreds of endpoints (Douyin, Xiaohongshu, Bilibili, Weibo and more, plus ‘web_v2’ and app variants); this file names the main reads for TikTok, Instagram, YouTube and X.
  • Identifiers vary per call: TikTok lists want secUid, Instagram posts want a numeric user_id (look it up with the profile call), X accepts screen_name or rest_id.
  • Paging tokens differ per endpoint (cursor, offset plus search_id, max_id, min_id, continuation_token).
  • Calls are billed per request from your TikHub balance; account.info shows the account.

Endpoints

Get your TikHub account

Get daily usage

Get a TikTok profile

List a TikTok user’s videos

Get a TikTok video

List comments on a TikTok video

Get an Instagram profile

List an Instagram user’s posts

Get an Instagram post by URL

List comments on an Instagram post

Get a YouTube channel

Get a YouTube video

List comments on a YouTube video

List a YouTube channel’s videos

Get an X profile

List an X user’s posts

Get a tweet