Skip to main content

Monitor TikTok hashtag trends with Apify and send ranked reports via Gmail

Workflow preview

Workflow preview
100%
Monitor TikTok hashtag trends with Apify and send ranked reports via Gmail preview
Open on n8n.io

1. Workflow Overview

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 ...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.gmail, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.datatable

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Allan Vaccarizi.

Original n8n.io source

1.1 Workflow description

Title
Monitor TikTok hashtag trends with Apify and send ranked reports via Gmail
Workflow name
Monitor TikTok hashtag trends with Apify and send ranked reports via Gmail

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

  • Connect your Apify account credentials to the Scrape TikTok via Apify HTTP Request node
  • Connect your Gmail account (OAuth2) to the Send TikTok Report by Email node and set the recipient address
  • Configure the Get Queries from Table node to point to your Data Table containing the list of hashtags to monitor
  • Configure the Save Rankings to Table node to point to the destination Data Table where results should be stored
  • Set the desired run frequency in the When Schedule Triggers node
  • Adjust the scoring weights in the Score and Sort TikTok Posts code node if needed

Requirements

  • Apify account with access to the clockworks~tiktok-scraper actor
  • Gmail account with OAuth2 credentials configured in n8n
  • Two n8n Data Tables: one for input queries, one for storing ranked results

How to customize

  • Adjust the engagement scoring formula in the Score and Sort TikTok Posts node to weight views, shares, or comments differently based on your priorities.
  • Extend the email template to include additional social platforms (Reddit, Instagram) by adding parallel scraping branches before the ranking step.
  • Change the resultsPerPage or oldestPostDateUnified parameters in the Apify API call to control the volume and recency of posts fetched.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note16

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note21

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - When Schedule Triggers

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 5 - Send TikTok Report by Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 6 - Scrape TikTok via Apify

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Score and Sort TikTok Posts

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Loop Over TikTok Queries

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 9 - Sticky Note14

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note15

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note19

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note20

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note23

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Rank TikTok Posts1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Get Queries from Table1

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 16 - Save Rankings to Table1

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

3. Summary Table

Workflow Monitor TikTok hashtag trends with Apify and send ranked reports via Gmail
Complexity advanced
Nodes 16
Categories Market Research, AI Summarization
Author Allan Vaccarizi
Published 15 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15074/15074.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Monitor TikTok hashtag trends with Apify and send ranked reports via Gmail do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.