πŸ“Š Monitor TikTok hashtag trends with Apify and send ranked reports via Gmail

⚑ 15 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” Since TikTok doesn’t have a public API, getting data usually means fragile HTTP scraping. ScraperNode is a community node that gives you clean JSON for TikTok profiles, videos, and comments β€” drop it into your workflow and skip the parsing.

View All Scrapers

Description

Who it’s for

This workflow is for social media managers, content strategists, and marketing teams who need to track TikTok engagement trends across multiple hashtags on a recurring basis β€” without manually checking each one.

How it works

  1. A schedule trigger fires the workflow at a configured interval (e.g., daily or hourly).
  2. A list of hashtag queries is retrieved from an n8n Data Table.
  3. Each query is processed in a loop: a POST request is sent to the Apify TikTok scraper API, which returns up to 50 recent posts per hashtag from the past 7 days.
  4. A first Code node computes a weighted engagement score for each post: likes Γ— 1 + comments Γ— 2 + shares Γ— 3 + views / 1000.
  5. A second Code node re-ranks the posts, assigns a level (High / Medium / Low), and formats the top 15 results.
  6. The ranked results are saved to an n8n Data Table for persistence and simultaneously sent as a styled HTML email report via Gmail.
  7. The loop continues to the next query batch until all hashtags are processed.

How to set up

Requirements

How to customize

πŸ”— Nodes Used

HTTP Request, Gmail, Schedule Trigger, Data table

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup