n8n-nodes-tikhub
v1.0.5
Published
n8n community node for TikHub API - TikTok, Instagram, YouTube, Twitter integration with 28 endpoints
Maintainers
Readme
n8n-nodes-tikhub
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.
Installation
Community Nodes (Recommended)
- Go to Settings > Community Nodes in n8n
- Select Install
- Enter
n8n-nodes-tikhubin Enter npm package name - Agree to risks and install
Manual Installation
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/n8nPrerequisites
- n8n installed (version 0.190.0 or higher)
- TikHub API key from https://api.tikhub.io
Quick Start
1. Install the Package
Via n8n UI (Recommended):
- Go to Settings > Community Nodes
- Click Install
- Enter:
n8n-nodes-tikhub - Restart n8n after installation
2. Configure Credentials
- Get your API key from TikHub
- In n8n, go to Credentials > New
- Search for "TikHub API"
- Enter your API key
- Click Save and Test
3. Use in Workflows
- 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
Credentials
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)
Supported Platforms & Operations
TikTok (6 operations)
- ✅ 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
Instagram (8 operations)
- ✅ 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
YouTube (6 operations)
- ✅ 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
Twitter/X (8 operations)
- ✅ 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
Usage Examples
Example 1: Get TikTok Video Data
Trigger (Manual/Schedule)
↓
TikHub Node
- Resource: TikTok
- Operation: Get Video
- Video ID: 7234567890123456789
↓
Save to Google Sheets / DatabaseExample 2: Monitor Instagram User Posts
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)Example 3: Aggregate YouTube Channel Data
Trigger
↓
TikHub Node
- Resource: YouTube
- Operation: Get Channel Info
- Channel ID: UCxxxxxx
↓
TikHub Node
- Resource: YouTube
- Operation: Get Channel Videos
↓
Process and store video dataExample 4: Twitter User Analysis
Trigger
↓
TikHub Node
- Resource: Twitter
- Operation: Get User Profile
- Screen Name: username
↓
TikHub Node
- Resource: Twitter
- Operation: Get User Tweets
↓
Analyze and visualize dataPagination
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 dataError Handling
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.
API Rate Limits
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
Development
Setup Development Environment
git clone <your-repo>
cd n8n-nodes-tikhub
npm install
npm run devBuild
npm run buildLink Locally
npm link
cd ~/.n8n/custom
npm link n8n-nodes-tikhub
n8n startResources
Support
- Issues: GitHub Issues
- TikHub Support: api.tikhub.io
- n8n Community: community.n8n.io
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
License
Changelog
v1.0.0
- Initial release
- Support for 28 endpoints across 4 platforms
- TikTok: 6 operations
- Instagram: 8 operations
- YouTube: 6 operations
- Twitter: 8 operations
