๐Ÿ“Š Collect TikTok video transcripts by hashtag with Apify

โšก 4 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 on demand to scrape TikTok videos for a list of hashtags using Apifyโ€™s TikTok Scraper, downloads each videoโ€™s transcript (WebVTT) over HTTP, filters out very short/empty transcripts, and outputs the remaining transcripts as a JSON file for downstream analysis.

How it works

  1. Runs when you manually execute the workflow.
  2. Loads the list of target hashtags to search.
  3. Uses Apifyโ€™s TikTok Scraper Actor (clockworks/tiktok-scraper) to scrape videos for those hashtags and generate subtitle/transcription links.
  4. Extracts a transcript download URL from each scraped videoโ€™s metadata.
  5. Downloads each transcript file via an HTTP request.
  6. Filters out transcripts shorter than 100 characters and converts the remaining items into a downloadable JSON file.

Setup

  1. Self-host n8n and install the Apify community node from Settings โ†’ Community Nodes.
  2. Create an Apify account and add an Apify OAuth2 credential in n8n.
  3. Update the hashtag list in the โ€œSet hashtags to searchโ€ step to include the hashtags you want to analyze.
  4. Execute the workflow and download the JSON output file from the final step.

๐Ÿ”— Nodes Used

HTTP Request, Filter, Convert to File

๐Ÿ“ฅ Import

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

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