This n8n workflow automates the daily process of fetching TikTok account analytics using the TikTok API and logging the results to Google Sheets.
It helps marketing teams, social media managers, and influencer agencies track video performance and audience growth across multiple TikTok usernames without manual effort.
⏰ Trigger via Schedule
📥 Sheet 1 – Read TikTok Usernames
username
category
priority
notes
🔁 Loop Through Each Username
📡 Fetch Analytics via RapidAPI
POST https://tiktok-api42.p.rapidapi.com/videos_view_count.php
📤 Sheet 2 – Append Analytics Results
username
total_videos
total_views
average_views
fetch_date
category
📦 Sheet 3 – Log API History or Errors
username
status
(e.g., success, failed, skipped)message
timestamp
https://tiktok-api42.p.rapidapi.com
POST https://tiktok-api42.p.rapidapi.com/videos_view_count.php
POST
with params like username
, region
, number
This same TikTok API also supports other advanced endpoints that can be added to enrich your workflow:
Endpoint Name | Functionality |
---|---|
User Profile Data | Get bio, profile image, followers, likes, etc. |
User Account Stats | Extract detailed user metrics (likes, comments, shares) |
User Audience Stats | Know where their followers are from and gender split |
Historical Data | Track historical performance trends (useful for growth charts) |
HashTags Scraper | Find trending or related hashtags used by the user |
Related User Info | Suggest accounts similar to the one queried |
Videos Views Counts | Already used to get view stats for multiple videos |
Each of these can be added using HTTP Request
nodes in n8n and plugged into the same sheet or separate ones.
This workflow is extendable. You can:
API Used in this workflow:
TikTok API