๐Ÿ“Š Track TikTok keyword trends with API Direct, Google Sheets and Slack

โšก 9 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

Quick overview

This workflow runs every morning to search TikTok for recent videos matching a keyword via API Direct, logs new results to Google Sheets, and sends a Slack alert when a videoโ€™s play count exceeds a configurable viral threshold.

How it works

  1. Runs every morning on a schedule.
  2. Sets the target TikTok keyword and the viral play-count threshold.
  3. Searches TikTok for the most recent videos from the last 24 hours using API Direct.
  4. Skips videos that have already been logged in previous active runs by tracking seen URLs.
  5. Appends each new videoโ€™s date, author, title, URL, and engagement metrics to a Google Sheets trend log.
  6. Sends a Slack channel message for any newly found video whose play count meets or exceeds the viral threshold.

Setup

  1. Add an API Direct credential (API key) and ensure the TikTok โ€œSearch TikTok videosโ€ step uses it.
  2. Connect Google Sheets OAuth credentials and select the target spreadsheet and sheet in the append step.
  3. Create a Google Sheet with columns: date, author, title, url, plays, likes, shares, comments.
  4. Connect Slack credentials and choose the channel to receive breakout alerts.
  5. Update the keyword and viral threshold values in the keyword settings step, then activate the workflow so the seen-video memory persists between runs.

Requirements

Customization

Additional info

API Direct is a verified community node, available on n8n Cloud and self-hosted n8n โ€” search โ€œAPI Directโ€ in the nodes panel to install. One API key covers Twitter/X, Reddit, TikTok, Instagram, YouTube, Facebook, Threads, Truth Social and Google News/Maps/web search (58 operations), pay-as-you-go from $0.002/request.

๐Ÿ”— Nodes Used

Google Sheets, Slack, Schedule Trigger

๐Ÿ“ฅ Import

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

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup