No Products in the Cart
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
usernametotal_videos
total_views
average_views
fetch_date
category
π¦ Sheet 3 β Log API History or Errors
username
status (eg, 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