See llms.txt for all machine-readable content.

Back to Templates

Collect TikTok video transcripts by hashtag with Apify

Created by

Created by: Apify || apify
Apify

Last update

Last update 3 days ago

Categories

Share


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.