n8ntools-tiktok

Enhanced TikTok node for N8N with comprehensive API integration

Package Information

Released: 13 mo ago
Downloads: 1 weekly / 22 monthly
Latest Version: 1.0.2

Documentation

N8N Tools - TikTok Enhanced

A comprehensive TikTok API integration node for N8N workflows, providing access to all major TikTok features including Videos, Users, Hashtags, Music, and Analytics.

Features

🎥 Videos Management

  • Get user videos and video information
  • Manage video comments and likes
  • Upload videos with custom settings
  • Access video analytics and insights

👤 Users Management

  • Get user information and profiles
  • Manage followers and following
  • Search for users
  • Access user analytics

#️⃣ Hashtags Management

  • Get hashtag information and videos
  • Search hashtags
  • Access trending hashtags
  • Analyze hashtag performance

🎵 Music Management

  • Get music information and videos
  • Search music
  • Access trending music
  • Analyze music performance

📊 Analytics & Insights

  • User analytics and metrics
  • Video performance analytics
  • Hashtag and music analytics
  • Trending content analysis

Installation

  1. Install the package:
npm install n8n-nodes-n8ntools-tiktok-enhanced
  1. Add the node to your N8N instance:
    • Go to Settings > Community Nodes
    • Click "Install a community node"
    • Enter: n8n-nodes-n8ntools-tiktok-enhanced

Configuration

Credentials

The node supports two types of credentials:

OAuth2 API (Recommended)

  • Client Key: Your TikTok App Client Key
  • Client Secret: Your TikTok App Client Secret
  • Access Token: OAuth2 Access Token
  • Scope: Required permissions (comma-separated)

API Key

  • Access Token: TikTok API Access Token
  • Client Key: Your TikTok App Client Key
  • Client Secret: Your TikTok App Client Secret

Required Permissions

For full functionality, ensure your TikTok App has the following permissions:

  • user.info.basic - Basic user information
  • video.list - List user videos
  • video.publish - Publish videos
  • video.comment - Comment on videos
  • user.follow - Follow/unfollow users
  • hashtag.info - Get hashtag information
  • music.info - Get music information

Usage Examples

Get User Videos

{
  "resource": "videos",
  "operation": "getUserVideos",
  "openId": "user-open-id"
}

Upload a Video

{
  "resource": "videos",
  "operation": "uploadVideo",
  "videoUrl": "https://example.com/video.mp4",
  "videoTitle": "My TikTok Video",
  "videoDescription": "Check out this amazing video!",
  "privacyLevel": "PUBLIC_TO_EVERYONE"
}

Get Hashtag Analytics

{
  "resource": "analytics",
  "operation": "getHashtagAnalytics",
  "hashtag": "fyp",
  "startDate": "2024-01-01",
  "endDate": "2024-01-31"
}

Search Trending Music

{
  "resource": "music",
  "operation": "getTrendingMusic",
  "count": 20
}

Resources and Operations

Videos

  • getUserVideos - Get user videos
  • getVideoInfo - Get video information
  • getVideoComments - Get video comments
  • createComment - Create a comment
  • getVideoLikes - Get video likes
  • likeVideo - Like a video
  • unlikeVideo - Unlike a video
  • shareVideo - Share a video
  • uploadVideo - Upload a video
  • getVideoAnalytics - Get video analytics

Users

  • getUserInfo - Get user information
  • getCurrentUserInfo - Get current user info
  • getUserFollowers - Get user followers
  • getUserFollowing - Get user following
  • followUser - Follow a user
  • unfollowUser - Unfollow a user
  • getUserLikedVideos - Get user liked videos
  • searchUsers - Search for users

Hashtags

  • getHashtagInfo - Get hashtag information
  • getHashtagVideos - Get hashtag videos
  • searchHashtags - Search hashtags
  • getTrendingHashtags - Get trending hashtags

Music

  • getMusicInfo - Get music information
  • getMusicVideos - Get music videos
  • searchMusic - Search music
  • getTrendingMusic - Get trending music

Analytics

  • getUserAnalytics - Get user analytics
  • getVideoAnalytics - Get video analytics
  • getHashtagAnalytics - Get hashtag analytics
  • getMusicAnalytics - Get music analytics
  • getTrendingContent - Get trending content
  • getContentInsights - Get content insights

Error Handling

The node includes comprehensive error handling:

  • API rate limiting (429 errors)
  • Authentication errors (401/403)
  • Invalid parameters (400 errors)
  • Network connectivity issues
  • TikTok API specific errors

Rate Limits

TikTok API has rate limits that vary by endpoint:

  • User Access Tokens: 1000 calls per hour
  • App Access Tokens: 2000 calls per hour
  • Video Upload: 10 uploads per hour per user

Support

For issues, feature requests, or contributions:

License

MIT License - see LICENSE file for details.

Changelog

1.0.0

  • Initial release
  • Complete TikTok API integration
  • Support for Videos, Users, Hashtags, Music, and Analytics operations
  • OAuth2 and API Key authentication
  • Comprehensive error handling
  • Full TypeScript support

Discussion