This is an n8n community node that integrates TikHub API with n8n workflows.
TikHub provides unified access to social media APIs including TikTok, Instagram, YouTube, and Twitter/X.
- Go to Settings > Community Nodes in n8n
- Select Install
- Enter
n8n-nodes-tikhubin Enter npm package name - Agree to risks and install
npm install n8n-nodes-tikhubFor local n8n installation:
cd ~/.n8n/nodes
npm install n8n-nodes-tikhubFor Docker:
docker run -it --rm \
--name n8n \
-p 5678:5678 \
-e NODE_ENV=production \
-e N8N_COMMUNITY_PACKAGES=n8n-nodes-tikhub \
n8nio/n8n- n8n installed (version 0.190.0 or higher)
- TikHub API key from https://api.tikhub.io
Via n8n UI (Recommended):
- Go to Settings > Community Nodes
- Click Install
- Enter:
n8n-nodes-tikhub - Restart n8n after installation
- Get your API key from TikHub
- In n8n, go to Credentials > New
- Search for "TikHub API"
- Enter your API key
- Click Save and Test
- Create a new workflow
- Add a TikHub node
- Select a Resource (TikTok, Instagram, YouTube, Twitter)
- Choose an Operation
- Fill in required parameters
- Execute!
π For detailed instructions, see HOW_TO_USE.md
To use this node, you need to configure TikHub API credentials:
- Go to Credentials > New
- Search for "TikHub API"
- Enter your API key
- (Optional) Modify the base URL if needed (default:
https://api.tikhub.io)
- β Get Video - Fetch single video data by ID
- β Get Video by Share URL - Fetch video data using share URL
- β Get Multiple Videos - Batch fetch multiple videos
- β Get User Profile - Get user profile information
- β Get User Posts - Get user's video posts
- β Get Video Comments - Fetch comments on a video
- β Get User by Username - Fetch user data by username
- β Get User by ID - Fetch user data by ID
- β Get Post by URL - Fetch post data by URL
- β Get Post Media - Extract media from post
- β Get User Highlights - Fetch user story highlights
- β Get Post Comments - Get comments on a post
- β Get Comment Replies - Get replies to a comment
- β Get User Posts - Fetch user's posts
- β Get Video Info - Fetch video information
- β Get Video Comments - Get comments on a video
- β Get Channel ID - Get channel ID by username
- β Get Channel Info - Fetch channel information
- β Get Channel Videos - Get videos from a channel
- β Get Channel Shorts - Get YouTube Shorts from a channel
- β Get Tweet Detail - Fetch tweet details
- β Get User Profile - Get user profile information
- β Get User Tweets - Fetch user's tweets
- β Get Tweet Comments - Get comments on a tweet
- β Get Latest Comments - Get latest comments
- β Get User Replies - Fetch user's replies
- β Get User Media - Get user's media posts
- β Get Retweet Users - Get users who retweeted
Trigger (Manual/Schedule)
β
TikHub Node
- Resource: TikTok
- Operation: Get Video
- Video ID: 7234567890123456789
β
Save to Google Sheets / Database
Schedule Trigger (Every hour)
β
TikHub Node
- Resource: Instagram
- Operation: Get User Posts
- User ID: {{$json["instagram_user_id"]}}
β
IF Node (Check for new posts)
β
Send Notification (Slack/Email)
Trigger
β
TikHub Node
- Resource: YouTube
- Operation: Get Channel Info
- Channel ID: UCxxxxxx
β
TikHub Node
- Resource: YouTube
- Operation: Get Channel Videos
β
Process and store video data
Trigger
β
TikHub Node
- Resource: Twitter
- Operation: Get User Profile
- Screen Name: username
β
TikHub Node
- Resource: Twitter
- Operation: Get User Tweets
β
Analyze and visualize data
Many endpoints support pagination for fetching large datasets:
TikTok:
- Use
Max CursorandCountparameters
Instagram:
- Use
End Cursorparameter
YouTube:
- Use
Continuation Tokenparameter
Twitter:
- Use
Cursorparameter
Example workflow with pagination:
1. First request returns data + cursor
2. Extract cursor from response
3. Use cursor in next request
4. Repeat until no more data
The node includes comprehensive error handling:
- Authentication errors: Check your API key
- Rate limiting: TikHub will return rate limit errors if exceeded
- Invalid parameters: Check parameter format and requirements
- Network errors: Retry mechanism available
Enable "Continue on Fail" in node settings to handle errors gracefully in workflows.
TikHub API has rate limits based on your subscription plan. Check your usage at https://api.tikhub.io/dashboard.
Tips to manage rate limits:
- Use batch endpoints when available (e.g., Get Multiple Videos)
- Implement delays between requests
- Cache responses when appropriate
- Monitor your API usage
git clone <your-repo>
cd n8n-nodes-tikhub
npm install
npm run devnpm run buildnpm link
cd ~/.n8n/custom
npm link n8n-nodes-tikhub
n8n start- Issues: GitHub Issues
- TikHub Support: api.tikhub.io
- n8n Community: community.n8n.io
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
- Initial release
- Support for 28 endpoints across 4 platforms
- TikTok: 6 operations
- Instagram: 8 operations
- YouTube: 6 operations
- Twitter: 8 operations