๐ 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.
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
- Runs when you manually execute the workflow.
- Loads the list of target hashtags to search.
- Uses Apifyโs TikTok Scraper Actor (clockworks/tiktok-scraper) to scrape videos for those hashtags and generate subtitle/transcription links.
- Extracts a transcript download URL from each scraped videoโs metadata.
- Downloads each transcript file via an HTTP request.
- Filters out transcripts shorter than 100 characters and converts the remaining items into a downloadable JSON file.
Setup
- Self-host n8n and install the Apify community node from Settings โ Community Nodes.
- Create an Apify account and add an Apify OAuth2 credential in n8n.
- Update the hashtag list in the โSet hashtags to searchโ step to include the hashtags you want to analyze.
- 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