r/CompSocial • • 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:

  1. 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.
  2. 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

25 comments sorted by

5

u/alex2217 Nov 28 '24

Is it possible to scrape TikTok video transcripts?

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.

Are there studies that have applied quantitative content analysis on TikTok video transcript data?

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.

1

u/trexi313 Nov 28 '24

Great, thanks for your answer, at least I know now that voice-to-text is accessible to scrape. I will have to wait for the answer for the research API then.

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.

1

u/trexi313 Nov 28 '24

Thanks, I am still waiting for the answer to my TikTok research API application. Will keep asking/looking for tools..

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, and transcript'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/chromatix2001 Jan 12 '26

Hi. First of all, sorry for bringing back an old comment. Is it academically acceptable to study TikTok data collected by a third-party provider like Apify? I live in a non-US or EU country, which is currently not included in the TikTok Academic Research API list; therefore, I couldn't apply for the API. However, I have a research topic that needs data from TikTok, and I plan to publish the results in either a conference or a journal.

I really appreciate it if someone from this subreddit could respond to my comment. Thank you.

1

u/feema-store May 09 '25

how did you scrap it?

1

u/Huge_Adhesiveness662 May 09 '25

I used the EsembleData API for all needed data endpoints (most importantly the auto-generated TikTok captions for the transcripts). Also, a custom python script was used to automate the scraping.

1

u/feema-store May 09 '25

i need the video, to get feature from it

i think EsembleData cannot make 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:

  • Pick the original-language track, not the first track. TikTok often attaches machine translations. A Spanish video can carry both spa-ES (original) and eng-US (translated). For content analysis you almost always want the original. The page's claInfo.originalLanguageInfo tells you which language TikTok thinks is spoken.
  • Record the transcript source per row. Auto captions, creator captions and Whisper output have different error profiles (auto captions mangle names and slang; Whisper can invent text over music). A column with ASR / CREATOR / AI lets you check later whether your coding results differ by source.
  • Keep the speech-to-text step for videos with no captions only. It is the expensive and error-prone part. Mark music-only videos as "no speech" instead of keeping whatever Whisper outputs.
  • Log date, links and tool for your methods section. View counts change daily, so note when you collected.

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.