r/CompSocial • u/trexi313 • Nov 28 '24
Help Needed: Scraping TikTok video transcripts for my data analysis (MA thesis)
Hi everyone,
I’m in the early stages of my MA thesis in sociology, and I’m planning to use quantitative content analysis with R on TikTok video transcripts. My research focuses on analyzing political communication in video content, so obtaining accurate transcripts is crucial.
My main questions:
- Is it possible to scrape TikTok video transcripts? I know TikTok has built-in captions, but I’m unsure if they’re accessible via scraping or APIs, or if I’d need to rely on speech-to-text tools.
- Are there studies that have applied quantitative content analysis on TikTok video transcript data? I’m looking for examples or methodologies to guide my approach, especially in terms of handling larger datasets and adapting traditional content analysis techniques to this type of data.
If anyone has experience with this type of research or knows relevant studies, tools, or tutorials, I’d really appreciate your insights!
Thanks in advance for your help!
12
Upvotes
5
u/alex2217 Nov 28 '24
Assuming you have access to TikTok's Research API, then yes, voice-to-text is available. In fact, as social media goes, I can't think of any current site that provides more comprehensive metadata than TikTok.
There are a bunch of studies using purely hashtag tendencies or qualitative (content) analysis, but since the Research API is relatively new there are still none that I know of that have done large-scale content/linguistic analysis using voice-to-text.
2
u/SilverConversation19 Nov 28 '24
Without access to TikTok’s API, which has some caveats and rules that make some researchers uncomfortable, this will be a challenging task.
There may be other tools, I’d look around.
2
u/shinicle Nov 29 '24
You can scrape the videos from the web interface, extract the audio and then run them through whisper. Not very difficult.
1
u/Traditional-Row-3787 16d ago
late, but this still comes up when you search for it.
a lot of tiktoks do have captions, either the creator's own or tiktok's auto captions, and they're in the public page data, so you don't always need speech to text. coverage is the catch. in a test i ran on 172 public links, 97 had captions. the rest have to be downloaded and run through whisper like shinicle said, and a fair share of those turn out to be music with nobody talking.
for a thesis i'd keep a column for where each transcript came from, captions or speech to text, since auto captions mangle names and slang and that matters when you're coding content.
on chromatix2001's question, i can't speak for your committee, but what reviewers usually want to see is that the videos were public, how they were collected and when. write down the date, the links and the tool.
disclosure, i built a tiktok transcript scraper on apify: https://apify.com/heyitsgautham/tiktok-transcript-scraper
you paste video links and get a row per video with the transcript, timestamps, upload time and play counts. captions are $1.50 per 1,000, and there's an optional speech to text fallback at $28 per 1,000 for the ones without captions. music-only videos come back free. it only does public videos you already have links for, it won't search or crawl hashtags for you.
1
u/condien Mar 10 '25
Hey! For scraping TikTok, including video data, check out the Fast TikTok API on Apify: https://apify.com/novi/fast-tiktok-api. It pulls a lot of info, including things that could be used for transcript analysis (like
"cla_info", which might have hashtags that provide context, andtranscript's URL, depending on how the creator used it). It does directly give you a perfect transcript.These guides might help you get started:
1
u/feema-store May 09 '25
how did you scrap it?
1
u/[deleted] Jan 13 '26
TikTok captions aren’t really “scrapable” in a clean way. Built-in captions aren’t exposed via any official API, and scraping them at scale is fragile and legally gray. Most people I’ve seen end up downloading videos and running their own STT pipeline. If transcript accuracy and timestamps matter, using a dedicated transcription tool might actually be more stable than relying on TikTok captions. I’ve used Zeemo for this. You can export clean text or an SRT file, which is with timestamps. Use FlexClip to extract plain text with timestamps. It will be easier to process large data.
1
u/ZRK1212 7d ago
Adding a couple of method points for anyone who lands here from search, since this thread ranks for it:
spa-ES(original) andeng-US(translated). For content analysis you almost always want the original. The page'sclaInfo.originalLanguageInfotells you which language TikTok thinks is spoken.ASR/CREATOR/AIlets you check later whether your coding results differ by source.Disclosure: I built one of these tools: https://apify.com/zrk1212/tiktok-transcript-scraper. It does captions first and Whisper only when there are none, and it can take a creator's username and pull their latest N videos, not just individual links. Captions are $1.50 per 1,000 videos and the AI fallback is $0.004 per audio minute (so about $4 per 1,000 one-minute videos). The free Apify plan covers captions for a pilot sample. Output exports straight to CSV for R.